5#ifndef _MOLECULARDYNAMICS_COUPLING_SETGIVENVELOCITY4MOMENTUMINSERTION_H_
6#define _MOLECULARDYNAMICS_COUPLING_SETGIVENVELOCITY4MOMENTUMINSERTION_H_
8#include "coupling/MomentumInsertion.h"
9#include "coupling/cell-mappings/ComputeMassMapping.h"
10#include "coupling/cell-mappings/ComputeMomentumMapping.h"
11#include "coupling/cell-mappings/SetMomentumMapping.h"
12#include "coupling/interface/MDSolverInterface.h"
53 unsigned int particleCounter = 0;
used to manipulate the momentum/ velocity of the molecules contained in a coupling cell.
Definition MomentumInsertion.h:23
coupling::interface::MDSolverInterface< LinkedCell, dim > *const _mdSolverInterface
Definition MomentumInsertion.h:47
MomentumInsertion(coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface)
a simple constructor
Definition MomentumInsertion.h:27
Definition SetGivenVelocity4MomentumInsertion.h:25
unsigned int getTimeIntervalPerMomentumInsertion() const override
returns 1, since momentum insertions will be applied in every md timestep
Definition SetGivenVelocity4MomentumInsertion.h:38
SetGivenVelocity4MomentumInsertion(coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface)
a simple constructor
Definition SetGivenVelocity4MomentumInsertion.h:29
void insertMomentum(coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, I02 idx) const override
updates the momentum based on the microscopic momentum
Definition SetGivenVelocity4MomentumInsertion.h:46
virtual ~SetGivenVelocity4MomentumInsertion()
a simple destructor
Definition SetGivenVelocity4MomentumInsertion.h:33
This class computes the mass over certain linked cells.
Definition ComputeMassMapping.h:23
unsigned int getNumberOfParticles() const
Definition ComputeMassMapping.h:67
double getMass() const
Definition ComputeMassMapping.h:63
This class computes the momentum over certain linked cells.
Definition ComputeMomentumMapping.h:24
tarch::la::Vector< dim, double > getMomentum() const
Definition ComputeMomentumMapping.h:76
This class sets a certain momentum over several linked cells.
Definition SetMomentumMapping.h:24
defines the cell type with cell-averaged quantities. Derived from the class coupling::datastructures:...
Definition CouplingCellWithLinkedCells.h:26
void iterateConstCells(A &a) const
Definition CouplingCellWithLinkedCells.h:90
void iterateCells(A &a)
Definition CouplingCellWithLinkedCells.h:74
const tarch::la::Vector< dim, double > & getMicroscopicMomentum() const
Definition CouplingCell.h:51
interface to the MD simulation
Definition MDSolverInterface.h:25
everything necessary for coupling operations, is defined in here
Definition AdditiveMomentumInsertion.h:15