dune-fem  2.4.1-rc
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction > Class Template Referenceabstract

Generates the Lagrange Interpolation of an analytic function. More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/operator/lagrangeinterpolation.hh>

Inheritance diagram for Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >:
Inheritance graph

Public Types

typedef DiscreteFunction DiscreteFunctionType
 type of discrete functions More...
 
typedef DiscreteFunctionType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
 type of discrete function space More...
 
typedef DiscreteFunctionType::LocalFunctionType LocalFunctionType
 type of local functions More...
 
typedef DiscreteFunctionSpaceType::GridPartType GridPartType
 type of grid partition More...
 
typedef DiscreteFunctionSpaceType::LagrangePointSetType LagrangePointSetType
 type of Lagrange point set More...
 
typedef DiscreteFunctionSpaceType::DomainType DomainType
 type of vectors in function's domain More...
 
typedef DiscreteFunctionSpaceType::RangeType RangeType
 type of vectors in function's range More...
 
typedef Function DomainFunctionType
 type of discrete function in the operator's domain More...
 
typedef DiscreteFunction RangeFunctionType
 type of discrete function in the operator's range More...
 
typedef Function::RangeFieldType DomainFieldType
 field type of the operator's domain More...
 
typedef DiscreteFunction::RangeFieldType RangeFieldType
 field type of the operator's range More...
 

Public Member Functions

 LagrangeInterpolation ()
 empty contructor More...
 
virtual ~LagrangeInterpolation ()
 virtual destructor because of inheritance from Operator More...
 
void operator() (const Function &function, DiscreteFunctionType &discreteFunction) const
 
virtual void operator() (const DomainFunctionType &u, RangeFunctionType &w) const =0
 application operator More...
 

Static Public Member Functions

static void interpolateFunction (const Function &function, DiscreteFunctionType &discreteFunction)
 
static void apply (const Function &function, DiscreteFunctionType &discreteFunction)
 

Detailed Description

template<class Function, class DiscreteFunction>
class Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >

Generates the Lagrange Interpolation of an analytic function.

Member Typedef Documentation

template<class Function , class DiscreteFunction >
typedef DiscreteFunctionType::DiscreteFunctionSpaceType Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::DiscreteFunctionSpaceType

type of discrete function space

template<class Function , class DiscreteFunction >
typedef DiscreteFunction Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::DiscreteFunctionType

type of discrete functions

typedef Function ::RangeFieldType Dune::Fem::Operator< Function , DiscreteFunction >::DomainFieldType
inherited

field type of the operator's domain

typedef Function Dune::Fem::Operator< Function , DiscreteFunction >::DomainFunctionType
inherited

type of discrete function in the operator's domain

template<class Function , class DiscreteFunction >
typedef DiscreteFunctionSpaceType::DomainType Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::DomainType

type of vectors in function's domain

template<class Function , class DiscreteFunction >
typedef DiscreteFunctionSpaceType::GridPartType Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::GridPartType

type of grid partition

template<class Function , class DiscreteFunction >
typedef DiscreteFunctionSpaceType::LagrangePointSetType Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::LagrangePointSetType

type of Lagrange point set

template<class Function , class DiscreteFunction >
typedef DiscreteFunctionType::LocalFunctionType Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::LocalFunctionType

type of local functions

typedef DiscreteFunction ::RangeFieldType Dune::Fem::Operator< Function , DiscreteFunction >::RangeFieldType
inherited

field type of the operator's range

typedef DiscreteFunction Dune::Fem::Operator< Function , DiscreteFunction >::RangeFunctionType
inherited

type of discrete function in the operator's range

template<class Function , class DiscreteFunction >
typedef DiscreteFunctionSpaceType::RangeType Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::RangeType

type of vectors in function's range

Constructor & Destructor Documentation

template<class Function , class DiscreteFunction >
Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::LagrangeInterpolation ( )
inline

empty contructor

template<class Function , class DiscreteFunction >
virtual Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::~LagrangeInterpolation ( )
inlinevirtual

virtual destructor because of inheritance from Operator

Member Function Documentation

template<class Function , class DiscreteFunction >
static void Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::apply ( const Function function,
DiscreteFunctionType discreteFunction 
)
inlinestatic

interpolate an analytical function into a Lagrange discrete function

This Method evaluates the given function (which can be evaluated globally) at the Lagrange points and writes the values into a discrete function.

Parameters
[in]functionfunction to interpolate
[out]discreteFunctiondiscrete function to receive the interpolation

References Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::interpolateFunction(), and Dune::Fem::GridFunctionAdapter< FunctionImp, GridPartImp >::space().

template<class Function , class DiscreteFunction >
static void Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::interpolateFunction ( const Function function,
DiscreteFunctionType discreteFunction 
)
inlinestatic

interpolate an analytical function into a Lagrange discrete function

This Method evaluates the given function (which can be evaluated globally) at the Lagrange points and writes the values into a discrete function.

Parameters
[in]functionfunction to interpolate
[out]discreteFunctiondiscrete function to receive the interpolation

Referenced by Dune::Fem::DataOutput< GridImp, DataImp >::VTKFunc< VTKIOType, DFType >::add(), Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::apply(), and Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::operator()().

virtual void Dune::Fem::Operator< Function , DiscreteFunction >::operator() ( const DomainFunctionType u,
RangeFunctionType w 
) const
pure virtualinherited

application operator

Parameters
[in]uargument discrete function
[out]wdestination discrete function
Note
This method has to be implemented by all derived classes.
template<class Function , class DiscreteFunction >
void Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::operator() ( const Function function,
DiscreteFunctionType discreteFunction 
) const
inline

interpolate an analytical function into a Lagrange discrete function

This Method evaluates the given function (which can be evaluated globally) at the Lagrange points and writes the values into a discrete function.

Parameters
[in]functionfunction to interpolate
[out]discreteFunctiondiscrete function to receive the interpolation

References Dune::Fem::LagrangeInterpolation< Function, DiscreteFunction >::interpolateFunction().


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