SPHinXsys  alpha version
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SPH::MirrorBoundaryConditionInAxisDirection::CreatingGhostParticles Class Reference

ghost particle created according to its corresponding real particle More...

#include <general_bounding.h>

Inherits SPH::MirrorBoundaryConditionInAxisDirection::MirrorBounding.

Public Member Functions

 CreatingGhostParticles (IndexVector &ghost_particles, CellLists &bound_cells, RealBody &real_body, int axis_direction, bool positive)
 
virtual void parallel_exec (Real dt=0.0) override
 
- Public Member Functions inherited from SPH::MirrorBoundaryConditionInAxisDirection::MirrorBounding
 MirrorBounding (CellLists &bound_cells, RealBody &real_body, int axis_direction, bool positive)
 
virtual void exec (Real dt=0.0) override
 
- Public Member Functions inherited from SPH::BoundingInAxisDirection
 BoundingInAxisDirection (RealBody &real_body, int axis_direction)
 
- Public Member Functions inherited from SPH::ParticleDynamics< void >
 ParticleDynamics (SPHBody &sph_body)
 
SPHBodygetSPHBody ()
 
- Public Member Functions inherited from SPH::DataDelegateSimple< BodyType, ParticlesType, MaterialType >
 DataDelegateSimple (SPHBody &sph_body)
 
BodyType * getBody ()
 
ParticlesType * getParticles ()
 
MaterialType * getMaterial ()
 

Protected Member Functions

virtual void setupDynamics (Real dt=0.0) override
 
virtual void checkLowerBound (size_t index_i, Real dt=0.0) override
 
virtual void checkUpperBound (size_t index_i, Real dt=0.0) override
 
- Protected Member Functions inherited from SPH::MirrorBoundaryConditionInAxisDirection::MirrorBounding
void mirrorInAxisDirection (size_t particle_index_i, Vecd body_bound, int axis_direction)
 
- Protected Member Functions inherited from SPH::ParticleDynamics< void >
void setBodyUpdated ()
 

Protected Attributes

IndexVectorghost_particles_
 
- Protected Attributes inherited from SPH::MirrorBoundaryConditionInAxisDirection::MirrorBounding
CellListsbound_cells_
 
ParticleFunctor checking_bound_
 
StdLargeVec< Vecd > & vel_
 
- Protected Attributes inherited from SPH::BoundingInAxisDirection
const int axis_
 
BoundingBox body_domain_bounds_
 
StdLargeVec< Vecd > & pos_
 
BaseCellLinkedListcell_linked_list_
 
Real cut_off_radius_max_
 
- Protected Attributes inherited from SPH::ParticleDynamics< void >
SPHBodysph_body_
 
SPHAdaptationsph_adaptation_
 
BaseParticlesbase_particles_
 
- Protected Attributes inherited from SPH::DataDelegateSimple< BodyType, ParticlesType, MaterialType >
BodyType * body_
 
ParticlesType * particles_
 
MaterialType * material_
 
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

ghost particle created according to its corresponding real particle

Member Function Documentation

◆ checkLowerBound()

void SPH::MirrorBoundaryConditionInAxisDirection::CreatingGhostParticles::checkLowerBound ( size_t  index_i,
Real  dt = 0.0 
)
overrideprotectedvirtual

mirror boundary condition
insert ghost particle to cell linked list

Reimplemented from SPH::MirrorBoundaryConditionInAxisDirection::MirrorBounding.

◆ checkUpperBound()

void SPH::MirrorBoundaryConditionInAxisDirection::CreatingGhostParticles::checkUpperBound ( size_t  index_i,
Real  dt = 0.0 
)
overrideprotectedvirtual

mirror boundary condition
insert ghost particle to cell linked list

Reimplemented from SPH::MirrorBoundaryConditionInAxisDirection::MirrorBounding.

◆ parallel_exec()

virtual void SPH::MirrorBoundaryConditionInAxisDirection::CreatingGhostParticles::parallel_exec ( Real  dt = 0.0)
inlineoverridevirtual

This class is only implemented in sequential due to memory conflicts.

Reimplemented from SPH::MirrorBoundaryConditionInAxisDirection::MirrorBounding.

◆ setupDynamics()

virtual void SPH::MirrorBoundaryConditionInAxisDirection::CreatingGhostParticles::setupDynamics ( Real  dt = 0.0)
inlineoverrideprotectedvirtual

the function for set global parameters for the particle dynamics

Reimplemented from SPH::ParticleDynamics< void >.


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