ls1-MarDyn
ls1-MarDyn molecular dynamics code
CubicGridGeneratorInternal.h
1/*
2 * CubicGridGeneratorInternal.h
3 *
4 * Created on: Jun 9, 2017
5 * Author: seckler
6 */
7
8#pragma once
9#include <vector>
10#include "InputBase.h"
11#include "molecules/Component.h"
12#include "utils/Random.h"
13
15class Domain;
17
18
20private:
21 // use unsigned long long for BG/P
22 unsigned long long int _numMolecules;
23 bool _binaryMixture;
24
25public:
28 }
29
30 void readPhaseSpaceHeader(Domain* /*domain*/, double /*timestep*/) {
31 }
32 unsigned long readPhaseSpace(ParticleContainer *particleContainer, Domain *domain, DomainDecompBase *domainDecomp);
33
43 void readXML(XMLfileUnits& xmlconfig);
44private:
45
52 std::array<unsigned long, 3> determineMolsPerDimension(unsigned long targetTotalNumMols, std::array<double, 3> boxLength) const;
53
54};
Definition: CubicGridGeneratorInternal.h:19
void readPhaseSpaceHeader(Domain *, double)
read the phase space components and header information
Definition: CubicGridGeneratorInternal.h:30
void readXML(XMLfileUnits &xmlconfig)
Read in XML configuration for MkTcTSGenerator and all its included objects.
Definition: CubicGridGeneratorInternal.cpp:29
unsigned long readPhaseSpace(ParticleContainer *particleContainer, Domain *domain, DomainDecompBase *domainDecomp)
read the actual phase space information
Definition: CubicGridGeneratorInternal.cpp:61
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