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

convert a grid function space and a coefficient vector into a grid function More...

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

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

Public Types

typedef BaseT::Traits Traits
 

Public Member Functions

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

Private Member Functions

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::DiscreteGridFunction< T, X >

convert a grid function space and a coefficient vector into a grid function

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::DiscreteGridFunction< T, X >::Traits

Constructor & Destructor Documentation

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

Construct a DiscreteGridFunction.

Parameters
gfsThe GridFunctionsSpace
x_The coefficients vector
template<typename T , typename X >
Dune::PDELab::DiscreteGridFunction< T, X >::DiscreteGridFunction ( std::shared_ptr< const GFS >  gfs,
std::shared_ptr< const X >  x_ 
)
inline

Construct a DiscreteGridFunction.

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

Member Function Documentation

template<typename T , typename X >
void Dune::PDELab::DiscreteGridFunction< 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::DiscreteGridFunction< T, X >::getGridView ( ) const
inline

get a reference to the GridView


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