ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
Public Member Functions | |
void | setPhaseSpaceFile (std::string filename) |
gets a filename and opens an ifstream associated with the given file More... | |
void | setPhaseSpaceHeaderFile (std::string filename) |
For this class, header and data are in the same file, so there is no separate header file. | |
void | readPhaseSpaceHeader (Domain *domain, double timestep) |
reads in header of the input file (including component description) More... | |
unsigned long | readPhaseSpace (ParticleContainer *particleContainer, Domain *domain, DomainDecompBase *domainDecomp) |
reads in the data of all molecules More... | |
void | handle_error (int i) |
![]() | |
virtual void | readXML (XMLfileUnits &) |
|
virtual |
reads in the data of all molecules
The Molecule Data starts in a new line with the string "MoleculeFormat" followed by whitespace and a string representing the format. In the standard case (format ICRVQD), the following values are provided for each molecule:
An example can be seen in the documentation of this class
particleContainer | Here the Molecules from the input file are stored |
Implements InputBase.
|
virtual |
reads in header of the input file (including component description)
The Header in the input file consists of several elements. An element starts in a new line with the element name followed by some whitespace (e.g. "Temperature "). After that, there can be any number of tokens belonging to that element. A description of the different elements follows below. But first some rules dealing with the order of the elements:
Now the description of the different elements:
An example can be seen in the documentation of this class
Implements InputBase.
void MPI_IOReader::setPhaseSpaceFile | ( | std::string | filename | ) |
gets a filename and opens an ifstream associated with the given file
As the reading of the phasespace file is separated into two parts, but each line of the file should only be parsed once, not the filename itself is stored, but a stream (_phaseSpaceFileStream) which is associated with the file
filename | full path to the input file |