5#ifndef _MOLECULARDYNAMICS_COUPLING_ADDITIVEMOMENTUMINSERTION_H_
6#define _MOLECULARDYNAMICS_COUPLING_ADDITIVEMOMENTUMINSERTION_H_
8#include "coupling/MomentumInsertion.h"
9#include "coupling/cell-mappings/ComputeMassMapping.h"
10#include "coupling/cell-mappings/SetMomentumMapping.h"
11#include "coupling/datastructures/CouplingCell.h"
12#include "tarch/la/Vector.h"
64 if (tarch::la::dot(momentum, momentum) != 0.0) {
used to manipulate the momentum/velocity of the molecules contained in a coupling cell.
Definition AdditiveMomentumInsertion.h:30
const unsigned int _numberMDTimestepsPerCouplingCycle
Definition AdditiveMomentumInsertion.h:75
unsigned int getTimeIntervalPerMomentumInsertion() const override
returns the interval of time steps for momentum insertion
Definition AdditiveMomentumInsertion.h:46
void insertMomentum(coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, I02 idx) const override
inserts momentum to the cell
Definition AdditiveMomentumInsertion.h:55
AdditiveMomentumInsertion(coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface, unsigned int numberMDTimestepsPerCouplingCycle)
A simple constructor.
Definition AdditiveMomentumInsertion.h:37
~AdditiveMomentumInsertion()
A simple destructor.
Definition AdditiveMomentumInsertion.h:41
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
This class computes the mass over certain linked cells.
Definition ComputeMassMapping.h:23
unsigned int getNumberOfParticles() const
Definition ComputeMassMapping.h:67
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