dune-pdelab 2.9
Loading...
Searching...
No Matches
Dune::PDELab::DifferenceAdapter< T1, T2 > Class Template Reference

Adapter returning f1(x)-f2(x) for two given grid functions. More...

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

Inheritance diagram for Dune::PDELab::DifferenceAdapter< T1, T2 >:
Inheritance graph

Public Types

typedef Dune::PDELab::GridFunctionTraits< typename T1::Traits::GridViewType, typename T1::Traits::RangeFieldType, 1, Dune::FieldVector< typename T1::Traits::RangeFieldType, 1 > > Traits
 
typedef GridFunctionTag ImplementationTag
 
typedef T::GridViewType GridViewType
 Type of the GridView.
 
using Output = typename Base::Output
 
typedef LeafNodeTag NodeTag
 

Public Member Functions

 DifferenceAdapter (const T1 &t1_, const T2 &t2_)
 constructor
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 Evaluate the GridFunction at given position.
 
const Traits::GridViewTypegetGridView () const
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 Evaluate the GridFunction at given position.
 
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
 
static const std::size_t CHILDREN
 

Detailed Description

template<typename T1, typename T2>
class Dune::PDELab::DifferenceAdapter< T1, T2 >

Adapter returning f1(x)-f2(x) for two given grid functions.

Template Parameters
T1a grid function type
T2a grid function type

Member Typedef Documentation

◆ GridViewType

typedef T::GridViewType Dune::PDELab::GridFunctionBase< Dune::PDELab::GridFunctionTraits< T1::Traits::GridViewType, T1::Traits::RangeFieldType, 1, Dune::FieldVector< T1::Traits::RangeFieldType, 1 > > , DifferenceAdapter< T1, T2 > >::GridViewType
inherited

Type of the GridView.

◆ ImplementationTag

typedef GridFunctionTag Dune::PDELab::GridFunctionBase< Dune::PDELab::GridFunctionTraits< T1::Traits::GridViewType, T1::Traits::RangeFieldType, 1, Dune::FieldVector< T1::Traits::RangeFieldType, 1 > > , DifferenceAdapter< T1, T2 > >::ImplementationTag
inherited

◆ Output

using Dune::PDELab::GridFunctionBase< Dune::PDELab::GridFunctionTraits< T1::Traits::GridViewType, T1::Traits::RangeFieldType, 1, Dune::FieldVector< T1::Traits::RangeFieldType, 1 > > , DifferenceAdapter< T1, T2 > >::Output = typename Base::Output
inherited

◆ Traits

template<typename T1 , typename T2 >
typedef Dune::PDELab::GridFunctionTraits<typename T1::Traits::GridViewType, typename T1::Traits::RangeFieldType, 1,Dune::FieldVector<typename T1::Traits::RangeFieldType,1> > Dune::PDELab::DifferenceAdapter< T1, T2 >::Traits

Constructor & Destructor Documentation

◆ DifferenceAdapter()

template<typename T1 , typename T2 >
Dune::PDELab::DifferenceAdapter< T1, T2 >::DifferenceAdapter ( const T1 &  t1_,
const T2 &  t2_ 
)
inline

constructor

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 T1 , typename T2 >
void Dune::PDELab::DifferenceAdapter< T1, T2 >::evaluate ( const typename Traits::ElementType e,
const typename Traits::DomainType x,
typename Traits::RangeType y 
) const
inline

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

◆ getGridView()

template<typename T1 , typename T2 >
const Traits::GridViewType & Dune::PDELab::DifferenceAdapter< T1, T2 >::getGridView ( ) const
inline

◆ 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: