used to manipulate the momentum/ velocity of the molecules contained in a coupling cell.
More...
template<class LinkedCell, unsigned int dim>
class coupling::MomentumInsertion< LinkedCell, dim >
used to manipulate the momentum/ velocity of the molecules contained in a coupling cell.
- Author
- Philipp Neumann
- Template Parameters
-
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 |
template<class LinkedCell, unsigned int dim>
inserts a fraction from the momentum of the coupling cell and distributes is over all molecules.
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.
- Parameters
-
cell | the coupling cell to insert the momentum |
fraction | the fraction of momentum to use |
Implemented in coupling::AdditiveMomentumInsertion< LinkedCell, dim >, coupling::NieVelocityImposition< LinkedCell, dim >, coupling::NoMomentumInsertion< LinkedCell, dim >, coupling::SetGivenVelocity4MomentumInsertion< LinkedCell, dim >, coupling::VelocityGradientRelaxation< LinkedCell, dim >, and coupling::VelocityGradientRelaxationTopOnly< LinkedCell, dim >.