MaMiCo 1.2
|
This class computes the momentum over certain linked cells. More...
#include <ComputeMomentumMapping.h>
Public Member Functions | |
ComputeMomentumMapping (coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
~ComputeMomentumMapping () | |
void | beginCellIteration () |
void | endCellIteration () |
void | handleCell (LinkedCell &cell) |
tarch::la::Vector< dim, double > | getMomentum () const |
tarch::la::Vector< dim, double > | getMeanVelocity () const |
Private Attributes | |
coupling::interface::MDSolverInterface< LinkedCell, dim > *const | _mdSolverInterface |
tarch::la::Vector< dim, double > | _momentum |
tarch::la::Vector< dim, double > | _meanVelocity |
unsigned int | _particleCounter |
This class computes the momentum 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 mean velocity, momentum and the particle counter to zero, before the iteration process begins.
|
inline |
computes the mean velocity, momentum in a linked cell, by dividing and multiplying the summation of the velocities computed in handleCell(...) over the number if particle and in particle mass respectively.
|
inline |
returns the mean velocity inside a linked cell
|
inline |
returns the momentum inside a linked cell
|
inline |
counts the molecules inside a linked cell and sums up the of the velocity of all particles inside the cell and saves it as momentum.
cell |