GridBackwardEulerDiffusionSolver2.h
Go to the documentation of this file.
56 const ScalarField2& fluidSDF = ConstantScalarField2(-std::numeric_limits<double>::max())) override;
74 const ScalarField2& fluidSDF = ConstantScalarField2(-std::numeric_limits<double>::max())) override;
92 const ScalarField2& fluidSDF = ConstantScalarField2(-std::numeric_limits<double>::max())) override;
124 using GridBackwardEulerDiffusionSolver2Ptr = std::shared_ptr<GridBackwardEulerDiffusionSolver2>;
2-D read-only array accessor class.
Definition: ArrayAccessor2.h:261
std::shared_ptr< FDMLinearSystemSolver2 > FDMLinearSystemSolver2Ptr
Shared pointer type for the FDMLinearSystemSolver2.
Definition: FDMLinearSystemSolver2.h:33
Linear system (Ax=b) for 2-D finite differencing.
Definition: FDMLinearSystem2.h:39
BoundaryType
Definition: GridBackwardEulerDiffusionSolver2.h:31
Abstract base class for 2-D collocated vector grid structure.
Definition: CollocatedVectorGrid2.h:19
GridBackwardEulerDiffusionSolver2(BoundaryType boundaryType=BoundaryType::Neumann)
Constructs the solver with given boundary type.
2-D face-centered (a.k.a MAC or staggered) grid.
Definition: FaceCenteredGrid2.h:25
Definition: pybind11Utils.h:24
2-D grid-based backward Euler diffusion solver.
Definition: GridBackwardEulerDiffusionSolver2.h:28
void SetLinearSystemSolver(const FDMLinearSystemSolver2Ptr &solver)
Sets the linear system solver for this diffusion solver.
std::shared_ptr< GridBackwardEulerDiffusionSolver2 > GridBackwardEulerDiffusionSolver2Ptr
Shared pointer type for the GridBackwardEulerDiffusionSolver2.
Definition: GridBackwardEulerDiffusionSolver2.h:124
void Solve(const ScalarGrid2 &source, double diffusionCoefficient, double timeIntervalInSeconds, ScalarGrid2 *dest, const ScalarField2 &boundarySDF=ConstantScalarField2(std::numeric_limits< double >::max()), const ScalarField2 &fluidSDF=ConstantScalarField2(-std::numeric_limits< double >::max())) override
Abstract base class for 2-D scalar grid structure.
Definition: ScalarGrid2.h:21
Abstract base class for 2-D grid-based diffusion equation solver.
Definition: GridDiffusionSolver2.h:28