SPHinXsys  alpha version
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SPH::fluid_dynamics::FlowRelaxationBuffer Class Referenceabstract

Flow buffer in which the particles relaxes to a given target velocity profile. This technique will be used for applying several boundary conditions, such as freestream, inflow, damping boundary conditions. More...

#include <fluid_boundary.h>

Inherits SPH::PartDynamicsByCell, and SPH::DataDelegateSimple< BodyType, ParticlesType, MaterialType >.

Inherited by SPH::fluid_dynamics::InflowBoundaryCondition.

Public Member Functions

 FlowRelaxationBuffer (FluidBody &fluid_body, BodyPartByCell &body_part)
 
- Public Member Functions inherited from SPH::PartDynamicsByCell
 PartDynamicsByCell (SPHBody &sph_body, BodyPartByCell &body_part)
 
virtual void exec (Real dt=0.0) override
 
virtual void parallel_exec (Real dt=0.0) override
 
- 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 Vecd getTargetVelocity (Vecd &position, Vecd &velocity)=0
 
virtual void Update (size_t index_i, Real dt=0.0) override
 
- Protected Member Functions inherited from SPH::ParticleDynamics< void >
void setBodyUpdated ()
 
virtual void setupDynamics (Real dt=0.0)
 

Protected Attributes

StdLargeVec< Vecd > & pos_
 
StdLargeVec< Vecd > & vel_
 
Real relaxation_rate_
 
- Protected Attributes inherited from SPH::PartDynamicsByCell
CellListsbody_part_cells_
 
ParticleFunctor functor_update_
 
- 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

Flow buffer in which the particles relaxes to a given target velocity profile. This technique will be used for applying several boundary conditions, such as freestream, inflow, damping boundary conditions.

Member Function Documentation

◆ getTargetVelocity()

virtual Vecd SPH::fluid_dynamics::FlowRelaxationBuffer::getTargetVelocity ( Vecd &  position,
Vecd &  velocity 
)
protectedpure virtual

inflow profile to be defined in applications, argument parameters and return value are in frame (local) coordinate

Member Data Documentation

◆ relaxation_rate_

Real SPH::fluid_dynamics::FlowRelaxationBuffer::relaxation_rate_
protected

default value is 0.1 suggests reaching target inflow velocity in about 10 time steps


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