Abstract base class for 2-D vector field. More...
#include <Core/Field/VectorField2.h>
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 |
Default destructor.
Member Function Documentation
◆ Curl()
|
virtual |
Returns curl at given position x
.
Reimplemented in CubbyFlow::FaceCenteredGrid2, CubbyFlow::CollocatedVectorGrid2, and CubbyFlow::CustomVectorField2.
◆ Divergence()
|
virtual |
Returns divergence at given position x
.
Reimplemented in CubbyFlow::FaceCenteredGrid2, CubbyFlow::CollocatedVectorGrid2, and CubbyFlow::CustomVectorField2.
◆ Sample()
Returns sampled value at given position x
.
Implemented in CubbyFlow::FaceCenteredGrid2, CubbyFlow::CollocatedVectorGrid2, CubbyFlow::CustomVectorField2, and CubbyFlow::ConstantVectorField2.
◆ Sampler()
Returns sampler function object.
Reimplemented in CubbyFlow::FaceCenteredGrid2, CubbyFlow::CollocatedVectorGrid2, CubbyFlow::CustomVectorField2, and CubbyFlow::ConstantVectorField2.
The documentation for this class was generated from the following file:
- Core/Field/VectorField2.h