GridPressureSolver2.hpp
Go to the documentation of this file.
virtual ~GridPressureSolver2()=default
Default virtual destructor.
GridPressureSolver2()=default
Default constructor.
virtual void Solve(const FaceCenteredGrid2 &input, double timeIntervalInSeconds, FaceCenteredGrid2 *output, const ScalarField2 &boundarySDF=ConstantScalarField2{ std::numeric_limits< double >::max() }, const VectorField2 &boundaryVelocity=ConstantVectorField2{ { 0, 0 } }, const ScalarField2 &fluidSDF=ConstantScalarField2{ -std::numeric_limits< double >::max() }, bool useCompressed=false)=0
Solves the pressure term and apply it to the velocity field.
Abstract base class for 2-D grid-based pressure solver.
Definition: GridPressureSolver2.hpp:29
std::shared_ptr< GridBoundaryConditionSolver2 > GridBoundaryConditionSolver2Ptr
Shared pointer type for the GridBoundaryConditionSolver2.
Definition: GridBoundaryConditionSolver2.hpp:117
Definition: pybind11Utils.hpp:20
N-D face-centered (a.k.a MAC or staggered) grid.
Definition: FaceCenteredGrid.hpp:31
GridPressureSolver2 & operator=(const GridPressureSolver2 &)=delete
Deleted copy assignment operator.
std::shared_ptr< GridPressureSolver2 > GridPressureSolver2Ptr
Shared pointer type for the GridPressureSolver2.
Definition: GridPressureSolver2.hpp:95
virtual GridBoundaryConditionSolver2Ptr SuggestedBoundaryConditionSolver() const =0
Returns the best boundary condition solver for this solver.