|
MaMiCo 1.2
|
This class sets a certain momentum over several linked cells. More...
#include <SetMomentumMapping.h>

Public Member Functions | |
| SetMomentumMapping (const tarch::la::Vector< dim, double > &oldMomentum, const tarch::la::Vector< dim, double > &newMomentum, const unsigned int &numberParticles, coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
| ~SetMomentumMapping () | |
| void | beginCellIteration () |
| void | endCellIteration () |
| void | handleCell (LinkedCell &cell) |
Private Member Functions | |
| tarch::la::Vector< dim, double > | getVelocity (const unsigned int &numberParticles, const tarch::la::Vector< dim, double > &momentum) const |
Private Attributes | |
| coupling::interface::MDSolverInterface< LinkedCell, dim > *const | _mdSolverInterface |
| tarch::la::Vector< dim, double > | _oldVelocity |
| tarch::la::Vector< dim, double > | _newVelocity |
This class sets a certain momentum over several linked cells.
| LinkedCell | cell type |
| dim | Number of dimensions; it can be 1, 2 or 3 |
|
inline |
obtains the old momentum over the region of interest. Besides, obtains the new momentum that shall be set and the number of particles contained in the coupling cell.
| oldMomentum | |
| newMomentum | |
| numberParticles | |
| mdSolverInterface |
|
inline |
Destructor
|
inline |
empty function
|
inline |
empty function
|
inlineprivate |
returns mean velocity og the cell
| numberParticles | |
| momentum |
|
inline |
applies a certain momentum over several linked cells, by steering the velocity.
| cell |