MaMiCo 1.2
|
This class employs an acceleration based on velocity gradients (in time) using the forcing term of the molecules. More...
#include <NieVelocityImpositionMapping.h>
Public Member Functions | |
NieVelocityImpositionMapping (const tarch::la::Vector< dim, double > &continuumVelocity, const tarch::la::Vector< dim, double > &avgMDVelocity, const tarch::la::Vector< dim, double > &avgForce, coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
virtual | ~NieVelocityImpositionMapping () |
void | beginCellIteration () |
void | endCellIteration () |
void | handleCell (LinkedCell &cell) |
Private Attributes | |
coupling::interface::MDSolverInterface< LinkedCell, dim > *const | _mdSolverInterface |
const tarch::la::Vector< dim, double > | _continuumVelocity |
const tarch::la::Vector< dim, double > | _avgMDVelocity |
const tarch::la::Vector< dim, double > | _avgForce |
This class employs an acceleration based on velocity gradients (in time) using the forcing term of the molecules.
employs an acceleration based on velocity gradients (in time) using the forcing term of the molecules. We currently expect that valid force entries are provided in each molecule, that is all molecule-molecule interactions have previously been computed. The scheme follows the descriptions in the paper by Nie et al., J. Fluid. Mech. 500, 55-64, 2004. However, we only average over single grid cells (no averaging over one (periodic) dimension or similar tricks ;-) ).
LinkedCell | cell type |
dim | Number of dimensions; it can be 1, 2 or 3 |
|
inline |
Constructor
continuumVelocity | current velocity in this coupling cell (=velocity from continuum solver) |
avgMDVelocity | current avg. velocity of molecules |
avgForce | average force within this coupling cell |
mdSolverInterface | MD solver interface, required for molecule iterator and molecule mass |
|
inlinevirtual |
Destructor
|
inline |
empty function
|
inline |
empty function
|
inline |
This function computes average force contribution inside this linked cell
cell |
|
private |
average force within this coupling cell
|
private |
current avg. velocity of molecules
|
private |
current velocity in this coupling cell (=velocity from continuum solver)
|
private |
MD solver interface, required for molecule iterator and molecule mass