MaMiCo 1.2
|
class for writing coupling cell data to stringstreams. More...
Public Member Functions | |
Writer4Cells (std::stringstream µscopicMasses, std::stringstream ¯oscopicMasses, std::stringstream µscopicMomenta, std::stringstream ¯oscopicMomenta, std::stringstream &meanVelocities, std::stringstream &masses, std::stringstream &energies, std::stringstream &temperatures, const std::string &appendFloatZeros, coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
a simple constructor | |
~Writer4Cells () | |
a simple destructor | |
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) |
writes the data from the cell to the stringstreams | |
Private Attributes | |
std::stringstream & | _microscopicMasses |
std::stringstream & | _macroscopicMasses |
std::stringstream & | _microscopicMomenta |
std::stringstream & | _macroscopicMomenta |
std::stringstream & | _meanVelocities |
std::stringstream & | _masses |
std::stringstream & | _energies |
std::stringstream & | _temperatures |
const std::string | _appendFloatZeros |
coupling::cellmappings::ComputeMassMapping< LinkedCell, dim > | _computeMassMapping |
coupling::cellmappings::ComputeMomentumMapping< LinkedCell, dim > | _computeMomentumMapping |
coupling::KineticEnergyController< LinkedCell, dim > | _kineticEnergyController |
class for writing coupling cell data to stringstreams.
|
inline |
a simple constructor
microscopicMasses | stream for the microscopic masses |
macroscopicMasses | stream for the macroscopic masses |
microscopicMomenta | stream for the microscopic momenta |
macroscopicMomenta | stream for the macroscopic momenta |
meanVelocities | stream for the mean velocities |
masses | stream for the masses |
energies | stream for the energies |
temperatures | stream for the temperatures |
appendFloatZeros | string containing '0' to add in the case of 1d or 2d |
mdSolverInterface | interface of the md solver |
|
inline |
writes the data from the cell to the stringstreams
cell | coupling cell |
index | linearised index of the coupling cell |
|
private |
string containing '0' to add in the case of 1d or 2d
|
private |
instance of the computeMassMapping
|
private |
instance of the computeMomentumMapping
|
private |
stream containing the total energy in the cells
|
private |
instance of the KineticEnergyController
|
private |
stream containing the macroscopic mass of the cells (buffer to transfer mass from md to macro)
|
private |
stream containing the macroscopic momenta of the cells (buffer to transfer momenta from md to macro )
|
private |
stream containing the total mass in the cells
|
private |
stream containing the mean velocity of the cells
|
private |
stream containing the microscopic mass of the cells (buffer to transfer mass from macro to md)
|
private |
stream containing the microscopic momenta of the cells (buffer to transfer momenta from macro to md)
|
private |
stream containing the mean temperature in the cells