5#ifndef _MOLECULARDYNAMICS_COUPLING_MOMENTUMCONTROLLER_H_
6#define _MOLECULARDYNAMICS_COUPLING_MOMENTUMCONTROLLER_H_
8#include "coupling/cell-mappings/ComputeMassMapping.h"
9#include "coupling/cell-mappings/ComputeMomentumMapping.h"
10#include "coupling/cell-mappings/SetMomentumMapping.h"
11#include "coupling/datastructures/CouplingCell.h"
12#include "tarch/la/Vector.h"
controls the momentum in a coupling cell.
Definition MomentumController.h:26
void setMomentum(coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, const tarch::la::Vector< dim, double > &newMomentum)
sets the momentum of a coupling cell to the input value.
Definition MomentumController.h:78
void computeMomentum(coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, tarch::la::Vector< dim, double > &momentum)
computes and returns the momentum of a coupling cell
Definition MomentumController.h:54
MomentumController(coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface)
a simple constructor
Definition MomentumController.h:30
coupling::cellmappings::ComputeMassMapping< LinkedCell, dim > _computeMassMapping
Definition MomentumController.h:89
coupling::interface::MDSolverInterface< LinkedCell, dim > *const _mdSolverInterface
Definition MomentumController.h:93
void computeMomentumAndMeanVelocity(coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, tarch::la::Vector< dim, double > &momentum, tarch::la::Vector< dim, double > &meanVelocity)
computes and returns the momentum and mean velocity of a coupling cell
Definition MomentumController.h:43
coupling::cellmappings::ComputeMomentumMapping< LinkedCell, dim > _computeMomentumMapping
Definition MomentumController.h:91
~MomentumController()
Definition MomentumController.h:34
void computeMeanVelocity(coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, tarch::la::Vector< dim, double > &meanVelocity)
Definition MomentumController.h:63
This class computes the mass over certain linked cells.
Definition ComputeMassMapping.h:23
This class computes the momentum over certain linked cells.
Definition ComputeMomentumMapping.h:24
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
interface to the MD simulation
Definition MDSolverInterface.h:25
everything necessary for coupling operations, is defined in here
Definition AdditiveMomentumInsertion.h:15