#include <mathFunction.hpp>
Public Member Functions | |
virtual double | Eval (const double &x, const double &y, const double &z, const double &t) const =0 |
virtual double | Eval (const double *xyz, const int &ndims, const double &t) const =0 |
virtual void | Eval (const double &x, const double &y, const double &z, const double &t, std::vector< double > &result) const =0 |
virtual void | Eval (const double *xyz, const int &ndims, const double &t, std::vector< double > &result) const =0 |
virtual PetscFunction | GetPetscFunction ()=0 |
virtual void * | GetContext ()=0 |
virtual | ~MathFunction ()=default |
Shared interface for all "math" style functions
|
virtualdefault |
provide hook to allow math functions to cleanup
|
pure virtual |
Return a single double value
x | |
y | |
z | |
t |
Implemented in ablate::mathFunctions::SimpleFormula, ablate::mathFunctions::Peak, ablate::mathFunctions::ParsedSeries, ablate::mathFunctions::NearestPoint, ablate::mathFunctions::LinearTable, ablate::mathFunctions::LinearFunction, ablate::mathFunctions::Linear, ablate::mathFunctions::geom::Geometry, ablate::mathFunctions::FunctionWrapper, ablate::mathFunctions::FunctionPointer, ablate::mathFunctions::Formula, ablate::mathFunctions::ConstantValue, and ablate::domain::Hdf5Initializer::Hdf5MathFunction.
|
pure virtual |
Populate a result array
x | |
y | |
z | |
t | |
result |
Implemented in ablate::mathFunctions::SimpleFormula, ablate::mathFunctions::Peak, ablate::mathFunctions::ParsedSeries, ablate::mathFunctions::NearestPoint, ablate::mathFunctions::LinearTable, ablate::mathFunctions::LinearFunction, ablate::mathFunctions::Linear, ablate::mathFunctions::geom::Geometry, ablate::mathFunctions::FunctionWrapper, ablate::mathFunctions::FunctionPointer, ablate::mathFunctions::Formula, ablate::mathFunctions::ConstantValue, and ablate::domain::Hdf5Initializer::Hdf5MathFunction.
|
pure virtual |
Return a single double value based upon an xyz array
xyz | |
ndims | |
t |
Implemented in ablate::mathFunctions::SimpleFormula, ablate::mathFunctions::Peak, ablate::mathFunctions::ParsedSeries, ablate::mathFunctions::NearestPoint, ablate::mathFunctions::LinearTable, ablate::mathFunctions::LinearFunction, ablate::mathFunctions::Linear, ablate::mathFunctions::geom::Geometry, ablate::mathFunctions::FunctionWrapper, ablate::mathFunctions::FunctionPointer, ablate::mathFunctions::Formula, ablate::mathFunctions::ConstantValue, and ablate::domain::Hdf5Initializer::Hdf5MathFunction.
|
pure virtual |
Populate a result array based upon an xyz array
xyz | |
ndims | |
t | |
result |
Implemented in ablate::mathFunctions::SimpleFormula, ablate::mathFunctions::Peak, ablate::mathFunctions::ParsedSeries, ablate::mathFunctions::NearestPoint, ablate::mathFunctions::LinearTable, ablate::mathFunctions::LinearFunction, ablate::mathFunctions::Linear, ablate::mathFunctions::geom::Geometry, ablate::mathFunctions::FunctionWrapper, ablate::mathFunctions::FunctionPointer, ablate::mathFunctions::Formula, ablate::mathFunctions::ConstantValue, and ablate::domain::Hdf5Initializer::Hdf5MathFunction.
|
pure virtual |
Return a context for petsc style functions
Implemented in ablate::mathFunctions::SimpleFormula, ablate::mathFunctions::Peak, ablate::mathFunctions::ParsedSeries, ablate::mathFunctions::NearestPoint, ablate::mathFunctions::LinearTable, ablate::mathFunctions::LinearFunction, ablate::mathFunctions::Linear, ablate::mathFunctions::geom::Geometry, ablate::mathFunctions::FunctionWrapper, ablate::mathFunctions::FunctionPointer, ablate::mathFunctions::Formula, ablate::mathFunctions::ConstantValue, and ablate::domain::Hdf5Initializer::Hdf5MathFunction.
|
pure virtual |
Return a raw petsc style function to evaluate this math function
Implemented in ablate::mathFunctions::SimpleFormula, ablate::mathFunctions::Peak, ablate::mathFunctions::ParsedSeries, ablate::mathFunctions::NearestPoint, ablate::mathFunctions::LinearTable, ablate::mathFunctions::LinearFunction, ablate::mathFunctions::Linear, ablate::mathFunctions::geom::Geometry, ablate::mathFunctions::FunctionWrapper, ablate::mathFunctions::FunctionPointer, ablate::mathFunctions::Formula, ablate::mathFunctions::ConstantValue, and ablate::domain::Hdf5Initializer::Hdf5MathFunction.