dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::PDELab::FunctionToGridFunctionAdapter< G, T > Class Template Reference

make a GridFunction from a Function More...

#include <dune/pdelab/common/function.hh>

Inheritance diagram for Dune::PDELab::FunctionToGridFunctionAdapter< G, T >:
Inheritance graph

Public Types

typedef GridFunctionTraits< G, typename T::Traits::RangeFieldType, T::Traits::dimRange, typename T::Traits::RangeType > Traits
 
typedef GridFunctionTag ImplementationTag
 
typedef T::GridViewType GridViewType
 Type of the GridView.
 
using Output = typename Base::Output
 

Public Member Functions

 FunctionToGridFunctionAdapter (const G &g_, const T &t_)
 Create a FunctionToGridFunctionAdapter.
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 
const Traits::GridViewTypegetGridView () const
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 Evaluate the GridFunction at given position.
 
Output::DataSetType dataSetType () const
 Return the data set type of this function.
 
void setDataSetType (Output::DataSetType dataSetType)
 Set the data set type of this function.
 

Detailed Description

template<typename G, typename T>
class Dune::PDELab::FunctionToGridFunctionAdapter< G, T >

make a GridFunction from a Function

Template Parameters
GThe GridView type
TThe function type

Member Typedef Documentation

◆ GridViewType

typedef T::GridViewType Dune::PDELab::GridFunctionBase< GridFunctionTraits< G, T::Traits::RangeFieldType, T::Traits::dimRange, T::Traits::RangeType > , FunctionToGridFunctionAdapter< G, T > >::GridViewType
inherited

Type of the GridView.

◆ ImplementationTag

typedef GridFunctionTag Dune::PDELab::GridFunctionBase< GridFunctionTraits< G, T::Traits::RangeFieldType, T::Traits::dimRange, T::Traits::RangeType > , FunctionToGridFunctionAdapter< G, T > >::ImplementationTag
inherited

◆ Output

using Dune::PDELab::GridFunctionBase< GridFunctionTraits< G, T::Traits::RangeFieldType, T::Traits::dimRange, T::Traits::RangeType > , FunctionToGridFunctionAdapter< G, T > >::Output = typename Base::Output
inherited

◆ Traits

template<typename G , typename T >
typedef GridFunctionTraits<G, typename T::Traits::RangeFieldType, T::Traits::dimRange, typename T::Traits::RangeType> Dune::PDELab::FunctionToGridFunctionAdapter< G, T >::Traits

Constructor & Destructor Documentation

◆ FunctionToGridFunctionAdapter()

template<typename G , typename T >
Dune::PDELab::FunctionToGridFunctionAdapter< G, T >::FunctionToGridFunctionAdapter ( const G &  g_,
const T &  t_ 
)
inline

Create a FunctionToGridFunctionAdapter.

Parameters
g_The GridView
t_The function

Member Function Documentation

◆ dataSetType()

Output::DataSetType Dune::PDELab::GridFunctionOutputParameters::dataSetType ( ) const
inlineinherited

Return the data set type of this function.

◆ evaluate() [1/2]

template<class T , class Imp >
void Dune::PDELab::GridFunctionInterface< T, Imp >::evaluate ( const typename Traits::ElementType &  e,
const typename Traits::DomainType &  x,
typename Traits::RangeType &  y 
) const
inlineinherited

Evaluate the GridFunction at given position.

Evaluates components of the grid function at the given position and returns these values in a vector.

Parameters
[in]eThe entity to evaluate on
[in]xThe position in entity-local coordinates
[out]yThe result of the evaluation

◆ evaluate() [2/2]

template<typename G , typename T >
void Dune::PDELab::FunctionToGridFunctionAdapter< G, T >::evaluate ( const typename Traits::ElementType e,
const typename Traits::DomainType x,
typename Traits::RangeType y 
) const
inline

◆ getGridView()

template<typename G , typename T >
const Traits::GridViewType & Dune::PDELab::FunctionToGridFunctionAdapter< G, T >::getGridView ( ) const
inline

◆ setDataSetType()

void Dune::PDELab::GridFunctionOutputParameters::setDataSetType ( Output::DataSetType  dataSetType)
inlineinherited

Set the data set type of this function.


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