|
IFEM 90A354
|
A tensor-valued spatial function, chebyshev polynomials. More...
#include <Chebyshev.h>


Public Member Functions | |
| ChebyshevTensorFunc (const std::vector< std::string > &input, bool file) | |
| The constructor initializes the function parameters from files. | |
| bool | isZero () const override |
| Returns whether the function is identically zero or not. | |
Public Member Functions inherited from TensorFunc | |
| virtual | ~TensorFunc () |
| Empty destructor. | |
| virtual unsigned char | getType () const |
| Returns the function type flag. | |
| virtual std::vector< Real > | getValue (const Vec3 &X) const |
| Returns the function value as an array. | |
| virtual Real | getScalarValue (const Vec3 &X) const |
| Returns a representative scalar equivalent of the function value. | |
| utl::matrix3d< Real > | gradient (const Vec3 &X) const |
| Evaluates first derivatives of the function. | |
| utl::matrix4d< Real > | hessian (const Vec3 &X) const |
| Evaluates second derivatives of the function. | |
| Tensor | timeDerivative (const Vec3 &X) const |
| Evaluates time derivatives of the function. | |
Public Member Functions inherited from utl::SpatialFunction< Tensor > | |
| virtual Tensor | deriv (const Vec3 &, int) const |
| Returns a first-derivative of the function. | |
| virtual Tensor | dderiv (const Vec3 &, int, int) const |
| Returns a second-derivative of the function. | |
Public Member Functions inherited from utl::Function< Arg, Result > | |
| virtual | ~Function () |
| Empty destructor. | |
| 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. | |
Public Member Functions inherited from FunctionBase | |
| virtual | ~FunctionBase () |
| Empty destructor. | |
| size_t | dim () const |
| Returns the number of components of the return value. | |
| virtual bool | initPatch (size_t) |
| Sets the active patch. | |
| 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. | |
Protected Member Functions | |
| Tensor | evaluate (const Vec3 &X) const override |
| Evaluates the function at point X. | |
| std::vector< Real > | evalGradient (const Vec3 &) const override |
| Returns the gradient of the function as a 1D array. | |
| std::vector< Real > | evalHessian (const Vec3 &) const override |
| Returns the hessian of the function as a 1D array. | |
Protected Member Functions inherited from TensorFunc | |
| TensorFunc (size_t n=0) | |
| The constructor is protected to allow sub-class instances only. | |
Protected Member Functions inherited from utl::SpatialFunction< Tensor > | |
| SpatialFunction (const Tensor &val) | |
| The constructor is protected to allow sub-class instances only. | |
| virtual std::vector< Real > | evalTimeDerivative (const Vec3 &) const |
| Returns the time derivatives of the function as a 1D array. | |
Protected Member Functions inherited from utl::Function< Arg, Result > | |
| 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. | |
Protected Member Functions inherited from FunctionBase | |
| FunctionBase () | |
| The constructor is protected to allow sub-class instances only. | |
Private Attributes | |
| std::vector< std::unique_ptr< ChebyshevFunc > > | f |
| Vector of components. | |
Additional Inherited Members | |
Public Types inherited from utl::Function< Arg, Result > | |
| typedef Arg | Input |
| Input type. | |
| typedef Result | Output |
| Output type. | |
Protected Attributes inherited from utl::SpatialFunction< Tensor > | |
| Tensor | zero |
| Return value for default implementations of derivatives. | |
Protected Attributes inherited from FunctionBase | |
| size_t | ncmp |
| Number of components in the return value. | |
A tensor-valued spatial function, chebyshev polynomials.
| ChebyshevTensorFunc::ChebyshevTensorFunc | ( | const std::vector< std::string > & | input, |
| bool | file | ||
| ) |
The constructor initializes the function parameters from files.
| [in] | input | Name of files or strings to read coefs from |
| [in] | file | True if input is file names |
References f.
|
overrideprotectedvirtual |
Returns the gradient of the function as a 1D array.
Reimplemented from utl::SpatialFunction< Tensor >.
References Tensor::dim(), f, FunctionBase::ncmp, and utl::SpatialFunction< Tensor >::zero.
|
overrideprotectedvirtual |
Returns the hessian of the function as a 1D array.
Reimplemented from utl::SpatialFunction< Tensor >.
References Tensor::dim(), f, FunctionBase::ncmp, and utl::SpatialFunction< Tensor >::zero.
|
inlineoverridevirtual |
Returns whether the function is identically zero or not.
Reimplemented from utl::Function< Arg, Result >.
References f.