CustomScalarField.hpp
Go to the documentation of this file.
std::shared_ptr< CustomScalarField2 > CustomScalarField2Ptr
Shared pointer type for the CustomScalarField2.
Definition: CustomScalarField.hpp:91
double Laplacian(const Vector< double, N > &x) const override
Returns the Laplacian at given position x.
CustomScalarField(std::function< double(const Vector< double, N > &)> customFunction, double derivativeResolution=1e-3)
Constructs a field with given function.
Vector< double, N > Gradient(const Vector< double, N > &x) const override
Returns the gradient vector at given position x.
std::function< double(const Vector< double, N > &)> Sampler() const override
Returns the sampler function.
static Builder GetBuilder()
Returns builder for CustomScalarField.
double Sample(const Vector< double, N > &x) const override
Returns the sampled value at given position x.
Definition: Matrix.hpp:27
Definition: pybind11Utils.hpp:20
N-D scalar field with custom field function.
Definition: CustomScalarField.hpp:20
std::shared_ptr< CustomScalarField3 > CustomScalarField3Ptr
Shared pointer type for the CustomScalarField3.
Definition: CustomScalarField.hpp:94
Front-end to create CustomScalarField objects step by step.
Definition: CustomScalarField.hpp:100