SPH
|
Returns the total energy of all particles. More...
#include <Integrals.h>
Public Member Functions | |
TotalEnergy (const Float omega=0._f) | |
virtual Float | evaluate (const Storage &storage) const override |
Computes the integral quantity using particles in the storage. More... | |
virtual std::string | getName () const override |
Returns the name of the integral. More... | |
![]() | |
virtual | ~Polymorphic () |
Returns the total energy of all particles.
This is simply of sum of total kinetic energy and total internal energy.
Definition at line 132 of file Integrals.h.
|
explicit |
Definition at line 66 of file Integrals.cpp.
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.
Implements IIntegral< Float >.
Definition at line 69 of file Integrals.cpp.
|
inlineoverridevirtual |
Returns the name of the integral.
Needed to label the integral in logs, GUI etc.
Implements IIntegral< Float >.
Definition at line 141 of file Integrals.h.