TSGFSileSiesta¶
-
class
sisl.io.siesta.
TSGFSileSiesta
(filename, mode='r')¶ Attributes
file
File of the current Sile Methods
__init__
(filename[, mode])Creates/Opens a SileBin exist
()Query whether the file exists read
(*args, **kwargs)Generic read method which should be overloaded in child-classes write
(*args, **kwargs)Generic write method which should be overloaded in child-classes write_hamiltonian
(H, S)Write the current energy, k-point and H and S to the file write_header
(E, bz, obj[, mu])Write to the binary file the header of the file write_self_energy
(SE)Write the current energy, k-point and H and S to the file -
exist
()¶ Query whether the file exists
-
file
¶ File of the current Sile
-
read
(*args, **kwargs)¶ Generic read method which should be overloaded in child-classes
Parameters: **kwargs :
keyword arguments will try and search for the attribute
read_<>
and call it with the remaining**kwargs
as arguments.
-
write
(*args, **kwargs)¶ Generic write method which should be overloaded in child-classes
Parameters: **kwargs :
keyword arguments will try and search for the attribute write_ and call it with the remaining
**kwargs
as arguments.
-
write_hamiltonian
(H, S)¶ Write the current energy, k-point and H and S to the file
Parameters: H : matrix
a square matrix corresponding to the Hamiltonian
S : matrix
a square matrix corresponding to the overlap
-
write_header
(E, bz, obj, mu=0.0)¶ Write to the binary file the header of the file
Parameters: E : array_like of cmplx or float
the energy points. If obj is an instance of SelfEnergy where an associated
eta
is defined then E may be float, otherwise it has to be a complex array.bz : BrillouinZone
contains the k-points and their weights
obj : ...
an object that contains the Hamiltonian definitions
-
write_self_energy
(SE)¶ Write the current energy, k-point and H and S to the file
Parameters: SE : matrix
a square matrix corresponding to the self-energy (Green function)
-