MaMiCo 1.2
Loading...
Searching...
No Matches
coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Molecules Class Reference

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
 

Detailed Description

template<class LinkedCell, unsigned int dim>
class coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Molecules

class for writing molecule data to stringstreams.

We make use of the traversal callback pattern of CouplingCells.

Author
Philipp Neumann

Constructor & Destructor Documentation

◆ Writer4Molecules()

template<class LinkedCell, unsigned int dim>
coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Molecules::Writer4Molecules ( std::stringstream & moleculeVelocities,
std::stringstream & moleculePositions,
std::stringstream & moleculePotentials,
const std::string & appendFloatZeros,
coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface )
inline

a simple constructor

Parameters
moleculeVelocitiesstream for the molecule velocities
moleculePositionsstream for the molecule positions
moleculePotentialsstream for the molecule potentials
appendFloatZerosstring containing '0' to add in the case of 1d or 2d
mdSolverInterfaceinterface of the md solver

Member Function Documentation

◆ getMoleculeCounter()

template<class LinkedCell, unsigned int dim>
unsigned int coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Molecules::getMoleculeCounter ( ) const
inline

returns the number of molecules

Returns
the number of molecules plotted

Member Data Documentation

◆ _appendFloatZeros

template<class LinkedCell, unsigned int dim>
const std::string coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Molecules::_appendFloatZeros
private

string containing '0' to add in the case of 1d or 2d

◆ _mdSolverInterface

template<class LinkedCell, unsigned int dim>
coupling::interface::MDSolverInterface<LinkedCell, dim>* const coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Molecules::_mdSolverInterface
private

interface to the md solver

◆ _moleculeCounter

template<class LinkedCell, unsigned int dim>
unsigned int coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Molecules::_moleculeCounter
private

counter for the molecules that have been plotted

◆ _moleculePositions

template<class LinkedCell, unsigned int dim>
std::stringstream& coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Molecules::_moleculePositions
private

stringstream for the positions of the molecules

◆ _moleculePotentials

template<class LinkedCell, unsigned int dim>
std::stringstream& coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Molecules::_moleculePotentials
private

stringstream for the potentials of the molecules

◆ _moleculeVelocities

template<class LinkedCell, unsigned int dim>
std::stringstream& coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Molecules::_moleculeVelocities
private

stringstream for the velocities of the molecules


The documentation for this class was generated from the following file: