CubbyFlow::GridFluidSolverBuilderBase3< DerivedBuilder > Class Template Reference
Base class for grid-based fluid solver builder. More...
#include <Core/Solver/Grid/GridFluidSolver3.h>
Public Member Functions | |
DerivedBuilder & | WithResolution (const Size3 &resolution) |
Returns builder with grid resolution. More... | |
DerivedBuilder & | WithGridSpacing (const Vector3D &gridSpacing) |
Returns builder with grid spacing. More... | |
DerivedBuilder & | WithGridSpacing (double gridSpacing) |
Returns builder with grid spacing. More... | |
DerivedBuilder & | WithDomainSizeX (double domainSizeX) |
Returns builder with domain size in x-direction. More... | |
DerivedBuilder & | WithOrigin (const Vector3D &gridOrigin) |
Returns builder with grid origin. More... | |
Protected Member Functions | |
Vector3D | GetGridSpacing () const |
Protected Attributes | |
Size3 | m_resolution { 1, 1, 1} |
Vector3D | m_gridSpacing { 1, 1, 1 } |
Vector3D | m_gridOrigin { 0, 0, 0 } |
double | m_domainSizeX = 1.0 |
bool | m_useDomainSize = false |
Detailed Description
template<typename DerivedBuilder>
class CubbyFlow::GridFluidSolverBuilderBase3< DerivedBuilder >
Base class for grid-based fluid solver builder.
Member Function Documentation
◆ GetGridSpacing()
template<typename T >
|
protected |
◆ WithDomainSizeX()
template<typename T >
T & CubbyFlow::GridFluidSolverBuilderBase3< T >::WithDomainSizeX | ( | double | domainSizeX | ) |
Returns builder with domain size in x-direction.
To build a solver, one can use either grid spacing directly or domain size in x-direction to set the final grid spacing.
◆ WithGridSpacing() [1/2]
template<typename T >
T & CubbyFlow::GridFluidSolverBuilderBase3< T >::WithGridSpacing | ( | const Vector3D & | gridSpacing | ) |
Returns builder with grid spacing.
◆ WithGridSpacing() [2/2]
template<typename T >
T & CubbyFlow::GridFluidSolverBuilderBase3< T >::WithGridSpacing | ( | double | gridSpacing | ) |
Returns builder with grid spacing.
◆ WithOrigin()
template<typename T >
T & CubbyFlow::GridFluidSolverBuilderBase3< T >::WithOrigin | ( | const Vector3D & | gridOrigin | ) |
Returns builder with grid origin.
◆ WithResolution()
template<typename T >
T & CubbyFlow::GridFluidSolverBuilderBase3< T >::WithResolution | ( | const Size3 & | resolution | ) |
Returns builder with grid resolution.
Member Data Documentation
◆ m_domainSizeX
template<typename DerivedBuilder>
|
protected |
◆ m_gridOrigin
template<typename DerivedBuilder>
|
protected |
◆ m_gridSpacing
template<typename DerivedBuilder>
|
protected |
◆ m_resolution
template<typename DerivedBuilder>
|
protected |
◆ m_useDomainSize
template<typename DerivedBuilder>
|
protected |
The documentation for this class was generated from the following file:
- Core/Solver/Grid/GridFluidSolver3.h