GridBoundaryConditionSolver3.hpp
Go to the documentation of this file.
117 std::shared_ptr<GridBoundaryConditionSolver3>;
std::shared_ptr< Collider3 > Collider3Ptr
Shared pointer type for the Collider3.
Definition: Collider.hpp:144
virtual void OnColliderUpdated(const Vector3UZ &gridSize, const Vector3D &gridSpacing, const Vector3D &gridOrigin)=0
Invoked when a new collider is set.
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.
const Vector3D & GetGridSpacing() const
Returns the spacing of the velocity grid to be constrained.
const Vector3UZ & GetGridSize() const
Returns the size of the velocity grid to be constrained.
std::shared_ptr< ScalarField3 > ScalarField3Ptr
Shared pointer for the ScalarField3 type.
Definition: ScalarField.hpp:70
void UpdateCollider(const Collider3Ptr &newCollider, const Vector3UZ &gridSize, const Vector3D &gridSpacing, const Vector3D &gridOrigin)
Applies new collider and build the internals.
Abstract base class for 3-D boundary condition solver for grids.
Definition: GridBoundaryConditionSolver3.hpp:27
std::shared_ptr< VectorField3 > VectorField3Ptr
Shared pointer for the VectorField3 type.
Definition: VectorField.hpp:90
GridBoundaryConditionSolver3()=default
Default constructor.
std::shared_ptr< GridBoundaryConditionSolver3 > GridBoundaryConditionSolver3Ptr
Shared pointer type for the GridBoundaryConditionSolver3.
Definition: GridBoundaryConditionSolver3.hpp:117
void SetClosedDomainBoundaryFlag(int flag)
Sets the closed domain boundary flag.
const Collider3Ptr & GetCollider() const
Returns associated collider.
Definition: Matrix.hpp:27
GridBoundaryConditionSolver3 & operator=(const GridBoundaryConditionSolver3 &)=delete
Deleted copy assignment operator.
Definition: pybind11Utils.hpp:20
virtual ~GridBoundaryConditionSolver3()=default
Default virtual destructor.
N-D face-centered (a.k.a MAC or staggered) grid.
Definition: FaceCenteredGrid.hpp:31
int GetClosedDomainBoundaryFlag() const
Returns the closed domain boundary flag.
virtual ScalarField3Ptr GetColliderSDF() const =0
Returns the signed distance field of the collider.
virtual void ConstrainVelocity(FaceCenteredGrid3 *velocity, unsigned int extrapolationDepth=5)=0