ls1-MarDyn
ls1-MarDyn molecular dynamics code
ASCIIReader.h
1#ifndef ASCIIREADER_H_
2#define ASCIIREADER_H_
3
4#include "io/InputBase.h"
5#include <string>
6#include <fstream>
7
10class ASCIIReader : public InputBase {
11public:
13
14 ~~ASCIIReader() {}
15
16 void readXML(XMLfileUnits& xmlconfig);
17
22 void setPhaseSpaceFile(std::string filename);
23
26
59 void readPhaseSpaceHeader(Domain* domain, double timestep);
60
75 unsigned long readPhaseSpace(ParticleContainer* particleContainer, Domain* domain, DomainDecompBase* domainDecomp);
76
77private:
78
79 std::string _phaseSpaceFile;
80 std::string _phaseSpaceHeaderFile;
81 std::fstream _phaseSpaceFileStream;
82 std::fstream _phaseSpaceHeaderFileStream;
83
84};
85
86#endif // ASCIIREADER_H_
The ASCIIReader reads in phasespace information using ls1-MarDyn's (old) ASCII input file format.
Definition: ASCIIReader.h:10
unsigned long readPhaseSpace(ParticleContainer *particleContainer, Domain *domain, DomainDecompBase *domainDecomp)
reads in the data of all molecules
Definition: ASCIIReader.cpp:257
void setPhaseSpaceFile(std::string filename)
Set the phase space file to be read.
Definition: ASCIIReader.cpp:30
void setPhaseSpaceHeaderFile(std::string filename)
For this class, header and data are in the same file, so there is no separate header file.
Definition: ASCIIReader.cpp:34
void readPhaseSpaceHeader(Domain *domain, double timestep)
reads in header of the input file (including component description)
Definition: ASCIIReader.cpp:51
handle boundary region and multiple processes
Definition: DomainDecompBase.h:51
This class is used to read in the phasespace and to handle macroscopic values.
Definition: Domain.h:47
interface for any kind of input class
Definition: InputBase.h:18
This Interface is used to get access to particles and pairs of particles.
Definition: ParticleContainer.h:69
XML file with unit attributes abstraction.
Definition: xmlfileUnits.h:25
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
Definition: vtk-punstructured.h:270