MaMiCo 1.2
|
This class sums up all force/velocity vectors and counts molecules inside a linked cell. More...
#include <ComputeAvgForceAndVelocity.h>
Public Member Functions | |
ComputeAvgForceAndVelocity (coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
~ComputeAvgForceAndVelocity () | |
void | beginCellIteration () |
void | endCellIteration () |
void | handleCell (LinkedCell &cell) |
tarch::la::Vector< dim, double > | getAvgForce () const |
tarch::la::Vector< dim, double > | getAvgVelocity () const |
Private Attributes | |
coupling::interface::MDSolverInterface< LinkedCell, dim > *const | _mdSolverInterface |
tarch::la::Vector< dim, double > | _force |
tarch::la::Vector< dim, double > | _velocity |
unsigned int | _particleCounter |
This class sums up all force/velocity vectors and counts molecules inside a linked cell.
This class sums up all force and velocity vectors and counts molecules inside a linked cell. Afterwards, the average force/velocity contribution is computed.
LinkedCell | cell type |
dim | Number of dimensions; it can be 1, 2 or 3 |
|
inline |
Constructor
mdSolverInterface |
|
inline |
Destructor
|
inline |
sets force, velocity and moluce counter to zero, before the iteration process begins.
|
inline |
the average force and velocity contribution incide a linked cell are computed, by dividing the summation calculated in endCellIteration() over number of the particles inside the cell.
|
inline |
returns the force vectors inside a linked cell
|
inline |
returns the velocity vectors inside a linked cell
|
inline |
sums up all force and velocity vectors and counts molecules inside a linked cell.
cell |