Loading...
Searching...
No Matches
GridPressureSolver2.hpp
Go to the documentation of this file.
N-D face-centered (a.k.a MAC or staggered) grid.
Definition FaceCenteredGrid.hpp:32
Abstract base class for 2-D grid-based pressure solver.
Definition GridPressureSolver2.hpp:30
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.
GridPressureSolver2()=default
Default constructor.
GridPressureSolver2(GridPressureSolver2 &&) noexcept=delete
Deleted move constructor.
virtual GridBoundaryConditionSolver2Ptr SuggestedBoundaryConditionSolver() const =0
Returns the best boundary condition solver for this solver.
GridPressureSolver2(const GridPressureSolver2 &)=delete
Deleted copy constructor.
Definition Matrix.hpp:30
Definition pybind11Utils.hpp:21
ScalarField< 2 > ScalarField2
2-D ScalarField type.
Definition ScalarField.hpp:61
ConstantScalarField< 2 > ConstantScalarField2
2-D ConstantScalarField type.
Definition ConstantScalarField.hpp:43
std::shared_ptr< GridPressureSolver2 > GridPressureSolver2Ptr
Shared pointer type for the GridPressureSolver2.
Definition GridPressureSolver2.hpp:95
std::shared_ptr< GridBoundaryConditionSolver2 > GridBoundaryConditionSolver2Ptr
Shared pointer type for the GridBoundaryConditionSolver2.
Definition GridBoundaryConditionSolver2.hpp:117
1.9.8