Go to the documentation of this file.
7 #ifndef INCLUDE_JET_CONSTANT_SCALAR_FIELD2_H_
8 #define INCLUDE_JET_CONSTANT_SCALAR_FIELD2_H_
59 #endif // INCLUDE_JET_CONSTANT_SCALAR_FIELD2_H_
ConstantScalarField2 build() const
Builds ConstantScalarField2.
ConstantScalarField2(double value)
Constructs a constant scalar field with given value.
Front-end to create ConstantScalarField2 objects step by step.
Definition: constant_scalar_field2.h:42
std::function< double(const Vector2D &)> sampler() const override
Returns the sampler function.
Abstract base class for 2-D scalar field.
Definition: scalar_field2.h:18
Builder & withValue(double value)
Returns builder with value.
ConstantScalarField2Ptr makeShared() const
Builds shared pointer of ConstantScalarField2 instance.
Definition: advection_solver2.h:18
2-D constant scalar field.
Definition: constant_scalar_field2.h:15
2-D vector class.
Definition: vector2.h:24
std::shared_ptr< ConstantScalarField2 > ConstantScalarField2Ptr
Shared pointer for the ConstantScalarField2 type.
Definition: constant_scalar_field2.h:36
double sample(const Vector2D &x) const override
Returns the sampled value at given position x.
static Builder builder()
Returns builder fox ConstantScalarField2.