CubbyFlow::VectorField2 Class Referenceabstract

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

#include <Core/Field/VectorField2.h>

Inheritance diagram for CubbyFlow::VectorField2:
CubbyFlow::Field2 CubbyFlow::ConstantVectorField2 CubbyFlow::CustomVectorField2 CubbyFlow::VectorGrid2 CubbyFlow::CollocatedVectorGrid2 CubbyFlow::FaceCenteredGrid2 CubbyFlow::CellCenteredVectorGrid2 CubbyFlow::VertexCenteredVectorGrid2

Public Member Functions

 VectorField2 ()
 Default constructor. More...
 
virtual ~VectorField2 ()
 Default destructor. More...
 
virtual Vector2D Sample (const Vector2D &x) const =0
 Returns sampled value at given position x. More...
 
virtual double Divergence (const Vector2D &x) const
 Returns divergence at given position x. More...
 
virtual double Curl (const Vector2D &x) const
 Returns curl at given position x. More...
 
virtual std::function< Vector2D(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 vector field.

Constructor & Destructor Documentation

◆ VectorField2()

CubbyFlow::VectorField2::VectorField2 ( )

Default constructor.

◆ ~VectorField2()

virtual CubbyFlow::VectorField2::~VectorField2 ( )
virtual

Default destructor.

Member Function Documentation

◆ Curl()

virtual double CubbyFlow::VectorField2::Curl ( const Vector2D x) const
virtual

Returns curl at given position x.

Reimplemented in CubbyFlow::FaceCenteredGrid2, CubbyFlow::CollocatedVectorGrid2, and CubbyFlow::CustomVectorField2.

◆ Divergence()

virtual double CubbyFlow::VectorField2::Divergence ( const Vector2D x) const
virtual

Returns divergence at given position x.

Reimplemented in CubbyFlow::FaceCenteredGrid2, CubbyFlow::CollocatedVectorGrid2, and CubbyFlow::CustomVectorField2.

◆ Sample()

virtual Vector2D CubbyFlow::VectorField2::Sample ( const Vector2D x) const
pure virtual

◆ Sampler()

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

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