Jet
v1.3.3
|
Blocked 3-D boundary condition solver for grids. More...
#include <jet/grid_blocked_boundary_condition_solver3.h>
Public Member Functions | |
GridBlockedBoundaryConditionSolver3 () | |
Default constructor. More... | |
void | constrainVelocity (FaceCenteredGrid3 *velocity, unsigned int extrapolationDepth=5) override |
const Array3< char > & | marker () const |
Returns the marker which is 1 if occupied by the collider. More... | |
![]() | |
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... | |
![]() | |
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... | |
Blocked 3-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.
jet::GridBlockedBoundaryConditionSolver3::GridBlockedBoundaryConditionSolver3 | ( | ) |
Default constructor.
|
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.
const Array3<char>& jet::GridBlockedBoundaryConditionSolver3::marker | ( | ) | const |
Returns the marker which is 1 if occupied by the collider.
|
overrideprotectedvirtual |
Invoked when a new collider is set.
Implements jet::GridBoundaryConditionSolver3.