DUNE PDELab (git)

Dune::PDELab::VectorDiscreteGridFunctionGradient< T, X > Class Template Reference

Equivalent of DiscreteGridFunctionGradient for vector-valued functions. More...

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

Public Types

typedef T::GridViewType GridViewType
 Type of the GridView.
 
typedef LeafNodeTag NodeTag
 The type tag that describes a LeafNode.
 

Public Member Functions

 VectorDiscreteGridFunctionGradient (const GFS &gfs, const X &x_)
 Construct a VectorDiscreteGridFunctionGradient. More...
 
 VectorDiscreteGridFunctionGradient (std::shared_ptr< const GFS > gfs, std::shared_ptr< const X > x_)
 Construct a VectorDiscreteGridFunctionGradient. More...
 
const Traits::GridViewType & getGridView () const
 get a reference to the GridView
 
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.
 
void setDataSetType (Output::DataSetType dataSetType)
 Set the data set type of this function.
 

Static Public Attributes

static const bool isLeaf = true
 Mark this class as a leaf in a dune-typetree.
 
static const bool isPower = false
 Mark this class as a non power in the dune-typetree.
 
static const bool isComposite = false
 Mark this class as a non composite in the dune-typetree.
 

Detailed Description

template<typename T, typename X>
class Dune::PDELab::VectorDiscreteGridFunctionGradient< T, X >

Equivalent of DiscreteGridFunctionGradient for vector-valued functions.

Template Parameters
TType of PowerGridFunctionSpace
XType of coefficients vector

Constructor & Destructor Documentation

◆ VectorDiscreteGridFunctionGradient() [1/2]

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

Construct a VectorDiscreteGridFunctionGradient.

Parameters
gfsGridFunctionSpace.
x_Coefficient vector.

◆ VectorDiscreteGridFunctionGradient() [2/2]

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

Construct a VectorDiscreteGridFunctionGradient.

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

Member Function Documentation

◆ evaluate()

void Dune::PDELab::GridFunctionInterface< GridFunctionTraits< T::Traits::GridViewType, T::template Child< 0 >::Type::Traits::FiniteElementType::Traits::LocalBasisType::Traits::RangeFieldType, TypeTree::StaticDegree< T >::value, Dune::FieldMatrix< T::template Child< 0 >::Type::Traits::FiniteElementType::Traits::LocalBasisType::Traits::RangeFieldType, TypeTree::StaticDegree< T >::value, T::template Child< 0 >::Type::Traits::FiniteElementType::Traits::LocalBasisType::Traits::dimDomain > > , VectorDiscreteGridFunctionGradient< 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

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 23, 23:29, 2024)