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

Select certain component(s) of a gridfunction. More...

#include <dune/pdelab/function/selectcomponent.hh>

Inheritance diagram for Dune::PDELab::SelectComponentGridFunctionAdapter< GF, dimR >:
Inheritance graph

Public Types

typedef GridFunctionTraits< typename GF::Traits::GridViewType, typename GF::Traits::RangeFieldType, dimR, FieldVector< typename GF::Traits::RangeFieldType, dimR > > Traits
 
typedef GridFunctionTag ImplementationTag
 
typedef T::GridViewType GridViewType
 Type of the GridView.
 
using Output = typename Base::Output
 

Public Member Functions

 SelectComponentGridFunctionAdapter (GF &gf_, std::size_t first)
 construct with a consecutive range of indices
 
 SelectComponentGridFunctionAdapter (GF &gf_, const std::vector< std::size_t > remap_)
 construct with a full index map
 
void evaluate (const typename Traits::ElementType &e, const typename Traits::DomainType &x, typename Traits::RangeType &y) const
 
const Traits::GridViewTypegetGridView () const
 
template<typename Time >
void setTime (Time time)
 
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.
 

Detailed Description

template<typename GF, std::size_t dimR = 1>
class Dune::PDELab::SelectComponentGridFunctionAdapter< GF, dimR >

Select certain component(s) of a gridfunction.

Template Parameters
GFType for the GridFunction
dimRNumber of components of the resulting GridFunction
See also
SelectComponentAdaptor, BoundaryGridFunctionSelectComponentAdaptor.

Member Typedef Documentation

◆ 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

◆ Traits

template<typename GF , std::size_t dimR = 1>
typedef GridFunctionTraits< typename GF::Traits::GridViewType, typename GF::Traits::RangeFieldType, dimR, FieldVector<typename GF::Traits::RangeFieldType, dimR> > Dune::PDELab::SelectComponentGridFunctionAdapter< GF, dimR >::Traits

Constructor & Destructor Documentation

◆ SelectComponentGridFunctionAdapter() [1/2]

template<typename GF , std::size_t dimR = 1>
Dune::PDELab::SelectComponentGridFunctionAdapter< GF, dimR >::SelectComponentGridFunctionAdapter ( GF &  gf_,
std::size_t  first 
)
inline

construct with a consecutive range of indices

◆ SelectComponentGridFunctionAdapter() [2/2]

template<typename GF , std::size_t dimR = 1>
Dune::PDELab::SelectComponentGridFunctionAdapter< GF, dimR >::SelectComponentGridFunctionAdapter ( GF &  gf_,
const std::vector< std::size_t >  remap_ 
)
inline

construct with a full index map

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 GF , std::size_t dimR = 1>
void Dune::PDELab::SelectComponentGridFunctionAdapter< GF, dimR >::evaluate ( const typename Traits::ElementType e,
const typename Traits::DomainType x,
typename Traits::RangeType y 
) const
inline

◆ getGridView()

template<typename GF , std::size_t dimR = 1>
const Traits::GridViewType & Dune::PDELab::SelectComponentGridFunctionAdapter< GF, dimR >::getGridView ( ) const
inline

◆ setDataSetType()

void Dune::PDELab::GridFunctionOutputParameters::setDataSetType ( Output::DataSetType  dataSetType)
inlineinherited

Set the data set type of this function.

◆ setTime()

template<typename GF , std::size_t dimR = 1>
template<typename Time >
void Dune::PDELab::SelectComponentGridFunctionAdapter< GF, dimR >::setTime ( Time  time)
inline

The documentation for this class was generated from the following file: