MaMiCo 1.2
|
class for writing molecule data to stringstreams. More...
Public Member Functions | |
Writer4Molecules (std::stringstream &moleculeVelocities, std::stringstream &moleculePositions, std::stringstream &moleculePotentials, const std::string &appendFloatZeros, coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
a simple constructor | |
void | beginCellIteration () |
does everything which is neccessary before the application of the writer to the cells | |
void | endCellIteration () |
does everything which is neccessary after the application of the writer to the cells | |
void | apply (coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, const I02 &index) |
aplication of the vtkMoleculePlotter to the coupling cells | |
unsigned int | getMoleculeCounter () const |
returns the number of molecules | |
Private Attributes | |
std::stringstream & | _moleculeVelocities |
std::stringstream & | _moleculePositions |
std::stringstream & | _moleculePotentials |
const std::string | _appendFloatZeros |
coupling::interface::MDSolverInterface< LinkedCell, dim > *const | _mdSolverInterface |
unsigned int | _moleculeCounter |
class for writing molecule data to stringstreams.
We make use of the traversal callback pattern of CouplingCells.
|
inline |
a simple constructor
moleculeVelocities | stream for the molecule velocities |
moleculePositions | stream for the molecule positions |
moleculePotentials | stream for the molecule potentials |
appendFloatZeros | string containing '0' to add in the case of 1d or 2d |
mdSolverInterface | interface of the md solver |
|
inline |
returns the number of molecules
|
private |
string containing '0' to add in the case of 1d or 2d
|
private |
interface to the md solver
|
private |
counter for the molecules that have been plotted
|
private |
stringstream for the positions of the molecules
|
private |
stringstream for the potentials of the molecules
|
private |
stringstream for the velocities of the molecules