dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::PDELab::GlobalCallableToGridFunctionAdapter< GV, RF, n, F > Class Template Reference

Adapter for callables f(x) expecting a global coordinate x. More...

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

Inheritance diagram for Dune::PDELab::GlobalCallableToGridFunctionAdapter< GV, RF, n, F >:
Inheritance graph

Public Types

typedef Dune::PDELab::GridFunctionTraits< GV, RF, n, Dune::FieldVector< RF, n > > Traits
 
typedef GridFunctionTag ImplementationTag
 
typedef T::GridViewType GridViewType
 Type of the GridView. More...
 
using Output = typename Base::Output
 

Public Member Functions

 GlobalCallableToGridFunctionAdapter (const GV &gv_, const F &f_)
 construct from grid view More...
 
const GV & getGridView () const
 get a reference to the grid view More...
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &xl, typename Traits::RangeType &y) const
 evaluate extended function on element More...
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 Evaluate the GridFunction at given position. More...
 
Output::DataSetType dataSetType () const
 Return the data set type of this function. More...
 
void setDataSetType (Output::DataSetType dataSetType)
 Set the data set type of this function. More...
 

Detailed Description

template<typename GV, typename RF, int n, typename F>
class Dune::PDELab::GlobalCallableToGridFunctionAdapter< GV, RF, n, F >

Adapter for callables f(x) expecting a global coordinate x.

Member Typedef Documentation

◆ GridViewType

typedef T::GridViewType Dune::PDELab::GridFunctionBase< Dune::PDELab::GridFunctionTraits< GV, RF, n, Dune::FieldVector< RF, n > > , GlobalCallableToGridFunctionAdapter< GV, RF, n, F > >::GridViewType
inherited

Type of the GridView.

◆ ImplementationTag

typedef GridFunctionTag Dune::PDELab::GridFunctionBase< Dune::PDELab::GridFunctionTraits< GV, RF, n, Dune::FieldVector< RF, n > > , GlobalCallableToGridFunctionAdapter< GV, RF, n, F > >::ImplementationTag
inherited

◆ Output

using Dune::PDELab::GridFunctionBase< Dune::PDELab::GridFunctionTraits< GV, RF, n, Dune::FieldVector< RF, n > > , GlobalCallableToGridFunctionAdapter< GV, RF, n, F > >::Output = typename Base::Output
inherited

◆ Traits

template<typename GV , typename RF , int n, typename F >
typedef Dune::PDELab:: GridFunctionTraits<GV,RF,n,Dune::FieldVector<RF,n> > Dune::PDELab::GlobalCallableToGridFunctionAdapter< GV, RF, n, F >::Traits

Constructor & Destructor Documentation

◆ GlobalCallableToGridFunctionAdapter()

template<typename GV , typename RF , int n, typename F >
Dune::PDELab::GlobalCallableToGridFunctionAdapter< GV, RF, n, F >::GlobalCallableToGridFunctionAdapter ( const GV &  gv_,
const F &  f_ 
)
inline

construct from grid view

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 GV , typename RF , int n, typename F >
void Dune::PDELab::GlobalCallableToGridFunctionAdapter< GV, RF, n, F >::evaluate ( const typename Traits::ElementType e,
const typename Traits::DomainType xl,
typename Traits::RangeType y 
) const
inline

evaluate extended function on element

◆ getGridView()

template<typename GV , typename RF , int n, typename F >
const GV & Dune::PDELab::GlobalCallableToGridFunctionAdapter< GV, RF, n, F >::getGridView ( ) const
inline

get a reference to the grid view

◆ 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: