dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
Dune::PDELab::DiscreteGridFunctionGradient< T, X > Class Template Reference

convert a single component function space with a grid function representing the gradient More...

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

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

Public Types

typedef GridFunctionTraits< typename GFS::Traits::GridViewType, typename LBTraits::RangeFieldType, LBTraits::dimDomain, FieldVector< typename LBTraits::RangeFieldType, LBTraits::dimDomain > > Traits
 
typedef GridFunctionTag ImplementationTag
 
typedef T::GridViewType GridViewType
 Type of the GridView. More...
 
using Output = typename Base::Output
 

Public Member Functions

 DiscreteGridFunctionGradient (const GFS &gfs, const X &x_)
 Construct a DiscreteGridFunctionGradient. More...
 
 DiscreteGridFunctionGradient (std::shared_ptr< const GFS > gfs, std::shared_ptr< const X > x_)
 Construct a DiscreteGridFunctionGradient. More...
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 
const Traits::GridViewTypegetGridView () 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>
class Dune::PDELab::DiscreteGridFunctionGradient< T, X >

convert a single component function space with a grid function representing the gradient

The function values should be single-component vectors. The Gradien will be a dimDomain-component function.

Template Parameters
TType of GridFunctionSpace. The LocalBasis must provide the evaluateJacobian() method.
XType of coefficients vector

Member Typedef Documentation

◆ GridViewType

typedef T::GridViewType Dune::PDELab::GridFunctionBase< GridFunctionTraits< T::Traits::GridViewType, T::Traits::FiniteElementType::Traits::LocalBasisType ::Traits::RangeFieldType, T::Traits::FiniteElementType::Traits::LocalBasisType::Traits ::dimDomain, FieldVector< T::Traits::FiniteElementType::Traits ::LocalBasisType::Traits::RangeFieldType, T::Traits::FiniteElementType::Traits::LocalBasisType::Traits ::dimDomain > > , DiscreteGridFunctionGradient< T, X > >::GridViewType
inherited

Type of the GridView.

◆ ImplementationTag

typedef GridFunctionTag Dune::PDELab::GridFunctionBase< GridFunctionTraits< T::Traits::GridViewType, T::Traits::FiniteElementType::Traits::LocalBasisType ::Traits::RangeFieldType, T::Traits::FiniteElementType::Traits::LocalBasisType::Traits ::dimDomain, FieldVector< T::Traits::FiniteElementType::Traits ::LocalBasisType::Traits::RangeFieldType, T::Traits::FiniteElementType::Traits::LocalBasisType::Traits ::dimDomain > > , DiscreteGridFunctionGradient< T, X > >::ImplementationTag
inherited

◆ Output

using Dune::PDELab::GridFunctionBase< GridFunctionTraits< T::Traits::GridViewType, T::Traits::FiniteElementType::Traits::LocalBasisType ::Traits::RangeFieldType, T::Traits::FiniteElementType::Traits::LocalBasisType::Traits ::dimDomain, FieldVector< T::Traits::FiniteElementType::Traits ::LocalBasisType::Traits::RangeFieldType, T::Traits::FiniteElementType::Traits::LocalBasisType::Traits ::dimDomain > > , DiscreteGridFunctionGradient< T, X > >::Output = typename Base::Output
inherited

◆ Traits

template<typename T , typename X >
typedef GridFunctionTraits< typename GFS::Traits::GridViewType, typename LBTraits::RangeFieldType, LBTraits::dimDomain, FieldVector< typename LBTraits::RangeFieldType, LBTraits::dimDomain> > Dune::PDELab::DiscreteGridFunctionGradient< T, X >::Traits

Constructor & Destructor Documentation

◆ DiscreteGridFunctionGradient() [1/2]

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

Construct a DiscreteGridFunctionGradient.

Parameters
gfsThe GridFunctionsSpace
x_The coefficients vector

◆ DiscreteGridFunctionGradient() [2/2]

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

Construct a DiscreteGridFunctionGradient.

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

Member Function Documentation

◆ dataSetType()

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

Return the data set type of this function.

◆ evaluate() [1/2]

template<class T , class Imp >
void Dune::PDELab::GridFunctionInterface< T, Imp >::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

◆ evaluate() [2/2]

template<typename T , typename X >
void Dune::PDELab::DiscreteGridFunctionGradient< T, X >::evaluate ( const typename Traits::ElementType e,
const typename Traits::DomainType x,
typename Traits::RangeType y 
) const
inline

◆ getGridView()

template<typename T , typename X >
const Traits::GridViewType & Dune::PDELab::DiscreteGridFunctionGradient< T, X >::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: