MaMiCo 1.2
|
This class computes the mass over certain linked cells. More...
#include <ComputeMassMapping.h>
Public Member Functions | |
ComputeMassMapping (coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
~ComputeMassMapping () | |
void | beginCellIteration () |
void | endCellIteration () |
void | handleCell (LinkedCell &cell) |
double | getMass () const |
unsigned int | getNumberOfParticles () const |
Private Attributes | |
coupling::interface::MDSolverInterface< LinkedCell, dim > *const | _mdSolverInterface |
double | _mass |
unsigned int | _particleCounter |
This class computes the mass over certain linked cells.
LinkedCell | cell type |
dim | Number of dimensions; it can be 1, 2 or 3 |
|
inline |
Constructor
mdSolverInterface |
|
inline |
Destructor
|
inline |
sets the mass and the particlee counter to zero, before the iteration process begins.
|
inline |
computes the mass in a linked cell, by multiplying the number of particles inside the cell with the particel mass(which is assuemd to be constant).
|
inline |
returns the mass inside a linked cell
|
inline |
returns the number of particles inside a linked cell
|
inline |
counts the molecules inside a linked cell.
cell |