TBTK
Static Public Member Functions | List of all members
TBTK::FileReader Class Reference

#include <FileReader.h>

Static Public Member Functions

static ModelreadModel (std::string name="Model", std::string path="/")
 
static AmplitudeSetreadAmplitudeSet (std::string name="AmplitudeSet", std::string path="/")
 
static GeometryreadGeometry (Model *model, std::string name="Geometry", std::string path="/")
 
static Property::EigenValuesreadEigenValues (std::string name="EigenValues", std::string path="/")
 
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::SpinPolarizedLDOSreadSpinPolarizedLDOS (std::string name="SpinPolarizedLDOS", std::string path="/")
 
static Util::ParameterSetreadParameterSet (std::string name="ParameterSet", std::string path="/")
 
static void read (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

bool TBTK::FileReader::exists ( )
static

Returns true if current input file exists.

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.

AmplitudeSet * TBTK::FileReader::readAmplitudeSet ( std::string  name = "AmplitudeSet",
std::string  path = "/" 
)
static

Experimental. Read AmplitudeSet from file.

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.

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

Read density from file.

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

Read density of states from file.

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

Read eigenvalues from file.

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

Read geometry from file.

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

Read local density of states from file.

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

Read magnetization from file.

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

Read model from file.

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

Read Util::ParameterSet from file.

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

Read spin-polarized local density of states 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 files: