MaMiCo 1.2
|
#include <SetGivenVelocity4MomentumInsertion.h>
Public Member Functions | |
SetGivenVelocity4MomentumInsertion (coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
a simple constructor | |
virtual | ~SetGivenVelocity4MomentumInsertion () |
a simple destructor | |
unsigned int | getTimeIntervalPerMomentumInsertion () const override |
returns 1, since momentum insertions will be applied in every md timestep | |
void | insertMomentum (coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, I02 idx) const override |
updates the momentum based on the microscopic momentum | |
![]() | |
MomentumInsertion (coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface) | |
a simple constructor | |
virtual | ~MomentumInsertion () |
a simple destructor | |
Additional Inherited Members | |
![]() | |
coupling::interface::MDSolverInterface< LinkedCell, dim > *const | _mdSolverInterface |
interpretes the microscopicMomentum-buffer as velocity and sets this value in the respective coupling cell.
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 for the md solver |
|
inlineoverridevirtual |
returns 1, since momentum insertions will be applied in every md timestep
Implements coupling::MomentumInsertion< LinkedCell, dim >.
|
inlineoverridevirtual |
updates the momentum based on the microscopic momentum
This method does not conserve the kinetic energy of the respective coupling cell. To conserve the energy as well, see the description of MomentumController on details how to do that.
cell | coupling cell |
Implements coupling::MomentumInsertion< LinkedCell, dim >.