TBTK
TBTK::FileReader Class Reference

#include <FileReader.h>

Static Public Member Functions

static ModelreadModel (std::string name="Model", std::string path="/")
 
static HoppingAmplitudeSetreadHoppingAmplitudeSet (std::string name="HoppingAmplitudeSet", std::string path="/")
 
static GeometryreadGeometry (Model *model, std::string name="Geometry", std::string path="/")
 
static IndexTreereadIndexTree (std::string name="IndexTree", std::string path="/")
 
static Property::EigenValuesreadEigenValues (std::string name="EigenValues", std::string path="/")
 
static Property::WaveFunctionsreadWaveFunctions (std::string name="WaveFunctions", std::string pat="/")
 
static Property::DOSreadDOS (std::string name="DOS", std::string path="/")
 
static Property::DensityreadDensity (std::string name="Density", std::string path="/")
 
static Property::MagnetizationreadMagnetization (std::string name="Magnetization", std::string path="/")
 
static Property::LDOSreadLDOS (std::string name="LDOS", std::string path="/")
 
static Property::SpectralFunctionreadSpectralFunction (std::string name="SpectralFunction", std::string path="/")
 
static Property::SpinPolarizedLDOSreadSpinPolarizedLDOS (std::string name="SpinPolarizedLDOS", std::string path="/")
 
static ParameterSetreadParameterSet (std::string name="ParameterSet", std::string path="/")
 
static void read (int **data, int *rank, int **dims, std::string name, std::string path="/")
 
static void read (double **data, int *rank, int **dims, std::string name, std::string path="/")
 
static void read (std::complex< double > **data, int *rank, int **dims, std::string name, std::string path="/")
 
static void readAttributes (int *attributes, std::string *attribute_names, int num, std::string name, std::string path="/")
 
static void readAttributes (double *attributes, std::string *attribute_names, int num, std::string name, std::string path="/")
 
static void setFileName (std::string filename)
 
static void clear ()
 
static bool exists ()
 

Detailed Description

Reads data from a .hdf5-file. The default file name is TBTKResults.h5. Can be used to read custom n-dimensional arrays of data and parameters from datasets with custom names. It can also be used to read data such as eigenvalues, DOS, Density etc. written by the FileWriter.

Member Function Documentation

void TBTK::FileReader::clear ( )
inlinestatic

Remove any file from the current folder with the file name set by FileReader::setFileName

static bool TBTK::FileReader::exists ( )
static

Returns true if current input file exists.

static void TBTK::FileReader::read ( int **  data,
int *  rank,
int **  dims,
std::string  name,
std::string  path = "/" 
)
static

Read custom n-dimensional arrays from file of type int.

static void TBTK::FileReader::read ( double **  data,
int *  rank,
int **  dims,
std::string  name,
std::string  path = "/" 
)
static

Read custom n-dimensional arrays from file of type double.

static void TBTK::FileReader::read ( std::complex< double > **  data,
int *  rank,
int **  dims,
std::string  name,
std::string  path = "/" 
)
static

Read custom n-dimensional arrays from file of type complex<double>.

static void TBTK::FileReader::readAttributes ( int *  attributes,
std::string *  attribute_names,
int  num,
std::string  name,
std::string  path = "/" 
)
static

Read custom attributes from file of type int.

static void TBTK::FileReader::readAttributes ( double *  attributes,
std::string *  attribute_names,
int  num,
std::string  name,
std::string  path = "/" 
)
static

Read custom attributes from file of type double.

static Property::Density* TBTK::FileReader::readDensity ( std::string  name = "Density",
std::string  path = "/" 
)
static

Read density from file.

static Property::DOS* TBTK::FileReader::readDOS ( std::string  name = "DOS",
std::string  path = "/" 
)
static

Read density of states from file.

static Property::EigenValues* TBTK::FileReader::readEigenValues ( std::string  name = "EigenValues",
std::string  path = "/" 
)
static

Read eigenvalues from file.

static Geometry* TBTK::FileReader::readGeometry ( Model model,
std::string  name = "Geometry",
std::string  path = "/" 
)
static

Read geometry from file.

static HoppingAmplitudeSet* TBTK::FileReader::readHoppingAmplitudeSet ( std::string  name = "HoppingAmplitudeSet",
std::string  path = "/" 
)
static

Experimental. Read HoppingAmplitudeSet from file.

static IndexTree* TBTK::FileReader::readIndexTree ( std::string  name = "IndexTree",
std::string  path = "/" 
)
static

Read IndexTree from file.

static Property::LDOS* TBTK::FileReader::readLDOS ( std::string  name = "LDOS",
std::string  path = "/" 
)
static

Read local density of states from file.

static Property::Magnetization* TBTK::FileReader::readMagnetization ( std::string  name = "Magnetization",
std::string  path = "/" 
)
static

Read magnetization from file.

static Model* TBTK::FileReader::readModel ( std::string  name = "Model",
std::string  path = "/" 
)
static

Read model from file.

static ParameterSet* TBTK::FileReader::readParameterSet ( std::string  name = "ParameterSet",
std::string  path = "/" 
)
static

Read ParameterSet from file.

Property::SpectralFunction * TBTK::FileReader::readSpectralFunction ( std::string  name = "SpectralFunction",
std::string  path = "/" 
)
inlinestatic

Read spectral function from file.

static Property::SpinPolarizedLDOS* TBTK::FileReader::readSpinPolarizedLDOS ( std::string  name = "SpinPolarizedLDOS",
std::string  path = "/" 
)
static

Read spin-polarized local density of states from file.

static Property::WaveFunctions* TBTK::FileReader::readWaveFunctions ( std::string  name = "WaveFunctions",
std::string  pat = "/" 
)
static

Read WaveFunctionw from file.

void TBTK::FileReader::setFileName ( std::string  filename)
inlinestatic

Set input file name. Default is TBTKResults.h5.


The documentation for this class was generated from the following file: