dune-pdelab  2.4-dev
Public Types | Public Member Functions | List of all members
Dune::PDELab::DiscreteGridFunctionPiola< T, X > Class Template Reference

DiscreteGridFunction with Piola transformation. More...

#include <dune/pdelab/gridfunctionspace/gridfunctionspaceutilities.hh>

Inheritance diagram for Dune::PDELab::DiscreteGridFunctionPiola< T, X >:
Inheritance graph

Public Types

typedef BaseT::Traits Traits
 

Public Member Functions

 DiscreteGridFunctionPiola (const GFS &gfs, const X &x_)
 Construct a DiscreteGridFunctionPiola. More...
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 
const Traits::GridViewType & getGridView () const
 get a reference to the GridView 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 T, typename X>
class Dune::PDELab::DiscreteGridFunctionPiola< T, X >

DiscreteGridFunction with Piola transformation.

If a GridFunctionSpace with local-valued finite elements is used, this class can only be used for scalar functions, since for vector-valued local finite elements the values must be transformed, and the transformation depends on the type of element. For H(div) elements (Raviart-Thomas) look at DiscreteGridFunctionPiola.

If a GridFunctionSpace with finite elements using the new global-valued interface is used, this class can be used as-is even for vector-valued functions.

If you have a GridFunctionSpace tree of 1-component grid-function spaces, and want to collectively treat them as a vector-valued grid-function, look at VectorDiscreteGridFunction.

Template Parameters
TType of GridFunctionSpace
XType of coefficients vector

Member Typedef Documentation

template<typename T , typename X >
typedef BaseT::Traits Dune::PDELab::DiscreteGridFunctionPiola< T, X >::Traits

Constructor & Destructor Documentation

template<typename T , typename X >
Dune::PDELab::DiscreteGridFunctionPiola< T, X >::DiscreteGridFunctionPiola ( const GFS &  gfs,
const X &  x_ 
)
inline

Construct a DiscreteGridFunctionPiola.

Parameters
gfsThe GridFunctionsSpace
x_The coefficients vector

Member Function Documentation

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

Return the data set type of this function.

Referenced by Dune::PDELab::GridFunctionOutputParameters::setDataSetType().

void Dune::PDELab::GridFunctionInterface< GridFunctionTraits< T::Traits::GridViewType, T::Traits::FiniteElementType::Traits::LocalBasisType::Traits::RangeFieldType, T::Traits::FiniteElementType::Traits::LocalBasisType::Traits::dimRange, T::Traits::FiniteElementType::Traits::LocalBasisType::Traits::RangeType > , DiscreteGridFunctionPiola< T, X > >::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
template<typename T , typename X >
void Dune::PDELab::DiscreteGridFunctionPiola< T, X >::evaluate ( const typename Traits::ElementType &  e,
const typename Traits::DomainType &  x,
typename Traits::RangeType &  y 
) const
inline
template<typename T , typename X >
const Traits::GridViewType& Dune::PDELab::DiscreteGridFunctionPiola< T, X >::getGridView ( ) const
inline

get a reference to the GridView

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

Set the data set type of this function.

References Dune::PDELab::GridFunctionOutputParameters::dataSetType().


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