CubbyFlow::ScalarField2 Class Referenceabstract

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

#include <Core/Field/ScalarField2.h>

Inheritance diagram for CubbyFlow::ScalarField2:
CubbyFlow::Field2 CubbyFlow::ConstantScalarField2 CubbyFlow::CustomScalarField2 CubbyFlow::ScalarGrid2 CubbyFlow::CellCenteredScalarGrid2 CubbyFlow::VertexCenteredScalarGrid2

Public Member Functions

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

Detailed Description

Abstract base class for 2-D scalar field.

Constructor & Destructor Documentation

◆ ScalarField2()

CubbyFlow::ScalarField2::ScalarField2 ( )

Default constructor.

◆ ~ScalarField2()

virtual CubbyFlow::ScalarField2::~ScalarField2 ( )
virtual

Default destructor.

Member Function Documentation

◆ Gradient()

virtual Vector2D CubbyFlow::ScalarField2::Gradient ( const Vector2D x) const
virtual

Returns gradient vector at given position x.

Reimplemented in CubbyFlow::ScalarGrid2, and CubbyFlow::CustomScalarField2.

◆ Laplacian()

virtual double CubbyFlow::ScalarField2::Laplacian ( const Vector2D x) const
virtual

Returns Laplacian at given position x.

Reimplemented in CubbyFlow::ScalarGrid2, and CubbyFlow::CustomScalarField2.

◆ Sample()

virtual double CubbyFlow::ScalarField2::Sample ( const Vector2D x) const
pure virtual

Returns sampled value at given position x.

Implemented in CubbyFlow::ScalarGrid2, CubbyFlow::CustomScalarField2, and CubbyFlow::ConstantScalarField2.

◆ Sampler()

virtual std::function<double(const Vector2D&)> CubbyFlow::ScalarField2::Sampler ( ) const
virtual

Returns sampler function object.

Reimplemented in CubbyFlow::ScalarGrid2, CubbyFlow::CustomScalarField2, and CubbyFlow::ConstantScalarField2.


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