DiscreteGridFunction for vector-valued functions.
More...
#include <dune/pdelab/gridfunctionspace/gridfunctionspaceutilities.hh>
|
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 GridFunctionTraits< T::Traits::GridViewType, T::template Child< 0 >::Type::Traits::FiniteElementType ::Traits::LocalBasisType::Traits::RangeFieldType, TypeTree::StaticDegree< T >::value, Dune::FieldVector< T::template Child< 0 >::Type::Traits::FiniteElementType ::Traits::LocalBasisType::Traits::RangeFieldType, TypeTree::StaticDegree< T >::value > > ::GridViewType | GridViewType |
| Type of the GridView. More...
|
|
using | Output = typename Base::Output |
|
|
| VectorDiscreteGridFunction (const GFS &gfs, const X &x_, std::size_t start=0) |
| construct More...
|
|
| VectorDiscreteGridFunction (std::shared_ptr< const GFS > gfs, std::shared_ptr< const X > x_, std::size_t start=0) |
| Construct a VectorDiscreteGridFunction. More...
|
|
template<class Remap > |
| VectorDiscreteGridFunction (const GFS &gfs, const X &x_, const Remap &remap_) |
| construct More...
|
|
template<class Remap > |
| VectorDiscreteGridFunction (std::shared_ptr< const GFS > gfs, std::shared_ptr< const X > x_, const Remap &remap_) |
| Construct a VectorDiscreteGridFunction. 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...
|
|
const Traits::GridViewType & | getGridView () const |
| get a reference to the GridView 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...
|
|
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
-
◆ ChildType
template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
◆ GridViewType
typedef GridFunctionTraits< T::Traits::GridViewType, T::template Child< 0 >::Type::Traits::FiniteElementType ::Traits::LocalBasisType::Traits::RangeFieldType, TypeTree::StaticDegree< T >::value, Dune::FieldVector< T::template Child< 0 >::Type::Traits::FiniteElementType ::Traits::LocalBasisType::Traits::RangeFieldType, TypeTree::StaticDegree< T >::value > > ::GridViewType Dune::PDELab::GridFunctionBase< GridFunctionTraits< T::Traits::GridViewType, T::template Child< 0 >::Type::Traits::FiniteElementType ::Traits::LocalBasisType::Traits::RangeFieldType, TypeTree::StaticDegree< T >::value, Dune::FieldVector< T::template Child< 0 >::Type::Traits::FiniteElementType ::Traits::LocalBasisType::Traits::RangeFieldType, TypeTree::StaticDegree< T >::value > > , VectorDiscreteGridFunction< T, X > >::GridViewType |
|
inherited |
◆ ImplementationTag
◆ Output
◆ RF
template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
◆ RT
template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
◆ Traits
template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
◆ VectorDiscreteGridFunction() [1/4]
template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
construct
- Parameters
-
gfs | GridFunctionSpace. |
x_ | Coefficient vector. |
start | Number of first child of gfs to use. |
◆ VectorDiscreteGridFunction() [2/4]
template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
Construct a VectorDiscreteGridFunction.
- Parameters
-
gfs | shared pointer to the GridFunctionsSpace |
x_ | shared pointer to the coefficients vector |
start | Number 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 >
construct
- Parameters
-
gfs | GridFunctionSpace. |
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 >
Construct a VectorDiscreteGridFunction.
- Parameters
-
gfs | shared 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.
◆ dataSetType()
Return the data set type of this function.
◆ evaluate() [1/2]
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] | e | The entity to evaluate on |
[in] | x | The position in entity-local coordinates |
[out] | y | The result of the evaluation |
◆ evaluate() [2/2]
template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
◆ getGridView() [1/2]
const Traits::GridViewType& Dune::PDELab::GridFunctionInterface< GridFunctionTraits< T::Traits::GridViewType, T::template Child< 0 >::Type::Traits::FiniteElementType ::Traits::LocalBasisType::Traits::RangeFieldType, TypeTree::StaticDegree< T >::value, Dune::FieldVector< T::template Child< 0 >::Type::Traits::FiniteElementType ::Traits::LocalBasisType::Traits::RangeFieldType, TypeTree::StaticDegree< T >::value > > , VectorDiscreteGridFunction< T, X > >::getGridView |
|
inlineinherited |
get a reference to the GridView
◆ getGridView() [2/2]
template<typename T , typename X , std::size_t dimR = TypeTree::StaticDegree<T>::value>
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: