5#ifndef _MOLECULARDYNAMICS_COUPLING_CELLMAPPINGS_COMPUTEKINETICENERGYMAPPING_H_
6#define _MOLECULARDYNAMICS_COUPLING_CELLMAPPINGS_COMPUTEKINETICENERGYMAPPING_H_
8#include "coupling/interface/MDSolverInterface.h"
9#include "coupling/interface/Molecule.h"
14namespace cellmappings {
31 : _mdSolverInterface(mdSolverInterface), _kineticEnergy(0.0) {}
43 void endCellIteration() { _kineticEnergy = 0.5 * _mdSolverInterface->getMoleculeMass() * _kineticEnergy; }
68 double _kineticEnergy;
This class computes the kinetic energy. inside a linked cell.
Definition ComputeKineticEnergyMapping.h:25
void handleCell(LinkedCell &cell)
Definition ComputeKineticEnergyMapping.h:48
void endCellIteration()
Definition ComputeKineticEnergyMapping.h:43
ComputeKineticEnergyMapping(coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface)
Definition ComputeKineticEnergyMapping.h:30
~ComputeKineticEnergyMapping()
Definition ComputeKineticEnergyMapping.h:34
void beginCellIteration()
Definition ComputeKineticEnergyMapping.h:38
double getKineticEnergy() const
Definition ComputeKineticEnergyMapping.h:64
interface to the MD simulation
Definition MDSolverInterface.h:25
some iterator scheme for traversing the molecules within a linked cell.
Definition MoleculeIterator.h:24
virtual bool continueIteration() const =0
virtual const coupling::interface::Molecule< dim > & getConst()=0
interface to access a single molecule in the MD simulation.
Definition Molecule.h:23
virtual tarch::la::Vector< dim, double > getVelocity() const =0
everything necessary for coupling operations, is defined in here
Definition AdditiveMomentumInsertion.h:15