SPH
Public Member Functions | List of all members
WindTunnel Class Reference

Boundary conditions creating particles with given velocity at the boundary of the domain. More...

#include <Boundary.h>

Inheritance diagram for WindTunnel:
FrozenParticles IBoundaryCondition Polymorphic

Public Member Functions

 WindTunnel (SharedPtr< IDomain > domain, const Float radius)
 
virtual void initialize (Storage &UNUSED(storage)) override
 
virtual void finalize (Storage &storage) override
 Applies the boundary conditions after the derivatives are computed. More...
 
- Public Member Functions inherited from FrozenParticles
 FrozenParticles ()
 Constructs boundary conditions with no particles frozen. More...
 
 ~FrozenParticles ()
 
 FrozenParticles (SharedPtr< IDomain > domain, const Float radius)
 Constructs boundary conditions with frozen particles near boundary. More...
 
void freeze (const Size flag)
 Adds body ID particles of which shall be frozen by boundary conditions. More...
 
void thaw (const Size flag)
 Remove a body from the list of frozen bodies. More...
 
- Public Member Functions inherited from IBoundaryCondition
virtual void initialize (Storage &storage)=0
 Applies the boundary conditions before the derivatives are computed. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Additional Inherited Members

- Protected Attributes inherited from FrozenParticles
SharedPtr< IDomaindomain
 
Float radius
 
std::set< Sizefrozen
 
Array< Floatdistances
 
Array< Sizeidxs
 

Detailed Description

Boundary conditions creating particles with given velocity at the boundary of the domain.

Outgoing particles are removed at the other side of the boundary, particles inside the domain are kept in place using either ghost particles or by freezing them. This is fine-tuned for simulations of a meteorite passing through athmosphere.

Definition at line 203 of file Boundary.h.

Constructor & Destructor Documentation

◆ WindTunnel()

WindTunnel::WindTunnel ( SharedPtr< IDomain domain,
const Float  radius 
)

Definition at line 251 of file Boundary.cpp.

Member Function Documentation

◆ finalize()

void WindTunnel::finalize ( Storage storage)
overridevirtual

Applies the boundary conditions after the derivatives are computed.

Called every time step after equations are evaluated (finalized).

Reimplemented from FrozenParticles.

Definition at line 254 of file Boundary.cpp.

◆ initialize()

virtual void WindTunnel::initialize ( Storage UNUSEDstorage)
inlineoverridevirtual

Reimplemented from FrozenParticles.

Definition at line 207 of file Boundary.h.


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