|
MaMiCo 1.2
|
This class computes the mean potential energy over this coupling cell. More...
#include <ComputeMeanPotentialEnergyMapping.h>
Public Member Functions | |
| ComputeMeanPotentialEnergyMapping (coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface, const coupling::BoundaryForceController< LinkedCell, dim > &boundaryForceController) | |
| ~ComputeMeanPotentialEnergyMapping () | |
| void | beginCellIteration () |
| void | endCellIteration () |
| void | handleCell (LinkedCell &cell) |
| double | getPotentialEnergy () const |
Private Attributes | |
| coupling::interface::MDSolverInterface< LinkedCell, dim > *const | _mdSolverInterface |
| double | _meanPotentialEnergy |
| unsigned int | _particleCounter |
| const coupling::BoundaryForceController< LinkedCell, dim > & | _boundaryForceController |
This class computes the mean potential energy over this coupling cell.
| LinkedCell | cell type |
| dim | Number of dimensions; it can be 1, 2 or 3 |
|
inline |
Constructor
| mdSolverInterface | |
| boundaryForceController |
|
inline |
Destructor
|
inline |
sets the mean potential energy and the particle counter to zero, before the iteration process begins.
|
inline |
computes the mean potential energy in a linked cell, by dividing the summation of the mean potential energy of all particles inside the cell over the number of particles.
|
inline |
returns the mean potential energy inside a linked cell
|
inline |
counts the molecules inside a linked cell and sums up the of the mean potential energy of all particles inside the cell.
| cell |