SPHinXsys
alpha version
|
Derived body with inner particle configuration or inner interactions. After construction, the particle and material must be specified. More...
#include <base_body.h>
Inherits SPH::SPHBody.
Inherited by SPH::EulerianFluidBody, SPH::FluidBody, SPH::SolidBody, and SPH::TreeBody.
Public Member Functions | |
RealBody (SPHSystem &sph_system, SharedPtr< Shape > shape_ptr) | |
void | setUseSplitCellLists () |
bool | getUseSplitCellLists () |
SplitCellLists & | getSplitCellLists () |
virtual void | assignBaseParticles (BaseParticles *base_particles) override |
virtual void | sortParticleWithCellLinkedList () |
virtual void | updateCellLinkedList () |
template<class AdaptationType , typename... ConstructorArgs> | |
void | defineAdaptation (ConstructorArgs &&...args) |
Public Member Functions inherited from SPH::SPHBody | |
SPHBody (SPHSystem &sph_system, SharedPtr< Shape > shape_ptr) | |
std::string | getBodyName () |
SPHSystem & | getSPHSystem () |
Real | getSPHBodyResolutionRef () |
void | setNewlyUpdated () |
void | setNotNewlyUpdated () |
bool | checkNewlyUpdated () |
void | setBodyDomainBounds (const BoundingBox &body_domain_bounds) |
BoundingBox | getBodyDomainBounds () |
BoundingBox | getSPHSystemBounds () |
template<typename... ConstructorArgs> | |
LevelSetShape * | defineComponentLevelSetShape (const std::string &shape_name, ConstructorArgs &&...args) |
template<typename... ConstructorArgs> | |
LevelSetShape * | defineBodyLevelSetShape (ConstructorArgs &&...args) |
template<class ParticleType = BaseParticles, class MaterialType = BaseMaterial> | |
void | defineParticlesWithMaterial (MaterialType *material) |
template<class ParticleType = BaseParticles, class MaterialType = BaseMaterial, typename... ConstructorArgs> | |
void | defineParticlesAndMaterial (ConstructorArgs &&...args) |
template<class ParticleGeneratorType , typename... ConstructorArgs> | |
void | generateParticles (ConstructorArgs &&...args) |
void | allocateConfigurationMemoriesForBufferParticles () |
template<typename VariableType > | |
void | addBodyStateForRecording (const std::string &variable_name) |
template<class DerivedVariableMethod > | |
void | addDerivedBodyStateForRecording () |
virtual void | writeParticlesToVtuFile (std::ostream &output_file) |
virtual void | writeParticlesToVtpFile (std::ofstream &output_file) |
virtual void | writeParticlesToPltFile (std::ofstream &output_file) |
virtual void | writeSurfaceParticlesToVtuFile (std::ofstream &output_file, BodySurface &surface_particles) |
virtual void | writeParticlesToXmlForRestart (std::string &filefullpath) |
virtual void | readParticlesFromXmlForRestart (std::string &filefullpath) |
virtual void | writeToXmlForReloadParticle (std::string &filefullpath) |
virtual void | readFromXmlForReloadParticle (std::string &filefullpath) |
virtual SPHBody * | ThisObjectPtr () |
Public Attributes | |
ParticleSorting | particle_sorting_ |
BaseCellLinkedList * | cell_linked_list_ |
Public Attributes inherited from SPH::SPHBody | |
Shape * | body_shape_ |
SPHAdaptation * | sph_adaptation_ |
BaseMaterial * | base_material_ |
BaseParticles * | base_particles_ |
StdVec< SPHBodyRelation * > | body_relations_ |
Additional Inherited Members | |
Protected Attributes inherited from SPH::SPHBody | |
UniquePtrKeeper< SPHAdaptation > | sph_adaptation_ptr_keeper_ |
SPHSystem & | sph_system_ |
std::string | body_name_ |
bool | newly_updated_ |
BoundingBox | body_domain_bounds_ |
bool | is_domain_bounds_determined_ |
Derived body with inner particle configuration or inner interactions. After construction, the particle and material must be specified.
|
overridevirtual |
This will be called in BaseParticle constructor and is important because particles are not defined in FluidBody constructor.
Reimplemented from SPH::SPHBody.
BaseCellLinkedList* SPH::RealBody::cell_linked_list_ |
Cell linked mesh of this body.