MaMiCo 1.2
|
Velocity imposition scheme following the respective paper by Nie et al., J. Fluid. Mech. 500, 2004. More...
#include <NieVelocityImposition.h>
Public Member Functions | |
NieVelocityImposition (coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface, const unsigned int &outermostLayer, const unsigned int &innermostLayer) | |
a simple constructor | |
virtual | ~NieVelocityImposition () |
a simple destructor | |
unsigned int | getTimeIntervalPerMomentumInsertion () const override |
momentum shall be inserted in every md time step, so this returns 1 | |
void | insertMomentum (coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, I02 idx) const override |
inserts momentum to a cell | |
![]() | |
MomentumInsertion (coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
a simple constructor | |
virtual | ~MomentumInsertion () |
a simple destructor | |
Private Member Functions | |
bool | isInsideImpositionLayer (I01 globalCellIndex) const |
based on the cell index, the function tells if the cell is inside the imposition layer | |
Private Attributes | |
const unsigned int | _outermostLayer |
the index of the outermost cell layer | |
const unsigned int | _innermostLayer |
the index of the innermost cell layer | |
Additional Inherited Members | |
![]() | |
coupling::interface::MDSolverInterface< LinkedCell, dim > *const | _mdSolverInterface |
Velocity imposition scheme following the respective paper by Nie et al., J. Fluid. Mech. 500, 2004.
LinkedCell | the LinkedCell class is given by the implementation of linked cells in the molecular dynamics simulation |
dim | refers to the spacial dimension of the simulation, can be 1, 2, or 3 |
|
inline |
a simple constructor
mdSolverInterface | interface to the md solver |
outermostLayer | the index of the outermost cell layer |
innermostLayer | the index of the innermost cell layer |
|
inlineoverridevirtual |
momentum shall be inserted in every md time step, so this returns 1
Implements coupling::MomentumInsertion< LinkedCell, dim >.
|
inlineoverridevirtual |
inserts momentum to a cell
cell | to the coupling cell will the momentum be inserted |
idx | local linearised index for the coupling cell |
Implements coupling::MomentumInsertion< LinkedCell, dim >.
|
inlineprivate |
based on the cell index, the function tells if the cell is inside the imposition layer
returns true if the local cell at index currentLocalCouplingCellIndex is inside the layer of imposition cells, given by outermostLayer and innermostLayer. For, e.g., outermostLayer=2 and innermostLayer=3, the layers for imposition are located in the 3rd and 4th strip of cells (we start counting from cell layer=0 which corresponds to the outermost, actually ghost-layer of cells which surrounds the MD domain).
globalCellIndex | global linearised index of a coupling cell to check |