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