A scalar-valued spatial function, defined through scalar fields.
More...
#include <FieldFunctions.h>
|
| | FieldFuncStream (const std::vector< ASMbase * > &patches, std::istream &istr) |
| | The constructor creates a field from the provided input stream.
|
| |
|
virtual | ~FieldFuncStream () |
| | The destructor deletes the scalar fields.
|
| |
| virtual bool | initPatch (size_t pIdx) |
| | Sets the active patch.
|
| |
| unsigned char | getType () const override |
| | Returns the function type flag.
|
| |
| std::vector< Real > | getValue (const Vec3 &X) const override |
| | Returns the function value as an array.
|
| |
| virtual Vec3 | gradient (const Vec3 &X) const |
| | Evaluates first derivatives of the function.
|
| |
| virtual SymmTensor | hessian (const Vec3 &X) const |
| | Evaluates second derivatives of the function.
|
| |
| Real | getScalarValue (const Vec3 &X) const override |
| | Returns a representative scalar equivalent of the function value.
|
| |
|
Real | timeDerivative (const Vec3 &X) const |
| | Returns the time derivative of the function.
|
| |
| virtual Real | deriv (const Vec3 &, int) const |
| | Returns a first-derivative of the function.
|
| |
| virtual Real | dderiv (const Vec3 &, int, int) const |
| | Returns a second-derivative of the function.
|
| |
|
virtual | ~Function () |
| | Empty destructor.
|
| |
| virtual bool | isZero () const |
| | Returns whether the function is identically zero or not.
|
| |
| virtual bool | isConstant () const |
| | Returns whether the function is time-independent or not.
|
| |
|
Result | operator() (const Arg &x) const |
| | Operator returning the function value for the given argument.
|
| |
|
virtual | ~FunctionBase () |
| | Empty destructor.
|
| |
|
size_t | dim () const |
| | Returns the number of components of the return value.
|
| |
| virtual bool | inDomain (const Vec3 &) const |
| | Checks if a specified point is within the function domain.
|
| |
| virtual void | setParam (const std::string &, Real) |
| | Sets an additional parameter in the function.
|
| |
|
void | setParam (const std::string &name, const Vec3 &value) |
| | Sets additional parameter values in the function.
|
| |
|
|
virtual Real | evaluate (const Vec3 &X) const |
| | Evaluates the scalar field function.
|
| |
|
| RealFunc () |
| | The constructor is protected to allow sub-class instances only.
|
| |
|
| SpatialFunction (const Real &val) |
| | The constructor is protected to allow sub-class instances only.
|
| |
|
virtual std::vector< Real > | evalGradient (const Vec3 &) const |
| | Returns the gradient of the function as a 1D array.
|
| |
|
virtual std::vector< Real > | evalHessian (const Vec3 &) const |
| | Returns the hessian of the function as a 1D array.
|
| |
|
virtual std::vector< Real > | evalTimeDerivative (const Vec3 &) const |
| | Returns the time derivatives of the function as a 1D array.
|
| |
|
| Function () |
| | The constructor is protected to allow sub-class instances only.
|
| |
| virtual Result | evaluate (const Arg &x) const =0 |
| | Evaluates the function for the argument x.
|
| |
|
| FunctionBase () |
| | The constructor is protected to allow sub-class instances only.
|
| |
|
|
std::vector< Field * > | field |
| | The scalar field to be evaluated.
|
| |
|
std::vector< ASMbase * > | patch |
| | The patches on which the field is defined.
|
| |
|
size_t | pidx |
| | Current patch index.
|
| |
|
size_t | npch |
| | Number of patches in the field.
|
| |
|
|
typedef Arg | Input |
| | Input type.
|
| |
|
typedef Result | Output |
| | Output type.
|
| |
|
Real | zero |
| | Return value for default implementations of derivatives.
|
| |
|
size_t | ncmp |
| | Number of components in the return value.
|
| |
|
| FieldFuncBase () |
| | Default constructor.
|
| |
|
| FieldFuncBase (const FieldFuncBase &)=delete |
| | No copying of this class.
|
| |
|
virtual | ~FieldFuncBase () |
| | The destructor deletes the patches.
|
| |
|
bool | setPatch (size_t pIdx) |
| | Sets the active patch.
|
| |
|
static constexpr int | FIXED_LEVEL = 1 << 24 |
| | Bit flag in level for using fixed.
|
| |
A scalar-valued spatial function, defined through scalar fields.
This class reads its control point values from a stream.
◆ FieldFuncStream()
| FieldFuncStream::FieldFuncStream |
( |
const std::vector< ASMbase * > & |
patches, |
|
|
std::istream & |
istr |
|
) |
| |
The constructor creates a field from the provided input stream.
- Parameters
-
| [in] | patches | List of patches the field is defined over |
| [in] | istr | Input stream to read control point values from |
References Field::create(), and field.
◆ initPatch()
| virtual bool FieldFuncStream::initPatch |
( |
size_t |
pIdx | ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following files: