MaMiCo 1.2
|
This class computes the kinetic energy. inside a linked cell. More...
#include <ComputeKineticEnergyMapping.h>
Public Member Functions | |
ComputeKineticEnergyMapping (coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
~ComputeKineticEnergyMapping () | |
void | beginCellIteration () |
void | endCellIteration () |
void | handleCell (LinkedCell &cell) |
double | getKineticEnergy () const |
Private Attributes | |
coupling::interface::MDSolverInterface< LinkedCell, dim > *const | _mdSolverInterface |
double | _kineticEnergy |
This class computes the kinetic energy. inside a linked cell.
LinkedCell | cell type |
dim | Number of dimensions; it can be 1, 2 or 3 |
|
inline |
Constructor
mdSolverInterface |
|
inline |
Destructor
|
inline |
sets the kinetic energy to zero, before the iteration process begins.
|
inline |
computes the kinetic energy in a linked cell, by multiplying the specific kinetic energy with the mass and 0.5.
|
inline |
returns the kinetic energy inside a linked cell
|
inline |
sums up the specific kinetic energy of all molecules inside a linked cell.
cell |