Jet
v1.3.3
|
Fractional 3-D boundary condition solver for grids. More...
#include <jet/grid_fractional_boundary_condition_solver3.h>
Public Member Functions | |
GridFractionalBoundaryConditionSolver3 () | |
Default constructor. More... | |
virtual | ~GridFractionalBoundaryConditionSolver3 () |
Default destructor. More... | |
void | constrainVelocity (FaceCenteredGrid3 *velocity, unsigned int extrapolationDepth=5) override |
ScalarField3Ptr | colliderSdf () const override |
Returns the signed distance field of the collider. More... | |
VectorField3Ptr | colliderVelocityField () const override |
Returns the velocity field of the collider. More... | |
![]() | |
GridBoundaryConditionSolver3 () | |
Default constructor. More... | |
virtual | ~GridBoundaryConditionSolver3 () |
Default destructor. More... | |
const Collider3Ptr & | collider () const |
Returns associated collider. More... | |
void | updateCollider (const Collider3Ptr &newCollider, const Size3 &gridSize, const Vector3D &gridSpacing, const Vector3D &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 Size3 &gridSize, const Vector3D &gridSpacing, const Vector3D &gridOrigin) override |
Invoked when a new collider is set. More... | |
![]() | |
const Size3 & | gridSize () const |
Returns the size of the velocity grid to be constrained. More... | |
const Vector3D & | gridSpacing () const |
Returns the spacing of the velocity grid to be constrained. More... | |
const Vector3D & | gridOrigin () const |
Returns the origin of the velocity grid to be constrained. More... | |
Fractional 3-D boundary condition solver for grids.
This class constrains the velocity field by projecting the flow to the signed-distance field representation of the collider. This implementation should pair up with GridFractionalSinglePhasePressureSolver3 to provide sub-grid resolutional velocity projection.
jet::GridFractionalBoundaryConditionSolver3::GridFractionalBoundaryConditionSolver3 | ( | ) |
Default constructor.
|
virtual |
Default destructor.
|
overridevirtual |
Returns the signed distance field of the collider.
Implements jet::GridBoundaryConditionSolver3.
|
overridevirtual |
Returns the velocity field of the collider.
Implements jet::GridBoundaryConditionSolver3.
|
overridevirtual |
Constrains the velocity field to conform the collider boundary.
velocity | Input and output velocity grid. |
extrapolationDepth | Number of inner-collider grid cells that velocity will get extrapolated. |
Implements jet::GridBoundaryConditionSolver3.
|
overrideprotectedvirtual |
Invoked when a new collider is set.
Implements jet::GridBoundaryConditionSolver3.