MaMiCo 1.2
|
This class sets kinetic energy over several linked cells. More...
#include <SetKineticEnergyMapping.h>
Public Member Functions | |
SetKineticEnergyMapping (const double &oldKineticEnergy, const double &newKineticEnergy, const unsigned int &numberParticles, const tarch::la::Vector< dim, double > &meanVelocity, coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
~SetKineticEnergyMapping () | |
void | beginCellIteration () |
void | endCellIteration () |
void | handleCell (LinkedCell &cell) |
Private Member Functions | |
double | getCorrectionFactor (const double &oldKineticEnergy, const double &newKineticEnergy, const unsigned int &numberParticles, const tarch::la::Vector< dim, double > &meanVelocity) const |
Private Attributes | |
coupling::interface::MDSolverInterface< LinkedCell, dim > *const | _mdSolverInterface |
const tarch::la::Vector< dim, double > | _meanVelocity |
const double | _correctionFactor |
This class sets kinetic energy 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.
oldKineticEnergy | |
newKineticEnergy | |
numberParticles | |
meanVelocity | |
mdSolverInterface |
|
inline |
Destructor
|
inline |
empty function
|
inline |
empty function
|
inlineprivate |
returns the correction factor between the old and new kinetic energy
numberParticles | |
momentum |
|
inline |
sets new velocity: still with same mean, but re-scale the deviation for correct thermal energy
cell |