dune-pdelab  2.7-git
Public Types | Public Member Functions | List of all members
Dune::PDELab::SqrGridFunctionAdapter< GF > Class Template Reference

Take square of a GridFunction. More...

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

Inheritance diagram for Dune::PDELab::SqrGridFunctionAdapter< GF >:
Inheritance graph

Public Types

typedef Base::Traits Traits
 
typedef GridFunctionTag ImplementationTag
 
typedef GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > > ::GridViewType GridViewType
 Type of the GridView. More...
 
using Output = typename Base::Output
 

Public Member Functions

 SqrGridFunctionAdapter (GF &gf_)
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 
const Traits::GridViewType & getGridView () const
 
template<typename Time >
void setTime (Time time)
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 Evaluate the GridFunction at given position. More...
 
const Traits::GridViewType & getGridView () const
 get a reference to the GridView 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 GF>
class Dune::PDELab::SqrGridFunctionAdapter< GF >

Take square of a GridFunction.

Template Parameters
GFThe type of the GridFunction to square

Member Typedef Documentation

◆ GridViewType

typedef GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > > ::GridViewType Dune::PDELab::GridFunctionBase< GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > > , SqrGridFunctionAdapter< GF > >::GridViewType
inherited

Type of the GridView.

◆ ImplementationTag

typedef GridFunctionTag Dune::PDELab::GridFunctionBase< GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > > , SqrGridFunctionAdapter< GF > >::ImplementationTag
inherited

◆ Output

using Dune::PDELab::GridFunctionBase< GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > > , SqrGridFunctionAdapter< GF > >::Output = typename Base::Output
inherited

◆ Traits

template<typename GF >
typedef Base::Traits Dune::PDELab::SqrGridFunctionAdapter< GF >::Traits

Constructor & Destructor Documentation

◆ SqrGridFunctionAdapter()

template<typename GF >
Dune::PDELab::SqrGridFunctionAdapter< GF >::SqrGridFunctionAdapter ( GF &  gf_)
inline

Member Function Documentation

◆ dataSetType()

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

Return the data set type of this function.

◆ evaluate() [1/2]

template<typename GF >
void Dune::PDELab::SqrGridFunctionAdapter< GF >::evaluate ( const typename Traits::ElementType &  e,
const typename Traits::DomainType &  x,
typename Traits::RangeType &  y 
) const
inline

◆ evaluate() [2/2]

void Dune::PDELab::GridFunctionInterface< GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > > , SqrGridFunctionAdapter< GF > >::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

◆ getGridView() [1/2]

template<typename GF >
const Traits::GridViewType& Dune::PDELab::SqrGridFunctionAdapter< GF >::getGridView ( ) const
inline

◆ getGridView() [2/2]

const Traits::GridViewType& Dune::PDELab::GridFunctionInterface< GridFunctionTraits< GF::Traits::GridViewType, GF::Traits::RangeFieldType, 1, FieldVector< GF::Traits::RangeFieldType, 1 > > , SqrGridFunctionAdapter< GF > >::getGridView
inlineinherited

get a reference to the GridView

◆ setDataSetType()

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

Set the data set type of this function.

◆ setTime()

template<typename GF >
template<typename Time >
void Dune::PDELab::SqrGridFunctionAdapter< GF >::setTime ( Time  time)
inline

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