SPHinXsys
alpha version
|
Compute the total mechanical (kinematic and potential) energy. More...
#include <general_dynamics.h>
Inherits SPH::ParticleDynamicsReduce< Real, ReduceSum< Real > >, and SPH::DataDelegateSimple< SPHBody, BaseParticles, BaseMaterial >.
Public Member Functions | |
TotalMechanicalEnergy (SPHBody &sph_body) | |
TotalMechanicalEnergy (SPHBody &sph_body, Gravity &gravity_ptr) | |
Public Member Functions inherited from SPH::ParticleDynamicsReduce< Real, ReduceSum< Real > > | |
ParticleDynamicsReduce (SPHBody &sph_body) | |
Real | InitialReference () |
std::string | QuantityName () |
virtual Real | exec (Real dt=0.0) override |
virtual Real | parallel_exec (Real dt=0.0) override |
Public Member Functions inherited from SPH::ParticleDynamics< Real > | |
ParticleDynamics (SPHBody &sph_body) | |
SPHBody * | getSPHBody () |
Public Member Functions inherited from SPH::DataDelegateSimple< SPHBody, BaseParticles, BaseMaterial > | |
DataDelegateSimple (SPHBody &sph_body) | |
SPHBody * | getBody () |
BaseParticles * | getParticles () |
BaseMaterial * | getMaterial () |
Protected Member Functions | |
Real | ReduceFunction (size_t index_i, Real dt=0.0) override |
Protected Member Functions inherited from SPH::ParticleDynamicsReduce< Real, ReduceSum< Real > > | |
virtual void | SetupReduce () |
virtual Real | OutputResult (Real reduced_value) |
Protected Member Functions inherited from SPH::ParticleDynamics< Real > | |
void | setBodyUpdated () |
virtual void | setupDynamics (Real dt=0.0) |
Protected Attributes | |
StdLargeVec< Real > & | mass_ |
StdLargeVec< Vecd > & | vel_ |
StdLargeVec< Vecd > & | pos_ |
Gravity * | gravity_ |
Protected Attributes inherited from SPH::ParticleDynamicsReduce< Real, ReduceSum< Real > > | |
ReduceSum< Real > | reduce_operation_ |
std::string | quantity_name_ |
Real | initial_reference_ |
ReduceFunctor< Real > | functor_reduce_function_ |
Protected Attributes inherited from SPH::ParticleDynamics< Real > | |
SPHBody * | sph_body_ |
SPHAdaptation * | sph_adaptation_ |
BaseParticles * | base_particles_ |
Protected Attributes inherited from SPH::DataDelegateSimple< SPHBody, BaseParticles, BaseMaterial > | |
SPHBody * | body_ |
BaseParticles * | particles_ |
BaseMaterial * | material_ |
StdLargeVec< size_t > & | sorted_id_ |
StdLargeVec< size_t > & | unsorted_id_ |
Additional Inherited Members | |
Static Public Attributes inherited from SPH::GlobalStaticVariables | |
static Real | physical_time_ = 0.0 |
Compute the total mechanical (kinematic and potential) energy.