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

class for writing coupling cell data to stringstreams. More...

Public Member Functions

 Writer4Cells (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::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
 

Detailed Description

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

class for writing coupling cell data to stringstreams.

Author
Philipp Neumann

Constructor & Destructor Documentation

◆ Writer4Cells()

template<class LinkedCell, unsigned int dim>
coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Cells::Writer4Cells ( 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::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface )
inline

a simple constructor

Parameters
microscopicMassesstream for the microscopic masses
macroscopicMassesstream for the macroscopic masses
microscopicMomentastream for the microscopic momenta
macroscopicMomentastream for the macroscopic momenta
meanVelocitiesstream for the mean velocities
massesstream for the masses
energiesstream for the energies
temperaturesstream for the temperatures
appendFloatZerosstring containing '0' to add in the case of 1d or 2d
mdSolverInterfaceinterface of the md solver

Member Function Documentation

◆ apply()

template<class LinkedCell, unsigned int dim>
void coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Cells::apply ( coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > & cell,
const I02 & index )
inline

writes the data from the cell to the stringstreams

Parameters
cellcoupling cell
indexlinearised index of the coupling cell

Member Data Documentation

◆ _appendFloatZeros

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

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

◆ _computeMassMapping

template<class LinkedCell, unsigned int dim>
coupling::cellmappings::ComputeMassMapping<LinkedCell, dim> coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Cells::_computeMassMapping
private

instance of the computeMassMapping

◆ _computeMomentumMapping

template<class LinkedCell, unsigned int dim>
coupling::cellmappings::ComputeMomentumMapping<LinkedCell, dim> coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Cells::_computeMomentumMapping
private

instance of the computeMomentumMapping

◆ _energies

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

stream containing the total energy in the cells

◆ _kineticEnergyController

template<class LinkedCell, unsigned int dim>
coupling::KineticEnergyController<LinkedCell, dim> coupling::CouplingCellPlotter< LinkedCell, dim >::Writer4Cells::_kineticEnergyController
private

instance of the KineticEnergyController

◆ _macroscopicMasses

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

stream containing the macroscopic mass of the cells (buffer to transfer mass from md to macro)

◆ _macroscopicMomenta

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

stream containing the macroscopic momenta of the cells (buffer to transfer momenta from md to macro )

◆ _masses

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

stream containing the total mass in the cells

◆ _meanVelocities

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

stream containing the mean velocity of the cells

◆ _microscopicMasses

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

stream containing the microscopic mass of the cells (buffer to transfer mass from macro to md)

◆ _microscopicMomenta

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

stream containing the microscopic momenta of the cells (buffer to transfer momenta from macro to md)

◆ _temperatures

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

stream containing the mean temperature in the cells


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