5#ifndef _MOLECULARDYNAMICS_COUPLING_KINETICENERGYCONTROLLER_H_
6#define _MOLECULARDYNAMICS_COUPLING_KINETICENERGYCONTROLLER_H_
8#include "coupling/cell-mappings/ComputeKineticEnergyMapping.h"
9#include "coupling/cell-mappings/ComputeMassMapping.h"
10#include "coupling/cell-mappings/ComputeMomentumMapping.h"
11#include "coupling/cell-mappings/ComputeTemperatureMapping.h"
12#include "coupling/cell-mappings/SetKineticEnergyMapping.h"
13#include "coupling/cell-mappings/SetTemperatureMapping.h"
14#include "coupling/datastructures/CouplingCell.h"
15#include "coupling/datastructures/CouplingCellWithLinkedCells.h"
92 double currentTemperature = computeTemperatureMapping.
getTemperature();
controles and regulates the kinetic energy of the MD system.
Definition KineticEnergyController.h:27
double computeKineticEnergy(coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell) const
computes and returns the kinetic energy within a coupling cell
Definition KineticEnergyController.h:38
double computeTemperature(coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell) const
computes and returns the temperature within a coupling cell
Definition KineticEnergyController.h:47
coupling::interface::MDSolverInterface< LinkedCell, dim > *const _mdSolverInterface
Definition KineticEnergyController.h:100
KineticEnergyController(coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface)
a simple constructor
Definition KineticEnergyController.h:31
~KineticEnergyController()
a simple destructor
Definition KineticEnergyController.h:33
void setTemperature(coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, const double &temperature) const
sets the temperature within the cell to 'temperature'.
Definition KineticEnergyController.h:85
void setKineticEnergy(coupling::datastructures::CouplingCellWithLinkedCells< LinkedCell, dim > &cell, const double &kineticEnergy) const
sets the kinetic energy within a coupling cell to the input value.
Definition KineticEnergyController.h:63
This class computes the kinetic energy. inside a linked cell.
Definition ComputeKineticEnergyMapping.h:25
double getKineticEnergy() const
Definition ComputeKineticEnergyMapping.h:64
This class computes the mass over certain linked cells.
Definition ComputeMassMapping.h:23
unsigned int getNumberOfParticles() const
Definition ComputeMassMapping.h:67
This class computes the momentum over certain linked cells.
Definition ComputeMomentumMapping.h:24
tarch::la::Vector< dim, double > getMeanVelocity() const
Definition ComputeMomentumMapping.h:81
This class computes the temperature in a certain (coupling) cell.
Definition ComputeTemperatureMapping.h:25
double getTemperature() const
Definition ComputeTemperatureMapping.h:76
This class sets kinetic energy over several linked cells.
Definition SetKineticEnergyMapping.h:25
This class sets a certain temperature over several linked cells.
Definition SetTemperatureMapping.h:25
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