dune-fem
2.4.1-rc
|
implementation of a Dune::Fem::Function taking an instationary function More...
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/function/common/instationary.hh>
Public Types | |
typedef BaseType::DomainType | DomainType |
domain type More... | |
Public Member Functions | |
Constructon | |
InstationaryFunction (const Function &function, double time) | |
InstationaryFunction (Function &&function, double time) | |
Public member methods | |
void | evaluate (const DomainType &x, typename BaseType::RangeType &value) const |
evaluate the function More... | |
void | jacobian (const DomainType &x, typename BaseType::JacobianRangeType &jacobian) const |
evaluate the Jacobian of the function More... | |
void | hessian (const DomainType &x, typename BaseType::HessianRangeType &hessian) const |
evaluate the hessian of the function More... | |
Set time | |
double | setTime (double time) |
set time to give value More... | |
double | time () const |
return set time More... | |
implementation of a Dune::Fem::Function taking an instationary function
It is assumed that all evaluation methods are present on the parameter function and have a second parameter for the time:
Users may prescribe how the parameter function is stored by providing a second template parameter, the storage policy. The policy is class that must be constructible from a function object or reference and that has a single method:
The default policy is to copy the function parameter. The free-standing method
may be used to conveniently create a new instance of InstationaryFunction. Use
to create an instationary function that holds a reference to f
instead of a copy.
Function | an instationary function |
StoragePolicy | storage policy |
typedef BaseType::DomainType Dune::Fem::InstationaryFunction< Function, StoragePolicy >::DomainType |
domain type
|
inline |
|
inline |
|
inline |
evaluate the function
[in] | x | evaluation point |
[out] | value | value of the function in x |
|
inline |
evaluate the hessian of the function
[in] | x | evaluation point |
[out] | hessian | value of the hessian in x |
|
inline |
evaluate the Jacobian of the function
[in] | x | evaluation point |
[out] | jacobian | value of the Jacobian in x |
|
inlineinherited |
set time to give value
[in] | time | time to be used |
|
inlineinherited |
return set time
References Dune::Fem::Function< FunctionSpace, Function >::Function(), and Dune::Fem::move().