Abstract base class for 3-D grid-based diffusion equation solver. More...
#include <Core/Solver/Grid/GridDiffusionSolver3.h>
Public Member Functions | |
GridDiffusionSolver3 () | |
Default constructor. More... | |
virtual | ~GridDiffusionSolver3 () |
Default destructor. More... | |
virtual void | Solve (const ScalarGrid3 &source, double diffusionCoefficient, double timeIntervalInSeconds, ScalarGrid3 *dest, const ScalarField3 &boundarySDF=ConstantScalarField3(std::numeric_limits< double >::max()), const ScalarField3 &fluidSDF=ConstantScalarField3(-std::numeric_limits< double >::max()))=0 |
virtual void | Solve (const CollocatedVectorGrid3 &source, double diffusionCoefficient, double timeIntervalInSeconds, CollocatedVectorGrid3 *dest, const ScalarField3 &boundarySDF=ConstantScalarField3(std::numeric_limits< double >::max()), const ScalarField3 &fluidSDF=ConstantScalarField3(-std::numeric_limits< double >::max()))=0 |
virtual void | Solve (const FaceCenteredGrid3 &source, double diffusionCoefficient, double timeIntervalInSeconds, FaceCenteredGrid3 *dest, const ScalarField3 &boundarySDF=ConstantScalarField3(std::numeric_limits< double >::max()), const ScalarField3 &fluidSDF=ConstantScalarField3(-std::numeric_limits< double >::max()))=0 |
Detailed Description
Abstract base class for 3-D grid-based diffusion equation solver.
This class provides functions to solve the diffusion equation for different types of fields. The target equation can be written as where is the diffusion coefficient. The field can be either scalar or vector field.
Constructor & Destructor Documentation
◆ GridDiffusionSolver3()
CubbyFlow::GridDiffusionSolver3::GridDiffusionSolver3 | ( | ) |
Default constructor.
◆ ~GridDiffusionSolver3()
|
virtual |
Default destructor.
Member Function Documentation
◆ Solve() [1/3]
|
pure virtual |
Solves diffusion equation for a scalar field.
- Parameters
-
source Input scalar field. diffusionCoefficient Amount of diffusion. timeIntervalInSeconds Small time-interval that diffusion occur. dest Output scalar field. boundarySDF Shape of the solid boundary that is empty by default. fluidSDF Shape of the fluid boundary that is full by default.
Implemented in CubbyFlow::GridBackwardEulerDiffusionSolver3, and CubbyFlow::GridForwardEulerDiffusionSolver3.
◆ Solve() [2/3]
|
pure virtual |
Solves diffusion equation for a collocated vector field.
- Parameters
-
source Input collocated vector field. diffusionCoefficient Amount of diffusion. timeIntervalInSeconds Small time-interval that diffusion occur. dest Output collocated vector field. boundarySDF Shape of the solid boundary that is empty by default. fluidSDF Shape of the fluid boundary that is full by default.
Implemented in CubbyFlow::GridBackwardEulerDiffusionSolver3, and CubbyFlow::GridForwardEulerDiffusionSolver3.
◆ Solve() [3/3]
|
pure virtual |
Solves diffusion equation for a face-centered vector field.
- Parameters
-
source Input face-centered vector field. diffusionCoefficient Amount of diffusion. timeIntervalInSeconds Small time-interval that diffusion occur. dest Output face-centered vector field. boundarySDF Shape of the solid boundary that is empty by default. fluidSDF Shape of the fluid boundary that is full by default.
Implemented in CubbyFlow::GridBackwardEulerDiffusionSolver3, and CubbyFlow::GridForwardEulerDiffusionSolver3.
The documentation for this class was generated from the following file:
- Core/Solver/Grid/GridDiffusionSolver3.h