Go to the documentation of this file.
24 #ifndef COM_DAFER45_TBTK_FILE_WRITER
25 #define COM_DAFER45_TBTK_FILE_WRITER
36 #include "TBTK/Property/SpectralFunction.h"
56 std::string name =
"Model",
57 std::string path =
"/"
63 std::string name =
"HoppingAmplitudeSet",
64 std::string path =
"/"
67 static void writeGeometry(
69 std::string name =
"Geometry",
70 std::string path =
"/"
73 static void writeIndexTree(
75 std::string name =
"IndexTree",
76 std::string path =
"/"
82 std::string name =
"EigenValues",
83 std::string path =
"/"
89 std::string name =
"WaveFunctions",
90 std::string path =
"/"
96 std::string name =
"DOS",
97 std::string path =
"/"
103 std::string name =
"Density",
104 std::string path =
"/"
110 std::string name =
"Magnetization",
111 std::string path =
"/"
117 std::string name =
"LDOS",
118 std::string path =
"/"
123 const Property::SpectralFunction &spectralFunction,
124 std::string name =
"SpectralFunction",
125 std::string path =
"/"
131 std::string name =
"SpinPolarizedLDOS",
132 std::string path =
"/"
141 std::string path =
"/"
150 std::string path =
"/"
156 const std::complex<double> *data,
160 std::string path =
"/"
165 const int *attributes,
166 const std::string *attribute_names,
169 std::string path =
"/"
174 const double *attributes,
175 const std::string *attribute_names,
178 std::string path =
"/"
184 std::string name =
"ParameterSet",
185 std::string path =
"/"
199 static bool isInitialized;
205 static std::string filename;
209 const Property::SpectralFunction &spectralFunction,
217 FileWriter::filename = filename;
218 isInitialized =
false;
222 remove(filename.c_str());
223 isInitialized =
false;
Container of Model related information.
Definition: Model.h:57
Property container for density of states (DOS).
Definition: DOS.h:48
Container of Model related information.
static void writeAttributes(const int *attributes, const std::string *attribute_names, int num, std::string name, std::string path="/")
static void writeSpinPolarizedLDOS(const Property::SpinPolarizedLDOS &spinPolarizedLDOS, std::string name="SpinPolarizedLDOS", std::string path="/")
static void writeHoppingAmplitudeSet(const HoppingAmplitudeSet &hoppingAmplitudeSet, std::string name="HoppingAmplitudeSet", std::string path="/")
Property container for eigen values.
Definition: ParameterSet.h:34
static void writeEigenValues(const Property::EigenValues &ev, std::string name="EigenValues", std::string path="/")
Property container for spin-polarized local density of states (spin-polarized LDOS).
Definition: SpinPolarizedLDOS.h:46
Contains geometric inforamtion about a Model.
static void writeMagnetization(const Property::Magnetization &magnetization, std::string name="Magnetization", std::string path="/")
static void writeDOS(const Property::DOS &dos, std::string name="DOS", std::string path="/")
static void writeSpectralFunction(const Property::SpectralFunction &spectralFunction, std::string name="SpectralFunction", std::string path="/")
Definition: FileWriter.h:208
static void writeDensity(const Property::Density &density, std::string name="Density", std::string path="/")
HoppingAmplitude container.
Property container for the local density of states (LDOS).
Definition: LDOS.h:48
static void setFileName(std::string filename)
Definition: FileWriter.h:216
Property container for wave functions.
HoppingAmplitude container.
Definition: HoppingAmplitudeSet.h:50
static void writeParameterSet(const ParameterSet *parameterSet, std::string name="ParameterSet", std::string path="/")
static void writeWaveFunctions(const Property::WaveFunctions &waveFunctions, std::string name="WaveFunctions", std::string path="/")
static void clear()
Definition: FileWriter.h:221
Property container for local density of states (LDOS).
Contains geometric information about a Model.
Definition: Geometry.h:34
static void write(const int *data, int rank, const int *dims, std::string name, std::string path="/")
Property container for spin-polarized local density of states (spin-polarized LDOS).
Definition: FileWriter.h:51
Property container for density of states (DOS).
Property container for density.
Definition: Density.h:43
Property container for magnetization.
Data structure for mapping physical indices to linear indices.
Definition: IndexTree.h:35
Property container for density.
static void writeModel(const Model &model, std::string name="Model", std::string path="/")
Property container for eigen values.
Definition: EigenValues.h:46
Property container for wave function.
Definition: WaveFunctions.h:45
static void writeLDOS(const Property::LDOS &ldos, std::string name="LDOS", std::string path="/")
Property container for magnetization.
Definition: Magnetization.h:44