Jet
v1.3.3
|
Abstract base class for 2-D vector field. More...
#include <jet/vector_field2.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... | |
![]() | |
Field2 () | |
virtual | ~Field2 () |
Abstract base class for 2-D vector field.
jet::VectorField2::VectorField2 | ( | ) |
Default constructor.
|
virtual |
Default destructor.
|
virtual |
Returns curl at given position x
.
Reimplemented in jet::FaceCenteredGrid2, jet::CollocatedVectorGrid2, and jet::CustomVectorField2.
|
virtual |
Returns divergence at given position x
.
Reimplemented in jet::FaceCenteredGrid2, jet::CollocatedVectorGrid2, and jet::CustomVectorField2.
Returns sampled value at given position x
.
Implemented in jet::FaceCenteredGrid2, jet::CollocatedVectorGrid2, jet::CustomVectorField2, and jet::ConstantVectorField2.
Returns sampler function object.
Reimplemented in jet::FaceCenteredGrid2, jet::CollocatedVectorGrid2, jet::CustomVectorField2, and jet::ConstantVectorField2.