CreateHamiltonians
Copyright (C) 2009-2016 Peter Rakyta, Ph.D.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Returns an object to create and store the Hamiltonian and geometry data of the scattering region.
object = CreateHamiltonians( Opt, param, varargin )
Parameters | |
---|---|
Opt | An instance of structure Opt. |
param | An instance of structure param. |
varargin |
Optional parameters given by a sequence ...'name', value,... . Possible parameter names are the following:
|
- A list of the sites to be kept after decimation.
- The matrix of the Hamiltonian.
- The matrix of the Hamiltonian corresponding to the transverse coupling.
- The matrix of the overlap integrals in the Hamiltonian.
- The matrix of the overlap integrals for the transverse coupling.
- The matrix of the Peierls phases.
- The matrix of the Peierls phases for the transverse coupling.
- An instance of the structure coordinates.
- The length of the scattering region in units of the lattice contant.
- The number of sites in the cross section.
- The number of sites in one unit cell.
- An instance of the structure param
- A logical value. True if the Hamiltonian was created, false otherwise.
- A logical value. True if the overlap integrals were applied, false otherwise.
- A logical value. True if the Hamiltonian was decimated, or false otherwise.
- A logical value. True if the overlap integrals were applied, false otherwise.
- A logical value. True if the vector potential was incorporated into the Hamiltonian or false otherwise.
- A logical value. True if a gauge transformation was applied on the Hamiltonians, or false otherwise.
- A transverse momentum.
- list of optional parameters (see http://www.mathworks.com/help/matlab/ref/varargin.html for details)
- CreateScatterH
- ApplyOverlapMatrices
- shiftFermiEnergy
- projectHamiltonian2Spin
- Reset
- CreateClone
- saveScatter
- loadScatter
- Write
- Read
- Clear
CreateHamiltonians::CreateScatterH
Creates a Hamiltonian of a finite ribbon or constructs the Hamiltonian from the unit cell provided in the class CreateLeadHamiltonians or its subclasses. The Hamiltonian and the structure containing the coordinates are stored within the class.
object.CreateScatterH( varargin )
Parameters | varargin |
Optional parameters given by a sequence ...'name', value,... . Possible parameters are the following:
|
---|
CreateHamiltonians::ApplyOverlapMatrices
Applies the overlap matrices to the Hamiltonians: K = H-ES
object.ApplyOverlapMatrices( varargin )
Parameters | E | The energy value to be used in K = H-ES |
---|
CreateHamiltonians::shiftFermiEnergy
Shifts the on-site energies in the Scattering region by a given energy.
object.shiftFermiEnergy( Energy )
Parameters | Energy | The energy value to be used. |
---|
CreateHamiltonians::projectHamiltonian2Spin
Projects the Hamiltonian to a spin states of $s=\pm1$
object.projectHamiltonian2Spin( s )
Parameters | s | The quantum index of the spin (\pm1) |
---|
CreateHamiltonians::Reset
Resets all elements in the object.
object.Reset( )
CreateHamiltonians::CreateClone
Creates a clone of the current object.
ret = object.CreateClone()
Return | varargin |
Optional parameters given by a sequence ...'name', value,... . Possible parameters are the following:
|
---|
CreateHamiltonians::saveScatter
Saves the Hamiltonian and other data of the scattering region
object.saveScatter( filename )
Paremeters | |
---|---|
filename | The string containing the path to the file. (In octave use absolute paths only) |
CreateHamiltonians::loadScatter
Loads the Hamiltonian and other data of the scattering region.
object.loadScatter( filename )
Paremeters | |
---|---|
filename | The string containing the path to the file. (In octave use absolute paths only) |
CreateHamiltonians::Reset
Resets all attributes in the object.
object.Reset()
CreateHamiltonians::Write
Sets the value of an attribute in the object.
object.Write(MemberName, input)
Parameters | |
---|---|
MemberName | The name of the attribute to be set. |
input | The value to be set. |
CreateHamiltonians::Read
Query for the value of an attribute in the object.
ret = object.Read(MemberName)
Parameters | |
---|---|
MemberName | The name of the attribute. |
Return | |
---|---|
ret | The value of the attribute. |
CreateHamiltonians::Clear
Clears the value of an attribute in the object.
object.Clear(MemberName)
Parameters | |
---|---|
MemberName | The name of the attribute. |
CreateHamiltonians::Initialize
Initializes object attributes.
object.Initialize(MemberName)
CreateHamiltonians::queryHamiltonians
Obtains Hamiltonians from external source.
object.queryHamiltonians( cCustom_Hamiltonians )
Parameters | |
---|---|
cCustom_Hamiltonians | An instance of class Custom_Hamiltonians for external source of Hamiltonians. |
CreateHamiltonians::Transforms2BdG
Transforms the Hamiltonians into a Bogoliubov de Gennes model.
object.Transforms2BdG()
CreateHamiltonians::InputParsing
Parses the optional parameters for the class constructor.
object.InputParsing(varargin)
Parameters | |
---|---|
varargin |
Optional parameters given by a sequence ...'name', value,... . Possible parameters are:
|
- Log in to post comments