Go to the documentation of this file.
7 #ifndef INCLUDE_JET_GRID_PRESSURE_SOLVER2_H_
8 #define INCLUDE_JET_GRID_PRESSURE_SOLVER2_H_
64 bool useCompressed =
false) = 0;
82 #endif // INCLUDE_JET_GRID_PRESSURE_SOLVER2_H_
virtual ~GridPressureSolver2()
Default destructor.
Abstract base class for 2-D scalar field.
Definition: scalar_field2.h:18
2-D face-centered (a.k.a MAC or staggered) grid.
Definition: face_centered_grid2.h:26
virtual void solve(const FaceCenteredGrid2 &input, double timeIntervalInSeconds, FaceCenteredGrid2 *output, const ScalarField2 &boundarySdf=ConstantScalarField2(kMaxD), const VectorField2 &boundaryVelocity=ConstantVectorField2({0, 0}), const ScalarField2 &fluidSdf=ConstantScalarField2(-kMaxD), bool useCompressed=false)=0
Solves the pressure term and apply it to the velocity field.
Definition: advection_solver2.h:18
2-D constant scalar field.
Definition: constant_scalar_field2.h:15
Abstract base class for 2-D grid-based pressure solver.
Definition: grid_pressure_solver2.h:29
GridPressureSolver2()
Default constructor.
constexpr double kMaxD
Max double.
Definition: constants.h:88
virtual GridBoundaryConditionSolver2Ptr suggestedBoundaryConditionSolver() const =0
Returns the best boundary condition solver for this solver.
std::shared_ptr< GridPressureSolver2 > GridPressureSolver2Ptr
Shared pointer type for the GridPressureSolver2.
Definition: grid_pressure_solver2.h:78
std::shared_ptr< GridBoundaryConditionSolver2 > GridBoundaryConditionSolver2Ptr
Shared pointer type for the GridBoundaryConditionSolver2.
Definition: grid_boundary_condition_solver2.h:104
Abstract base class for 2-D vector field.
Definition: vector_field2.h:18
2-D constant vector field.
Definition: constant_vector_field2.h:16