SPH
|
Interface for classes computing integral quantities from storage. More...
#include <Integrals.h>
Public Member Functions | |
virtual Type | evaluate (const Storage &storage) const =0 |
Computes the integral quantity using particles in the storage. More... | |
virtual std::string | getName () const =0 |
Returns the name of the integral. More... | |
![]() | |
virtual | ~Polymorphic () |
Interface for classes computing integral quantities from storage.
This interface is used to get reduced information from all particles (and possibly all quantities) in the storage. The result is a single value, type of which is given by the template parameter. This is useful to get integrals of motion, as the name suggests, as well as other useful values, like average/minimal/maximal value of given quantity, etc.
Definition at line 27 of file Integrals.h.
|
pure virtual |
Computes the integral quantity using particles in the storage.
Storage must contain quantites relevant to the integral implementation. Generally positions, masses and density must be present.
Implemented in RelativeEnergyChange, IntegralWrapper, QuantityValue, QuantityMeans, CenterOfMass, TotalEnergy, TotalInternalEnergy, TotalKineticEnergy, TotalAngularMomentum, TotalMomentum, and TotalMass.
|
pure virtual |
Returns the name of the integral.
Needed to label the integral in logs, GUI etc.
Implemented in RelativeEnergyChange, SelectedParticleIntegral, IntegralWrapper, QuantityValue, QuantityMeans, CenterOfMass, TotalEnergy, TotalInternalEnergy, TotalKineticEnergy, TotalAngularMomentum, TotalMomentum, and TotalMass.