SPHinXsys
alpha version
|
Compute the summation of a particle variable in a body. More...
#include <general_dynamics.h>
Inherits SPH::ParticleDynamicsReduce< VariableType, ReduceSum< VariableType > >, and SPH::DataDelegateSimple< SPHBody, BaseParticles, BaseMaterial >.
Inherited by SPH::BodyMoment< Vecd >, and SPH::BodyMoment< VariableType >.
Public Member Functions | |
BodySummation (SPHBody &sph_body, const std::string &variable_name) | |
Public Member Functions inherited from SPH::ParticleDynamicsReduce< VariableType, ReduceSum< VariableType > > | |
ParticleDynamicsReduce (SPHBody &sph_body) | |
VariableType | InitialReference () |
std::string | QuantityName () |
virtual VariableType | exec (Real dt=0.0) override |
virtual VariableType | parallel_exec (Real dt=0.0) override |
Public Member Functions inherited from SPH::ParticleDynamics< VariableType > | |
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 | |
VariableType | ReduceFunction (size_t index_i, Real dt=0.0) override |
Protected Member Functions inherited from SPH::ParticleDynamicsReduce< VariableType, ReduceSum< VariableType > > | |
virtual void | SetupReduce () |
virtual VariableType | OutputResult (VariableType reduced_value) |
Protected Member Functions inherited from SPH::ParticleDynamics< VariableType > | |
void | setBodyUpdated () |
virtual void | setupDynamics (Real dt=0.0) |
Protected Attributes | |
StdLargeVec< VariableType > & | variable_ |
Protected Attributes inherited from SPH::ParticleDynamicsReduce< VariableType, ReduceSum< VariableType > > | |
ReduceSum< VariableType > | reduce_operation_ |
std::string | quantity_name_ |
VariableType | initial_reference_ |
ReduceFunctor< VariableType > | functor_reduce_function_ |
Protected Attributes inherited from SPH::ParticleDynamics< VariableType > | |
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 summation of a particle variable in a body.