#include <nearestPoint.hpp>
Public Member Functions | |
NearestPoint (const std::vector< double > &coordinates, const std::vector< double > &values) | |
double | Eval (const double &x, const double &y, const double &z, const double &t) const override |
double | Eval (const double *xyz, const int &ndims, const double &t) const override |
void | Eval (const double &x, const double &y, const double &z, const double &t, std::vector< double > &result) const override |
void | Eval (const double *xyz, const int &ndims, const double &t, std::vector< double > &result) const override |
void * | GetContext () override |
PetscFunction | GetPetscFunction () override |
Public Member Functions inherited from ablate::mathFunctions::MathFunction | |
virtual | ~MathFunction ()=default |
Simple math function that takes a list of a points/values and returns the value associated with the nearest point
ablate::mathFunctions::NearestPoint::NearestPoint | ( | const std::vector< double > & | coordinates, |
const std::vector< double > & | values | ||
) |
Create a simple math function that initializes based upon the list of points
coordinates | list of coordinates (x1, y1, z1, x2, y2, etc.) |
values | List of values |
|
overridevirtual |
Return a single double value
x | |
y | |
z | |
t |
Implements ablate::mathFunctions::MathFunction.
|
overridevirtual |
|
overridevirtual |
Return a single double value based upon an xyz array
xyz | |
ndims | |
t |
Implements ablate::mathFunctions::MathFunction.
|
overridevirtual |
Populate a result array based upon an xyz array
xyz | |
ndims | |
t | |
result |
Implements ablate::mathFunctions::MathFunction.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Return a raw petsc style function to evaluate this math function
Implements ablate::mathFunctions::MathFunction.