ls1-MarDyn
ls1-MarDyn molecular dynamics code
|
#include <GridFiller.h>
Public Member Functions | |
void | readXML (XMLfileUnits &xmlconfig) |
Read in XML configuration for GridFiller and all its included objects. More... | |
void | init (Lattice &lattice, Basis &basis, double origin[3]) |
void | init () |
void | setObject (std::shared_ptr< Object > object) |
int | getMolecule (Molecule *molecule) |
std::string | getPluginName () |
Static Public Member Functions | |
static ObjectFillerBase * | createInstance () |
The GridFiller returns molecules within an object placed on a lattice using a specified lattice basis.
|
virtual |
Get a single molecule By subsequent calls all molecules will be returned, one by one.
[out] | molecule | Pointer to molecule data structure where to store the molecule data (coordinate and component id) |
Implements ObjectFillerBase.
|
inlinevirtual |
Implements ObjectFillerBase.
|
virtual |
Initialize the generator with current internal state
Implements ObjectFillerBase.
Initialize the generator
[in] | lattice | The underlying point lattice to be used |
[in] | basis | The molecular basis to be put on each lattice point |
[in] | origin | The origin for the lattice |
[in] | object | Volume object to be filled |
|
virtual |
Read in XML configuration for GridFiller and all its included objects.
If a density is provided a cubic lattice will be used. If in this case also a lattice occupancy factor (0-1] is provided, a finer grid will be used and only the specified fraction of points will be used. The lattice vectors will be scaled to achieve the desired density taking the occupancy factor into account. By default the occupancy factor is 1 (use all lattice points).
The following xml object structure is handled by this method:
Implements ObjectFillerBase.
|
inlinevirtual |
Implements ObjectFillerBase.