DUNE-FEM (unstable)
implementation of a Dune::Fem::Function taking an instationary function More...
#include <dune/fem/function/common/instationary.hh>
Public Types | |
typedef BaseType::DomainType | DomainType |
domain type More... | |
typedef Function::FunctionSpaceType | FunctionSpaceType |
type of function space this function belongs to | |
typedef InstationaryFunction< Function, __InstationaryFunction::HoldCopy > | FunctionType |
type of the implementation (Barton-Nackman) | |
typedef FunctionSpaceType::DomainFieldType | DomainFieldType |
field type of domain | |
typedef FunctionSpaceType::RangeFieldType | RangeFieldType |
field type of range | |
typedef FunctionSpaceType::RangeType | RangeType |
range type | |
typedef FunctionSpaceType::JacobianRangeType | JacobianRangeType |
jacobian type | |
typedef FunctionSpaceType::HessianRangeType | HessianRangeType |
hessian type | |
typedef Mapping< DomainFieldType, RangeFieldType, DomainType, RangeType > | MappingType |
type of mapping base class | |
Public Member Functions | |
virtual void | operator() (const DomainType &arg, RangeType &dest) const |
application operator call evaluate More... | |
void | operator() (const DomainType &arg, RangeType &dest) const |
Application operator that applies all operators in the linear combination stack. More... | |
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 | |
Detailed Description
class Dune::Fem::InstationaryFunction< Function, StoragePolicy >
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.
- Template Parameters
-
Function an instationary function StoragePolicy storage policy
Member Typedef Documentation
◆ DomainType
typedef BaseType::DomainType Dune::Fem::InstationaryFunction< Function, StoragePolicy >::DomainType |
domain type
Member Function Documentation
◆ evaluate()
|
inline |
evaluate the function
- Parameters
-
[in] x evaluation point [out] value value of the function in x
References Dune::get(), and Dune::Fem::BasicInstationaryFunction< Function::FunctionSpaceType, InstationaryFunction< Function, __InstationaryFunction::HoldCopy > >::time().
◆ hessian()
|
inline |
evaluate the hessian of the function
- Parameters
-
[in] x evaluation point [out] hessian value of the hessian in x
References Dune::get(), and Dune::Fem::BasicInstationaryFunction< Function::FunctionSpaceType, InstationaryFunction< Function, __InstationaryFunction::HoldCopy > >::time().
◆ jacobian()
|
inline |
evaluate the Jacobian of the function
- Parameters
-
[in] x evaluation point [out] jacobian value of the Jacobian in x
References Dune::get(), and Dune::Fem::BasicInstationaryFunction< Function::FunctionSpaceType, InstationaryFunction< Function, __InstationaryFunction::HoldCopy > >::time().
◆ operator()() [1/2]
|
inlinevirtualinherited |
application operator call evaluate
- Parameters
-
[in] arg argument [out] dest destination, i.e. f(arg)
◆ operator()() [2/2]
|
inlineinherited |
Application operator that applies all operators in the linear combination stack.
- Parameters
-
[in] arg argument [out] dest destination
◆ setTime()
|
inlineinherited |
set time to give value
- Parameters
-
[in] time time to be used
- Returns
- set time
Friends And Related Function Documentation
◆ operator*() [1/2]
related |
scale mapping with factor
- Parameters
-
[in] factor factor with which mapping is scaled [in] mapping Mapping which is scaled
- Returns
- new object mapping
◆ operator*() [2/2]
related |
scale mapping with factor
- Parameters
-
[in] mapping Mapping which is scaled [in] factor factor with which mapping is scaled
- Returns
- new object mapping
◆ operator+()
add two mappings
- Parameters
-
[in] a mapping 1 [in] b mapping 2
- Returns
- new object mapping
◆ operator-()
|
related |
substract two mappings
- Parameters
-
[in] a mapping 1 [in] b mapping 2
- Returns
- new object mapping
◆ operator/() [1/2]
|
related |
operator / for mappings
- Parameters
-
[in] factor by which result of mapping is divided [in] mapping which is divided
- Returns
- new object mapping
◆ operator/() [2/2]
|
related |
operator / for mappings
- Parameters
-
[in] mapping mapping which is divided [in] factor f factor by which result of mapping is divided
- Returns
- new object mapping
The documentation for this class was generated from the following file:
- dune/fem/function/common/instationary.hh