GridFractionalBoundaryConditionSolver2.h
Go to the documentation of this file.
65 using GridFractionalBoundaryConditionSolver2Ptr = std::shared_ptr<GridFractionalBoundaryConditionSolver2>;
Abstract base class for 2-D boundary condition solver for grids.
Definition: GridBoundaryConditionSolver2.h:26
virtual ~GridFractionalBoundaryConditionSolver2()
Default destructor.
std::shared_ptr< ScalarField2 > ScalarField2Ptr
Shared pointer for the ScalarField2 type.
Definition: ScalarField2.h:44
2-D face-centered (a.k.a MAC or staggered) grid.
Definition: FaceCenteredGrid2.h:25
std::shared_ptr< GridFractionalBoundaryConditionSolver2 > GridFractionalBoundaryConditionSolver2Ptr
Shared pointer type for the GridFractionalBoundaryConditionSolver2.
Definition: GridFractionalBoundaryConditionSolver2.h:65
Fractional 2-D boundary condition solver for grids.
Definition: GridFractionalBoundaryConditionSolver2.h:26
Definition: pybind11Utils.h:24
void ConstrainVelocity(FaceCenteredGrid2 *velocity, unsigned int extrapolationDepth=5) override
std::shared_ptr< VectorField2 > VectorField2Ptr
Shared pointer for the VectorField2 type.
Definition: VectorField2.h:44
ScalarField2Ptr GetColliderSDF() const override
Returns the signed distance field of the collider.
std::shared_ptr< CellCenteredScalarGrid2 > CellCenteredScalarGrid2Ptr
Shared pointer for the CellCenteredScalarGrid2 type.
Definition: CellCenteredScalarGrid2.h:83
void OnColliderUpdated(const Size2 &gridSize, const Vector2D &gridSpacing, const Vector2D &gridOrigin) override
Invoked when a new collider is set.
std::shared_ptr< CustomVectorField2 > CustomVectorField2Ptr
Shared pointer type for the CustomVectorField2.
Definition: CustomVectorField2.h:76
VectorField2Ptr GetColliderVelocityField() const override
Returns the velocity field of the collider.
GridFractionalBoundaryConditionSolver2()
Default constructor.