32 #ifndef COMPLEX_BODY_H 33 #define COMPLEX_BODY_H 72 size_t last_branch_id_;
78 Branch *createANewBranch(
size_t parent_id)
80 return branches_ptr_keeper_.
createPtr<Branch>(parent_id,
this);
82 size_t BranchLocation(
size_t particle_idx);
83 Branch *LastBranch() {
return branches_[last_branch_id_]; };
86 size_t ContainerSize() {
return branches_.size(); };
126 #endif // COMPLEX_BODY_H template base class of linear structure only with topology information. Note that a edge is defined t...
Definition: base_geometry.h:146
StdVec< size_t > IndexVector
Definition: sph_data_containers.h:37
This is the base classes of body parts.
A body part with a collection of particles.
Definition: base_body_part.h:64
virtual void buildParticleConfiguration(ParticleConfiguration &particle_configuration) override
Definition: complex_body.cpp:23
Vecd end_direction_
Definition: complex_body.h:103
This is the base classes of SPH bodies. The real body is for that with cell linked list and the ficti...
StdLargeVec< Neighborhood > ParticleConfiguration
Definition: neighbor_relation.h:66
StdVec< Branch * > branches_
Definition: complex_body.h:70
The tree is composed of a root (the first branch) and other branch generated sequentially.
Definition: complex_body.h:61
Each branch (except the root) has a parent and several children, and geometric information. It is a realized edge and has multi inner particles. The first is the last particle from the parent or root, and the last is the first particle of all its child branches. Many connected branches compose a tree.
Definition: complex_body.h:96
IndexVector branch_locations_
Definition: complex_body.h:71
Abstract class as interface for all secondary structures. Currently, it provides interface on buildin...
Definition: complex_body.h:47
Shape is the base class for all geometries.
A wrapper to provide an ownership for a vector of base class pointers which point to derived objects...
Definition: ownership.h:127
IndexVector inner_particles_
Definition: complex_body.h:109
A body part with the collection of particles as the terminates of the tree.
Definition: complex_body.h:117
bool is_terminated_
Definition: complex_body.h:110
SPHBody is a base body with basic data and functions. Its derived class can be a real fluid body...
Definition: base_body.h:61
The SPH system managing objects in the system level.
Definition: sph_system.h:46
Derived body with inner particle configuration or inner interactions. After construction, the particle and material must be specified.
Definition: base_body.h:182
Branch(TreeBody *tree)
Definition: complex_body.cpp:226
DerivedType * createPtr(ConstructorArgs &&...args)
Definition: ownership.h:133
Definition: solid_body_supplementary.cpp:9