CubbyFlow::AdvectionSolver3 Class Referenceabstract

Abstract based class for 3-D grid-based advection solver. More...

#include <Core/Solver/Advection/AdvectionSolver3.hpp>

Inheritance diagram for CubbyFlow::AdvectionSolver3:
CubbyFlow::SemiLagrangian3 CubbyFlow::CubicSemiLagrangian3

Public Member Functions

 AdvectionSolver3 ()=default
 Default constructor. More...
 
 AdvectionSolver3 (const AdvectionSolver3 &)=default
 Default copy constructor. More...
 
 AdvectionSolver3 (AdvectionSolver3 &&) noexcept=default
 Default move constructor. More...
 
virtual ~AdvectionSolver3 ()=default
 Default virtual destructor. More...
 
AdvectionSolver3operator= (const AdvectionSolver3 &)=default
 Default copy assignment operator. More...
 
AdvectionSolver3operator= (AdvectionSolver3 &&) noexcept=default
 Default move assignment operator. More...
 
virtual void Advect (const ScalarGrid3 &input, const VectorField3 &flow, double dt, ScalarGrid3 *output, const ScalarField3 &boundarySDF=ConstantScalarField3(std::numeric_limits< double >::max()))=0
 Solves advection equation for given scalar grid. More...
 
virtual void Advect (const CollocatedVectorGrid3 &input, const VectorField3 &flow, double dt, CollocatedVectorGrid3 *output, const ScalarField3 &boundarySDF=ConstantScalarField3(std::numeric_limits< double >::max()))
 Solves advection equation for given collocated vector grid. More...
 
virtual void Advect (const FaceCenteredGrid3 &input, const VectorField3 &flow, double dt, FaceCenteredGrid3 *output, const ScalarField3 &boundarySDF=ConstantScalarField3(std::numeric_limits< double >::max()))
 Solves advection equation for given face-centered vector grid. More...
 

Detailed Description

Abstract based class for 3-D grid-based advection solver.

The implementation of this abstract base class should solve 3-D advection equation for scalar and vector fields.

Constructor & Destructor Documentation

◆ AdvectionSolver3() [1/3]

CubbyFlow::AdvectionSolver3::AdvectionSolver3 ( )
default

Default constructor.

◆ AdvectionSolver3() [2/3]

CubbyFlow::AdvectionSolver3::AdvectionSolver3 ( const AdvectionSolver3 )
default

Default copy constructor.

◆ AdvectionSolver3() [3/3]

CubbyFlow::AdvectionSolver3::AdvectionSolver3 ( AdvectionSolver3 &&  )
defaultnoexcept

Default move constructor.

◆ ~AdvectionSolver3()

virtual CubbyFlow::AdvectionSolver3::~AdvectionSolver3 ( )
virtualdefault

Default virtual destructor.

Member Function Documentation

◆ Advect() [1/3]

virtual void CubbyFlow::AdvectionSolver3::Advect ( const ScalarGrid3 input,
const VectorField3 flow,
double  dt,
ScalarGrid3 output,
const ScalarField3 boundarySDF = ConstantScalarField3(std::numeric_limits< double >::max()) 
)
pure virtual

Solves advection equation for given scalar grid.

The implementation of this virtual function should solve advection equation for given scalar field input and underlying vector field flow that carries the input field. The solution after solving the equation for given time-step dt should be stored in scalar field output. The boundary interface is given by a signed-distance field. The field is negative inside the boundary. By default, a constant field with max double value (std::numeric_limists<double>::max()) is used, meaning no boundary.

Parameters
inputInput scalar grid.
flowVector field that advects the input field.
dtTime-step for the advection.
outputOutput scalar grid.
boundarySDFBoundary interface defined by signed-distance field.

Implemented in CubbyFlow::SemiLagrangian3.

◆ Advect() [2/3]

virtual void CubbyFlow::AdvectionSolver3::Advect ( const CollocatedVectorGrid3 input,
const VectorField3 flow,
double  dt,
CollocatedVectorGrid3 output,
const ScalarField3 boundarySDF = ConstantScalarField3(std::numeric_limits< double >::max()) 
)
virtual

Solves advection equation for given collocated vector grid.

The implementation of this virtual function should solve advection equation for given collocated vector grid input and underlying vector field flow that carries the input field. The solution after solving the equation for given time-step dt should be stored in vector field output. The boundary interface is given by a signed-distance field. The field is negative inside the boundary. By default, a constant field with max double value (std::numeric_limists<double>::max()) is used, meaning no boundary.

Parameters
inputInput vector grid.
flowVector field that advects the input field.
dtTime-step for the advection.
outputOutput vector grid.
boundarySDFBoundary interface defined by signed-distance field.

Reimplemented in CubbyFlow::SemiLagrangian3.

◆ Advect() [3/3]

virtual void CubbyFlow::AdvectionSolver3::Advect ( const FaceCenteredGrid3 input,
const VectorField3 flow,
double  dt,
FaceCenteredGrid3 output,
const ScalarField3 boundarySDF = ConstantScalarField3(std::numeric_limits< double >::max()) 
)
virtual

Solves advection equation for given face-centered vector grid.

The implementation of this virtual function should solve advection equation for given face-centered vector field input and underlying vector field flow that carries the input field. The solution after solving the equation for given time-step dt should be stored in vector field output. The boundary interface is given by a signed-distance field. The field is negative inside the boundary. By default, a constant field with max double value (std::numeric_limists<double>::max()) is used, meaning no boundary.

Parameters
inputInput vector grid.
flowVector field that advects the input field.
dtTime-step for the advection.
outputOutput vector grid.
boundarySDFBoundary interface defined by signed-distance field.

Reimplemented in CubbyFlow::SemiLagrangian3.

◆ operator=() [1/2]

AdvectionSolver3& CubbyFlow::AdvectionSolver3::operator= ( const AdvectionSolver3 )
default

Default copy assignment operator.

◆ operator=() [2/2]

AdvectionSolver3& CubbyFlow::AdvectionSolver3::operator= ( AdvectionSolver3 &&  )
defaultnoexcept

Default move assignment operator.


The documentation for this class was generated from the following file: