dune-pdelab 2.7-git
Loading...
Searching...
No Matches
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
 
typedef GridFunctionTag ImplementationTag
 
typedef T::GridViewType GridViewType
 Type of the GridView.
 
using Output = typename Base::Output
 

Public Member Functions

 DiscreteGridFunctionPiola (const GFS &gfs, const X &x_)
 Construct a DiscreteGridFunctionPiola.
 
 DiscreteGridFunctionPiola (std::shared_ptr< const GFS > gfs, std::shared_ptr< const X > x_)
 Construct a DiscreteGridFunctionPiola.
 
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
 
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 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

◆ GridViewType

typedef T::GridViewType Dune::PDELab::GridFunctionBase< 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 > >::GridViewType
inherited

Type of the GridView.

◆ ImplementationTag

typedef GridFunctionTag Dune::PDELab::GridFunctionBase< 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 > >::ImplementationTag
inherited

◆ Output

using Dune::PDELab::GridFunctionBase< 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 > >::Output = typename Base::Output
inherited

◆ Traits

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

Constructor & Destructor Documentation

◆ DiscreteGridFunctionPiola() [1/2]

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

◆ DiscreteGridFunctionPiola() [2/2]

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

Construct a DiscreteGridFunctionPiola.

Parameters
gfsshared pointer to the GridFunctionsSpace
x_shared pointer to the coefficients vector

Member Function Documentation

◆ dataSetType()

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

Return the data set type of this function.

◆ evaluate()

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

◆ getGridView()

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

get a reference to the GridView

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