dune-fem 2.8-git
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Related Functions | List of all members
Dune::Fem::BasicInstationaryFunction< FunctionSpace, Function > Class Template Reference

basic wrapper class (still a CRTP) for instationary functions More...

#include <dune/fem/function/common/instationary.hh>

Inheritance diagram for Dune::Fem::BasicInstationaryFunction< FunctionSpace, Function >:
Inheritance graph

Public Types

typedef FunctionSpace FunctionSpaceType
 type of function space this function belongs to More...
 
typedef Function FunctionType
 type of the implementation (Barton-Nackman) More...
 
typedef FunctionSpaceType::DomainFieldType DomainFieldType
 field type of domain More...
 
typedef FunctionSpaceType::RangeFieldType RangeFieldType
 field type of range More...
 
typedef FunctionSpaceType::DomainType DomainType
 domain type More...
 
typedef FunctionSpaceType::RangeType RangeType
 range type More...
 
typedef FunctionSpaceType::JacobianRangeType JacobianRangeType
 jacobian type More...
 
typedef FunctionSpaceType::HessianRangeType HessianRangeType
 hessian type More...
 
typedef Mapping< DomainFieldType, RangeFieldType, DomainType, RangeTypeMappingType
 type of mapping base class More...
 

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...
 
void evaluate (const DomainType &x, RangeType &value) const
 evaluate the function More...
 
void jacobian (const DomainType &x, JacobianRangeType &jacobian) const
 evaluate the Jacobian of the function More...
 
void hessian (const DomainType &x, HessianRangeType &hessian) const
 evaluate the hessian of the function More...
 
Constructon
 BasicInstationaryFunction (double time)
 
Set time
double setTime (double time)
 set time to give value More...
 
double time () const
 return set time More...
 

Protected Member Functions

const Implementation & asImp () const
 
Implementation & asImp ()
 

Static Protected Member Functions

static const Implementation & asImp (const ThisType &other)
 
static Implementation & asImp (ThisType &other)
 
static const FunctionasImp (const ThisType &other)
 
static FunctionasImp (ThisType &other)
 

Related Functions

(Note that these are not member functions.)

static Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeTypeoperator+ (const Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeType > &a, const Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeType > &b)
 add two mappings More...
 
static Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeTypeoperator- (const Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeType > &a, const Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeType > &b)
 substract two mappings More...
 
static Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeTypeoperator* (const Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeType > &mapping, const FunctionSpace ::RangeFieldType &factor)
 scale mapping with factor More...
 
static Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeTypeoperator* (const FunctionSpace ::RangeFieldType &factor, const Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeType > &mapping)
 scale mapping with factor More...
 
static Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeTypeoperator/ (const Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeType > &mapping, const FunctionSpace ::RangeFieldType &factor)
 operator / for mappings More...
 
static Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeTypeoperator/ (const FunctionSpace ::RangeFieldType &factor, const Mapping< FunctionSpace ::DomainFieldType, FunctionSpace ::RangeFieldType, FunctionSpace ::DomainType, FunctionSpace ::RangeType > &mapping)
 operator / for mappings More...
 

Detailed Description

template<class FunctionSpace, class Function>
class Dune::Fem::BasicInstationaryFunction< FunctionSpace, Function >

basic wrapper class (still a CRTP) for instationary functions

This class implements two methods

double setTime(double);
double time() const;
double setTime(double time)
set time to give value
Definition: instationary.hh:56
double time() const
return set time
Definition: instationary.hh:59

for wrapping some time dependent function and making it a Dune::Fem::Function that may only depend on spatial variables.

Member Typedef Documentation

◆ DomainFieldType

field type of domain

◆ DomainType

domain type

◆ FunctionSpaceType

typedef FunctionSpace Dune::Fem::Function< FunctionSpace , Function >::FunctionSpaceType
inherited

type of function space this function belongs to

◆ FunctionType

typedef Function Dune::Fem::Function< FunctionSpace , Function >::FunctionType
inherited

type of the implementation (Barton-Nackman)

◆ HessianRangeType

hessian type

◆ JacobianRangeType

jacobian type

◆ MappingType

type of mapping base class

◆ RangeFieldType

field type of range

◆ RangeType

range type

Constructor & Destructor Documentation

◆ BasicInstationaryFunction()

template<class FunctionSpace , class Function >
Dune::Fem::BasicInstationaryFunction< FunctionSpace, Function >::BasicInstationaryFunction ( double  time)
inlineexplicit

Member Function Documentation

◆ asImp() [1/6]

Implementation & Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( )
inlineprotectedinherited

◆ asImp() [2/6]

const Implementation & Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( ) const
inlineprotectedinherited

◆ asImp() [3/6]

static const Implementation & Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( const ThisType other)
inlinestaticprotectedinherited

◆ asImp() [4/6]

static const Function & Dune::Fem::BartonNackmanInterface< Function< FunctionSpace, Function > , Function >::asImp ( const ThisType other)
inlinestaticprotectedinherited

◆ asImp() [5/6]

static Implementation & Dune::Fem::BartonNackmanInterface< Interface, Implementation >::asImp ( ThisType other)
inlinestaticprotectedinherited

◆ asImp() [6/6]

static Function & Dune::Fem::BartonNackmanInterface< Function< FunctionSpace, Function > , Function >::asImp ( ThisType other)
inlinestaticprotectedinherited

◆ evaluate()

void Dune::Fem::Function< FunctionSpace , Function >::evaluate ( const DomainType x,
RangeType value 
) const
inlineinherited

evaluate the function

Parameters
[in]xevaluation point
[out]valuevalue of the function in x

◆ hessian()

void Dune::Fem::Function< FunctionSpace , Function >::hessian ( const DomainType x,
HessianRangeType hessian 
) const
inlineinherited

evaluate the hessian of the function

Parameters
[in]xevaluation point
[out]hessianvalue of the hessian in x

◆ jacobian()

void Dune::Fem::Function< FunctionSpace , Function >::jacobian ( const DomainType x,
JacobianRangeType jacobian 
) const
inlineinherited

evaluate the Jacobian of the function

Parameters
[in]xevaluation point
[out]jacobianvalue of the Jacobian in x

◆ operator()() [1/2]

virtual void Dune::Fem::Function< FunctionSpace , Function >::operator() ( const DomainType arg,
RangeType dest 
) const
inlinevirtualinherited

application operator call evaluate

Parameters
[in]argargument
[out]destdestination, i.e. f(arg)

◆ operator()() [2/2]

Application operator that applies all operators in the linear combination stack.

Parameters
[in]argargument
[out]destdestination

◆ setTime()

template<class FunctionSpace , class Function >
double Dune::Fem::BasicInstationaryFunction< FunctionSpace, Function >::setTime ( double  time)
inline

set time to give value

Parameters
[in]timetime to be used
Returns
set time

◆ time()

template<class FunctionSpace , class Function >
double Dune::Fem::BasicInstationaryFunction< FunctionSpace, Function >::time ( ) const
inline

return set time

Friends And Related Function Documentation

◆ operator*() [1/2]

scale mapping with factor

Parameters
[in]factorfactor with which mapping is scaled
[in]mappingMapping which is scaled
Returns
new object mapping

◆ operator*() [2/2]

scale mapping with factor

Parameters
[in]mappingMapping which is scaled
[in]factorfactor with which mapping is scaled
Returns
new object mapping

◆ operator+()

add two mappings

Parameters
[in]amapping 1
[in]bmapping 2
Returns
new object mapping

◆ operator-()

substract two mappings

Parameters
[in]amapping 1
[in]bmapping 2
Returns
new object mapping

◆ operator/() [1/2]

operator / for mappings

Parameters
[in]factorby which result of mapping is divided
[in]mappingwhich is divided
Returns
new object mapping

◆ operator/() [2/2]

operator / for mappings

Parameters
[in]mappingmapping which is divided
[in]factorf factor by which result of mapping is divided
Returns
new object mapping

The documentation for this class was generated from the following file: