SPHinXsys  alpha version
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SPH::BodySummation< VariableType > Class Template Reference

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)
 
SPHBodygetSPHBody ()
 
- Public Member Functions inherited from SPH::DataDelegateSimple< SPHBody, BaseParticles, BaseMaterial >
 DataDelegateSimple (SPHBody &sph_body)
 
SPHBodygetBody ()
 
BaseParticlesgetParticles ()
 
BaseMaterialgetMaterial ()
 

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< VariableTypereduce_operation_
 
std::string quantity_name_
 
VariableType initial_reference_
 
ReduceFunctor< VariableTypefunctor_reduce_function_
 
- Protected Attributes inherited from SPH::ParticleDynamics< VariableType >
SPHBodysph_body_
 
SPHAdaptationsph_adaptation_
 
BaseParticlesbase_particles_
 
- Protected Attributes inherited from SPH::DataDelegateSimple< SPHBody, BaseParticles, BaseMaterial >
SPHBodybody_
 
BaseParticlesparticles_
 
BaseMaterialmaterial_
 
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
 

Detailed Description

template<typename VariableType>
class SPH::BodySummation< VariableType >

Compute the summation of a particle variable in a body.


The documentation for this class was generated from the following file: