SPHinXsys
alpha version
|
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. More...
#include <complex_body.h>
Inherits SPH::Edge< size_t, IndexVector >.
Public Member Functions | |
Branch (TreeBody *tree) | |
Branch (size_t parent_id, TreeBody *tree) | |
Public Member Functions inherited from SPH::Edge< size_t, IndexVector > | |
Edge (EdgeStructureType *structure) | |
Edge (size_t in_edge, EdgeStructureType *structure) | |
Public Attributes | |
Vecd | end_direction_ |
IndexVector | inner_particles_ |
bool | is_terminated_ |
Public Attributes inherited from SPH::Edge< size_t, IndexVector > | |
size_t | id_ |
size_t | in_edge_ |
IndexVector | out_edge_ |
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.
|
explicit |
construct the root branch
construct an branch connecting with its parent
Vecd SPH::TreeBody::Branch::end_direction_ |
the direction pointing to the last particle
IndexVector SPH::TreeBody::Branch::inner_particles_ |
The indexes of particle within this branch. The first is the last particle from the parent or root, and the last is the first of all its child branches.
bool SPH::TreeBody::Branch::is_terminated_ |
whether is an terminate branch or not