GridBoundaryConditionSolver2.hpp
Go to the documentation of this file.
117 std::shared_ptr<GridBoundaryConditionSolver2>;
GridBoundaryConditionSolver2()=default
Default constructor.
Abstract base class for 2-D boundary condition solver for grids.
Definition: GridBoundaryConditionSolver2.hpp:27
std::shared_ptr< Collider2 > Collider2Ptr
Shared pointer type for the Collider2.
Definition: Collider.hpp:141
virtual void ConstrainVelocity(FaceCenteredGrid2 *velocity, unsigned int extrapolationDepth=5)=0
virtual ScalarField2Ptr GetColliderSDF() const =0
Returns the signed distance field of the collider.
std::shared_ptr< GridBoundaryConditionSolver2 > GridBoundaryConditionSolver2Ptr
Shared pointer type for the GridBoundaryConditionSolver2.
Definition: GridBoundaryConditionSolver2.hpp:117
GridBoundaryConditionSolver2 & operator=(const GridBoundaryConditionSolver2 &)=delete
Deleted copy assignment operator.
virtual ~GridBoundaryConditionSolver2()=default
Default virtual destructor.
std::shared_ptr< ScalarField2 > ScalarField2Ptr
Shared pointer for the ScalarField2 type.
Definition: ScalarField.hpp:67
const Vector2D & GetGridOrigin() const
Returns the origin of the velocity grid to be constrained.
void UpdateCollider(const Collider2Ptr &newCollider, const Vector2UZ &gridSize, const Vector2D &gridSpacing, const Vector2D &gridOrigin)
Applies new collider and build the internals.
Definition: Matrix.hpp:27
Definition: pybind11Utils.hpp:20
virtual VectorField2Ptr GetColliderVelocityField() const =0
Returns the velocity field of the collider.
N-D face-centered (a.k.a MAC or staggered) grid.
Definition: FaceCenteredGrid.hpp:31
std::shared_ptr< VectorField2 > VectorField2Ptr
Shared pointer for the VectorField2 type.
Definition: VectorField.hpp:87
const Collider2Ptr & GetCollider() const
Returns associated collider.
const Vector2D & GetGridSpacing() const
Returns the spacing of the velocity grid to be constrained.
virtual void OnColliderUpdated(const Vector2UZ &gridSize, const Vector2D &gridSpacing, const Vector2D &gridOrigin)=0
Invoked when a new collider is set.
const Vector2UZ & GetGridSize() const
Returns the size of the velocity grid to be constrained.
int GetClosedDomainBoundaryFlag() const
Returns the closed domain boundary flag.
void SetClosedDomainBoundaryFlag(int flag)
Sets the closed domain boundary flag.