SPH
|
Computes total momentum of all SPH particles with a respect to the reference frame. More...
#include <Integrals.h>
Public Member Functions | |
TotalMomentum (const Float omega=0._f) | |
virtual Vector | 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 () |
Computes total momentum of all SPH particles with a respect to the reference frame.
Storage must contain at least particle masses and particle positions with velocities, checked by assert.
Definition at line 62 of file Integrals.h.
|
explicit |
Definition at line 20 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< Vector >.
Definition at line 24 of file Integrals.cpp.
|
inlineoverridevirtual |
Returns the name of the integral.
Needed to label the integral in logs, GUI etc.
Implements IIntegral< Vector >.
Definition at line 71 of file Integrals.h.