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

Public Member Functions

 VectorDiscreteGridFunction (const GFS &gfs, const X &x_, std::size_t start=0)
 construct
 
 VectorDiscreteGridFunction (std::shared_ptr< const GFS > gfs, std::shared_ptr< const X > x_, std::size_t start=0)
 Construct a VectorDiscreteGridFunction.
 
template<class Remap >
 VectorDiscreteGridFunction (const GFS &gfs, const X &x_, const Remap &remap_)
 construct
 
template<class Remap >
 VectorDiscreteGridFunction (std::shared_ptr< const GFS > gfs, std::shared_ptr< const X > x_, const Remap &remap_)
 Construct a VectorDiscreteGridFunction.
 
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.
 

Static Public Member Functions

static constexpr auto degree ()
 

Static Public Attributes

static const bool isLeaf
 
static const bool isPower
 
static const bool isComposite
 

Detailed Description

template<typename T, typename X, std::size_t dimR = TypeTree::StaticDegree<T>::value>
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

◆ ChildType

template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
typedef T::template Child<0>::Type Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::ChildType

◆ GridViewType

template<class T , class Imp >
typedef T::GridViewType Dune::PDELab::GridFunctionBase< T, Imp >::GridViewType
inherited

Type of the GridView.

◆ ImplementationTag

template<class T , class Imp >
typedef GridFunctionTag Dune::PDELab::GridFunctionBase< T, Imp >::ImplementationTag
inherited

◆ Output

template<class T , class Imp >
using Dune::PDELab::GridFunctionBase< T, Imp >::Output = typename Base::Output
inherited

◆ RF

template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
typedef ChildType::Traits::FiniteElementType::Traits::LocalBasisType::Traits::RangeFieldType Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::RF

◆ RT

template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
typedef ChildType::Traits::FiniteElementType::Traits::LocalBasisType::Traits::RangeType Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::RT

◆ Traits

template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
typedef BaseT::Traits Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::Traits

Constructor & Destructor Documentation

◆ VectorDiscreteGridFunction() [1/4]

template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
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.

◆ VectorDiscreteGridFunction() [2/4]

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

Construct a VectorDiscreteGridFunction.

Parameters
gfsshared pointer to the GridFunctionsSpace
x_shared pointer to the coefficients vector
startNumber of first child of gfs to use.

◆ VectorDiscreteGridFunction() [3/4]

template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
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.

◆ VectorDiscreteGridFunction() [4/4]

template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
template<class Remap >
Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::VectorDiscreteGridFunction ( std::shared_ptr< const GFS >  gfs,
std::shared_ptr< const X >  x_,
const Remap &  remap_ 
)
inline

Construct a VectorDiscreteGridFunction.

Parameters
gfsshared pointer to the GridFunctionsSpace
x_shared pointer to the coefficients 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

◆ dataSetType()

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

Return the data set type of this function.

◆ evaluate()

template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
void Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::evaluate ( const typename Traits::ElementType &  e,
const typename Traits::DomainType &  x,
typename Traits::RangeType &  y 
) const
inline

◆ getGridView()

template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
const Traits::GridViewType & Dune::PDELab::VectorDiscreteGridFunction< T, X, dimR >::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: