Jet  v1.3.3
Public Member Functions | Protected Member Functions | List of all members
jet::GridBlockedBoundaryConditionSolver2 Class Referencefinal

Blocked 2-D boundary condition solver for grids. More...

#include <jet/grid_blocked_boundary_condition_solver2.h>

Inheritance diagram for jet::GridBlockedBoundaryConditionSolver2:
jet::GridFractionalBoundaryConditionSolver2 jet::GridBoundaryConditionSolver2

Public Member Functions

 GridBlockedBoundaryConditionSolver2 ()
 Default constructor. More...
 
void constrainVelocity (FaceCenteredGrid2 *velocity, unsigned int extrapolationDepth=5) override
 
const Array2< char > & marker () const
 Returns the marker which is 1 if occupied by the collider. More...
 
- Public Member Functions inherited from jet::GridFractionalBoundaryConditionSolver2
 GridFractionalBoundaryConditionSolver2 ()
 Default constructor. More...
 
virtual ~GridFractionalBoundaryConditionSolver2 ()
 Default destructor. More...
 
void constrainVelocity (FaceCenteredGrid2 *velocity, unsigned int extrapolationDepth=5) override
 
ScalarField2Ptr colliderSdf () const override
 Returns the signed distance field of the collider. More...
 
VectorField2Ptr colliderVelocityField () const override
 Returns the velocity field of the collider. More...
 
- Public Member Functions inherited from jet::GridBoundaryConditionSolver2
 GridBoundaryConditionSolver2 ()
 Default constructor. More...
 
virtual ~GridBoundaryConditionSolver2 ()
 Default destructor. More...
 
const Collider2Ptrcollider () const
 Returns associated collider. More...
 
void updateCollider (const Collider2Ptr &newCollider, const Size2 &gridSize, const Vector2D &gridSpacing, const Vector2D &gridOrigin)
 Applies new collider and build the internals. More...
 
int closedDomainBoundaryFlag () const
 Returns the closed domain boundary flag. More...
 
void setClosedDomainBoundaryFlag (int flag)
 Sets the closed domain boundary flag. More...
 

Protected Member Functions

void onColliderUpdated (const Size2 &gridSize, const Vector2D &gridSpacing, const Vector2D &gridOrigin) override
 Invoked when a new collider is set. More...
 
- Protected Member Functions inherited from jet::GridFractionalBoundaryConditionSolver2
void onColliderUpdated (const Size2 &gridSize, const Vector2D &gridSpacing, const Vector2D &gridOrigin) override
 Invoked when a new collider is set. More...
 
- Protected Member Functions inherited from jet::GridBoundaryConditionSolver2
const Size2gridSize () const
 Returns the size of the velocity grid to be constrained. More...
 
const Vector2DgridSpacing () const
 Returns the spacing of the velocity grid to be constrained. More...
 
const Vector2DgridOrigin () const
 Returns the origin of the velocity grid to be constrained. More...
 

Detailed Description

Blocked 2-D boundary condition solver for grids.

This class constrains the velocity field by projecting the flow to the blocked representation of the collider. A collider is rasterized into voxels and each face of the collider voxels projects the velocity field onto its face. This implementation should pair up with GridSinglePhasePressureSolver3 since the pressure solver assumes blocked boundary representation as well.

Constructor & Destructor Documentation

◆ GridBlockedBoundaryConditionSolver2()

jet::GridBlockedBoundaryConditionSolver2::GridBlockedBoundaryConditionSolver2 ( )

Default constructor.

Member Function Documentation

◆ constrainVelocity()

void jet::GridBlockedBoundaryConditionSolver2::constrainVelocity ( FaceCenteredGrid2 velocity,
unsigned int  extrapolationDepth = 5 
)
overridevirtual

Constrains the velocity field to conform the collider boundary.

Parameters
velocityInput and output velocity grid.
extrapolationDepthNumber of inner-collider grid cells that velocity will get extrapolated.

Implements jet::GridBoundaryConditionSolver2.

◆ marker()

const Array2<char>& jet::GridBlockedBoundaryConditionSolver2::marker ( ) const

Returns the marker which is 1 if occupied by the collider.

◆ onColliderUpdated()

void jet::GridBlockedBoundaryConditionSolver2::onColliderUpdated ( const Size2 gridSize,
const Vector2D gridSpacing,
const Vector2D gridOrigin 
)
overrideprotectedvirtual

Invoked when a new collider is set.

Implements jet::GridBoundaryConditionSolver2.


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