dune-pdelab  2.0.0
Public Types | Public Member Functions | List of all members
Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR > Class Template Reference

DiscreteGridFunction for vector-valued functions. More...

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

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

Public Types

typedef BaseT::Traits Traits
 
typedef T::template Child
< 0 >::Type 
ChildType
 
typedef
ChildType::Traits::FiniteElementType::Traits::LocalBasisType::Traits::RangeFieldType 
RF
 
typedef
ChildType::Traits::FiniteElementType::Traits::LocalBasisType::Traits::RangeType 
RT
 

Public Member Functions

 VectorDiscreteGridFunction (const GFS &gfs, const X &x_, std::size_t start=0)
 construct More...
 
template<class Remap >
 VectorDiscreteGridFunction (const GFS &gfs, const X &x_, const Remap &remap_)
 construct 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, std::size_t dimR = T::CHILDREN>
class Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >

DiscreteGridFunction for vector-valued functions.

convert a power function space of scalar function spaces into a vector-valued grid function this is just an intermediate solution to provide VTK output

Template Parameters
TType of PowerGridFunctionSpace
XType of coefficients vector
dimRForce a different number of components for the resulting GridFunction than the PowerGridFunctionSpace.

Member Typedef Documentation

template<typename T , typename X , std::size_t dimR = T::CHILDREN>
typedef T::template Child<0>::Type Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::ChildType
template<typename T , typename X , std::size_t dimR = T::CHILDREN>
typedef ChildType::Traits::FiniteElementType ::Traits::LocalBasisType::Traits::RangeFieldType Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::RF
template<typename T , typename X , std::size_t dimR = T::CHILDREN>
typedef ChildType::Traits::FiniteElementType ::Traits::LocalBasisType::Traits::RangeType Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::RT
template<typename T , typename X , std::size_t dimR = T::CHILDREN>
typedef BaseT::Traits Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::Traits

Constructor & Destructor Documentation

template<typename T , typename X , std::size_t dimR = T::CHILDREN>
Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::VectorDiscreteGridFunction ( const GFS &  gfs,
const X &  x_,
std::size_t  start = 0 
)
inline

construct

Parameters
gfsGridFunctionSpace.
x_Coefficient vector.
startNumber of first child of gfs to use.
template<typename T , typename X , std::size_t dimR = T::CHILDREN>
template<class Remap >
Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::VectorDiscreteGridFunction ( const GFS &  gfs,
const X &  x_,
const Remap &  remap_ 
)
inline

construct

Parameters
gfsGridFunctionSpace.
x_Coefficient vector.
remap_Subscriptable entity (i.e. a container, array, or pointer) with at least dimR entries. The relevant entries are copied.
Note
If i denotes a component of the resulting grid function, then remap_[i] denotes the corresponding child of the gridfunctionspace.

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::template Child< 0 >::Type::Traits::FiniteElementType::Traits::LocalBasisType::Traits::RangeFieldType, dimR, Dune::FieldVector< T::template Child< 0 >::Type::Traits::FiniteElementType::Traits::LocalBasisType::Traits::RangeFieldType, dimR > > , VectorDiscreteGridFunction< 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 , std::size_t dimR = T::CHILDREN>
void Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::evaluate ( const typename Traits::ElementType &  e,
const typename Traits::DomainType &  x,
typename Traits::RangeType &  y 
) const
inline
template<typename T , typename X , std::size_t dimR = T::CHILDREN>
const Traits::GridViewType& Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::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: