Jet
v1.3.3
|
3-D scalar field with custom field function. More...
#include <jet/custom_scalar_field3.h>
Classes | |
class | Builder |
Front-end to create CustomScalarField3 objects step by step. More... | |
Public Member Functions | |
CustomScalarField3 (const std::function< double(const Vector3D &)> &customFunction, double derivativeResolution=1e-3) | |
Constructs a field with given function. More... | |
CustomScalarField3 (const std::function< double(const Vector3D &)> &customFunction, const std::function< Vector3D(const Vector3D &)> &customGradientFunction, double derivativeResolution=1e-3) | |
Constructs a field with given field and gradient function. More... | |
CustomScalarField3 (const std::function< double(const Vector3D &)> &customFunction, const std::function< Vector3D(const Vector3D &)> &customGradientFunction, const std::function< double(const Vector3D &)> &customLaplacianFunction) | |
Constructs a field with given field, gradient, and Laplacian function. More... | |
double | sample (const Vector3D &x) const override |
Returns the sampled value at given position x . More... | |
std::function< double(const Vector3D &)> | sampler () const override |
Returns the sampler function. More... | |
Vector3D | gradient (const Vector3D &x) const override |
Returns the gradient vector at given position x . More... | |
double | laplacian (const Vector3D &x) const override |
Returns the Laplacian at given position x . More... | |
![]() | |
ScalarField3 () | |
Default constructor. More... | |
virtual | ~ScalarField3 () |
Default destructor. More... | |
![]() | |
Field3 () | |
virtual | ~Field3 () |
Static Public Member Functions | |
static Builder | builder () |
Returns builder fox CustomScalarField3. More... | |
3-D scalar field with custom field function.
jet::CustomScalarField3::CustomScalarField3 | ( | const std::function< double(const Vector3D &)> & | customFunction, |
double | derivativeResolution = 1e-3 |
||
) |
Constructs a field with given function.
This constructor creates a field with user-provided function object. To compute derivatives, such as gradient and Laplacian, finite differencing is used. Thus, the differencing resolution also can be provided as the last parameter.
jet::CustomScalarField3::CustomScalarField3 | ( | const std::function< double(const Vector3D &)> & | customFunction, |
const std::function< Vector3D(const Vector3D &)> & | customGradientFunction, | ||
double | derivativeResolution = 1e-3 |
||
) |
Constructs a field with given field and gradient function.
This constructor creates a field with user-provided field and gradient function objects. To compute Laplacian, finite differencing is used. Thus, the differencing resolution also can be provided as the last parameter.
jet::CustomScalarField3::CustomScalarField3 | ( | const std::function< double(const Vector3D &)> & | customFunction, |
const std::function< Vector3D(const Vector3D &)> & | customGradientFunction, | ||
const std::function< double(const Vector3D &)> & | customLaplacianFunction | ||
) |
Constructs a field with given field, gradient, and Laplacian function.
|
static |
Returns builder fox CustomScalarField3.
Returns the gradient vector at given position x
.
Reimplemented from jet::ScalarField3.
|
overridevirtual |
Returns the Laplacian at given position x
.
Reimplemented from jet::ScalarField3.
|
overridevirtual |
Returns the sampled value at given position x
.
Implements jet::ScalarField3.
|
overridevirtual |
Returns the sampler function.
Reimplemented from jet::ScalarField3.