GridSinglePhasePressureSolver3.hpp
Go to the documentation of this file.
142 std::shared_ptr<GridSinglePhasePressureSolver3>;
std::shared_ptr< FDMLinearSystemSolver3 > FDMLinearSystemSolver3Ptr
Shared pointer type for the FDMLinearSystemSolver3.
Definition: FDMLinearSystemSolver3.hpp:52
std::shared_ptr< GridBoundaryConditionSolver3 > GridBoundaryConditionSolver3Ptr
Shared pointer type for the GridBoundaryConditionSolver3.
Definition: GridBoundaryConditionSolver3.hpp:117
std::shared_ptr< GridSinglePhasePressureSolver3 > GridSinglePhasePressureSolver3Ptr
Shared pointer type for the GridSinglePhasePressureSolver3.
Definition: GridSinglePhasePressureSolver3.hpp:142
void SetLinearSystemSolver(const FDMLinearSystemSolver3Ptr &solver)
Sets the linear system solver.
3-D single-phase pressure solver.
Definition: GridSinglePhasePressureSolver3.hpp:35
std::shared_ptr< FDMMGSolver3 > FDMMGSolver3Ptr
Shared pointer type for the FDMMGSolver3.
Definition: FDMMGSolver3.hpp:55
const FDMVector3 & GetPressure() const
Returns the pressure field.
Definition: Matrix.hpp:27
GridSinglePhasePressureSolver3()
Default constructor.
Definition: pybind11Utils.hpp:20
Definition: Array-Impl.hpp:19
const FDMLinearSystemSolver3Ptr & GetLinearSystemSolver() const
Returns the linear system solver.
N-D face-centered (a.k.a MAC or staggered) grid.
Definition: FaceCenteredGrid.hpp:31
Abstract base class for 2-D grid-based pressure solver.
Definition: GridPressureSolver3.hpp:29
Compressed linear system (Ax=b) for 3-D finite differencing.
Definition: FDMLinearSystem3.hpp:62
~GridSinglePhasePressureSolver3() override=default
Default virtual destructor.
void Solve(const FaceCenteredGrid3 &input, double timeIntervalInSeconds, FaceCenteredGrid3 *output, const ScalarField3 &boundarySDF=ConstantScalarField3{ std::numeric_limits< double >::max() }, const VectorField3 &boundaryVelocity=ConstantVectorField3{ { 0, 0, 0 } }, const ScalarField3 &fluidSDF=ConstantScalarField3{ -std::numeric_limits< double >::max() }, bool useCompressed=false) override
Solves the pressure term and apply it to the velocity field.
GridSinglePhasePressureSolver3 & operator=(const GridSinglePhasePressureSolver3 &)=delete
Deleted copy assignment operator.
Multigrid-syle 3-D linear system.
Definition: FDMMGLinearSystem3.hpp:26
GridBoundaryConditionSolver3Ptr SuggestedBoundaryConditionSolver() const override
Returns the best boundary condition solver for this solver.
Linear system (Ax=b) for 3-D finite differencing.
Definition: FDMLinearSystem3.hpp:43