5#ifndef _MOLECULARDYNAMICS_COUPLING_CELLMAPPINGS_COMPUTEMASSMAPPING_H_
6#define _MOLECULARDYNAMICS_COUPLING_CELLMAPPINGS_COMPUTEMASSMAPPING_H_
8#include "coupling/interface/MDSolverInterface.h"
12namespace cellmappings {
29 : _mdSolverInterface(mdSolverInterface), _mass(0.0), _particleCounter(0) {}
45 void endCellIteration() { _mass = _mdSolverInterface->getMoleculeMass() * _particleCounter; }
72 unsigned int _particleCounter;
This class computes the mass over certain linked cells.
Definition ComputeMassMapping.h:23
void endCellIteration()
Definition ComputeMassMapping.h:45
unsigned int getNumberOfParticles() const
Definition ComputeMassMapping.h:67
double getMass() const
Definition ComputeMassMapping.h:63
void handleCell(LinkedCell &cell)
Definition ComputeMassMapping.h:50
void beginCellIteration()
Definition ComputeMassMapping.h:37
~ComputeMassMapping()
Definition ComputeMassMapping.h:32
ComputeMassMapping(coupling::interface::MDSolverInterface< LinkedCell, dim > *const mdSolverInterface)
Definition ComputeMassMapping.h:28
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
everything necessary for coupling operations, is defined in here
Definition AdditiveMomentumInsertion.h:15