SPHinXsys  alpha version
Public Member Functions | Public Attributes | List of all members
SPH::TreeBody::Branch Class Reference

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_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Branch() [1/2]

SPH::TreeBody::Branch::Branch ( TreeBody tree)
explicit

construct the root branch

◆ Branch() [2/2]

SPH::TreeBody::Branch::Branch ( size_t  parent_id,
TreeBody tree 
)

construct an branch connecting with its parent

Member Data Documentation

◆ end_direction_

Vecd SPH::TreeBody::Branch::end_direction_

the direction pointing to the last particle

◆ inner_particles_

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.

◆ is_terminated_

bool SPH::TreeBody::Branch::is_terminated_

whether is an terminate branch or not


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