CubbyFlow::ScalarField3 Class Referenceabstract

Abstract base class for 3-D scalar field. More...

#include <Core/Field/ScalarField3.h>

Inheritance diagram for CubbyFlow::ScalarField3:
CubbyFlow::Field3 CubbyFlow::ConstantScalarField3 CubbyFlow::CustomScalarField3 CubbyFlow::ScalarGrid3 CubbyFlow::CellCenteredScalarGrid3 CubbyFlow::VertexCenteredScalarGrid3

Public Member Functions

 ScalarField3 ()
 Default constructor. More...
 
virtual ~ScalarField3 ()
 Default destructor. More...
 
virtual double Sample (const Vector3D &x) const =0
 Returns sampled value at given position x. More...
 
virtual Vector3D Gradient (const Vector3D &x) const
 Returns gradient vector at given position x. More...
 
virtual double Laplacian (const Vector3D &x) const
 Returns Laplacian at given position x. More...
 
virtual std::function< double(const Vector3D &)> Sampler () const
 Returns sampler function object. More...
 
- Public Member Functions inherited from CubbyFlow::Field3
 Field3 ()
 
virtual ~Field3 ()
 

Detailed Description

Abstract base class for 3-D scalar field.

Constructor & Destructor Documentation

◆ ScalarField3()

CubbyFlow::ScalarField3::ScalarField3 ( )

Default constructor.

◆ ~ScalarField3()

virtual CubbyFlow::ScalarField3::~ScalarField3 ( )
virtual

Default destructor.

Member Function Documentation

◆ Gradient()

virtual Vector3D CubbyFlow::ScalarField3::Gradient ( const Vector3D x) const
virtual

Returns gradient vector at given position x.

Reimplemented in CubbyFlow::ScalarGrid3, and CubbyFlow::CustomScalarField3.

◆ Laplacian()

virtual double CubbyFlow::ScalarField3::Laplacian ( const Vector3D x) const
virtual

Returns Laplacian at given position x.

Reimplemented in CubbyFlow::ScalarGrid3, and CubbyFlow::CustomScalarField3.

◆ Sample()

virtual double CubbyFlow::ScalarField3::Sample ( const Vector3D x) const
pure virtual

Returns sampled value at given position x.

Implemented in CubbyFlow::ScalarGrid3, CubbyFlow::CustomScalarField3, and CubbyFlow::ConstantScalarField3.

◆ Sampler()

virtual std::function<double(const Vector3D&)> CubbyFlow::ScalarField3::Sampler ( ) const
virtual

Returns sampler function object.

Reimplemented in CubbyFlow::ScalarGrid3, CubbyFlow::CustomScalarField3, and CubbyFlow::ConstantScalarField3.


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