GridBoundaryConditionSolver3.h
Go to the documentation of this file.
std::shared_ptr< Collider3 > Collider3Ptr
Shared pointer type for the Collider3.
Definition: Collider3.h:112
const Vector3D & GetGridOrigin() const
Returns the origin of the velocity grid to be constrained.
virtual VectorField3Ptr GetColliderVelocityField() const =0
Returns the velocity field of the collider.
virtual ~GridBoundaryConditionSolver3()
Default destructor.
const Vector3D & GetGridSpacing() const
Returns the spacing of the velocity grid to be constrained.
std::shared_ptr< ScalarField3 > ScalarField3Ptr
Shared pointer for the ScalarField3 type.
Definition: ScalarField3.h:44
Abstract base class for 3-D boundary condition solver for grids.
Definition: GridBoundaryConditionSolver3.h:26
std::shared_ptr< VectorField3 > VectorField3Ptr
Shared pointer for the VectorField3 type.
Definition: VectorField3.h:44
std::shared_ptr< GridBoundaryConditionSolver3 > GridBoundaryConditionSolver3Ptr
Shared pointer type for the GridBoundaryConditionSolver3.
Definition: GridBoundaryConditionSolver3.h:104
3-D face-centered (a.k.a MAC or staggered) grid.
Definition: FaceCenteredGrid3.h:25
void SetClosedDomainBoundaryFlag(int flag)
Sets the closed domain boundary flag.
const Collider3Ptr & GetCollider() const
Returns associated collider.
GridBoundaryConditionSolver3()
Default constructor.
Definition: pybind11Utils.h:24
virtual void OnColliderUpdated(const Size3 &gridSize, const Vector3D &gridSpacing, const Vector3D &gridOrigin)=0
Invoked when a new collider is set.
void UpdateCollider(const Collider3Ptr &newCollider, const Size3 &gridSize, const Vector3D &gridSpacing, const Vector3D &gridOrigin)
Applies new collider and build the internals.
int GetClosedDomainBoundaryFlag() const
Returns the closed domain boundary flag.
virtual ScalarField3Ptr GetColliderSDF() const =0
Returns the signed distance field of the collider.
const Size3 & GetGridSize() const
Returns the size of the velocity grid to be constrained.
virtual void ConstrainVelocity(FaceCenteredGrid3 *velocity, unsigned int extrapolationDepth=5)=0