|
| GridBackwardEulerDiffusionSolver2 (BoundaryType boundaryType=BoundaryType::Neumann) |
| Constructs the solver with given boundary type. More...
|
|
| GridBackwardEulerDiffusionSolver2 (const GridBackwardEulerDiffusionSolver2 &)=delete |
| Deleted copy constructor. More...
|
|
| GridBackwardEulerDiffusionSolver2 (GridBackwardEulerDiffusionSolver2 &&) noexcept=delete |
| Deleted move constructor. More...
|
|
| ~GridBackwardEulerDiffusionSolver2 () override=default |
| Default virtual destructor. More...
|
|
GridBackwardEulerDiffusionSolver2 & | operator= (const GridBackwardEulerDiffusionSolver2 &)=delete |
| Deleted copy assignment operator. More...
|
|
GridBackwardEulerDiffusionSolver2 & | operator= (GridBackwardEulerDiffusionSolver2 &&) noexcept=delete |
| Deleted move assignment operator. More...
|
|
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 |
|
void | Solve (const CollocatedVectorGrid2 &source, double diffusionCoefficient, double timeIntervalInSeconds, CollocatedVectorGrid2 *dest, const ScalarField2 &boundarySDF=ConstantScalarField2{ std::numeric_limits< double >::max() }, const ScalarField2 &fluidSDF=ConstantScalarField2{ -std::numeric_limits< double >::max() }) override |
|
void | Solve (const FaceCenteredGrid2 &source, double diffusionCoefficient, double timeIntervalInSeconds, FaceCenteredGrid2 *dest, const ScalarField2 &boundarySDF=ConstantScalarField2{ std::numeric_limits< double >::max() }, const ScalarField2 &fluidSDF=ConstantScalarField2{ -std::numeric_limits< double >::max() }) override |
|
void | SetLinearSystemSolver (const FDMLinearSystemSolver2Ptr &solver) |
| Sets the linear system solver for this diffusion solver. More...
|
|
| GridDiffusionSolver2 ()=default |
| Default constructor. More...
|
|
| GridDiffusionSolver2 (const GridDiffusionSolver2 &)=delete |
| Deleted copy constructor. More...
|
|
| GridDiffusionSolver2 (GridDiffusionSolver2 &&) noexcept=delete |
| Deleted move constructor. More...
|
|
virtual | ~GridDiffusionSolver2 ()=default |
| Default virtual destructor. More...
|
|
GridDiffusionSolver2 & | operator= (const GridDiffusionSolver2 &)=delete |
| Deleted copy assignment operator. More...
|
|
GridDiffusionSolver2 & | operator= (GridDiffusionSolver2 &&) noexcept=delete |
| Deleted move assignment operator. More...
|
|
2-D grid-based backward Euler diffusion solver.
This class implements 2-D grid-based forward Euler diffusion solver using second-order central differencing spatially. Since the method is following the implicit time-integration (i.e. backward Euler), larger time interval or diffusion coefficient can be used without breaking the result. Note, higher values for those parameters will still impact the accuracy of the result. To solve the backward Euler method, a linear system solver is used and incomplete Cholesky conjugate gradient method is used by default.