version 3.11-dev
Loading...
Searching...
No Matches

DOF index and position helper for order-2 Lagrange discretizations. More...

#include <dumux/discretization/pq2/dofhelper.hh>

Inheritance diagram for Dumux::PQ2LagrangeDofHelper< GridView >:

Description

template<class GridView>
struct Dumux::PQ2LagrangeDofHelper< GridView >

For order 2, every sub-entity carries exactly one DOF so no orientation permutation is needed: dofIndex simply returns mapper.subIndex(...).

Template Parameters
GridViewThe Dune grid view type.

Public Types

using Scalar = typename GridView::ctype
using GlobalPosition = Dune::FieldVector<Scalar, GridView::dimensionworld>

Static Public Member Functions

template<class DofMapper, class Element, class LocalKey, class IdSet>
static std::size_t dofIndex (const DofMapper &m, const Element &e, const LocalKey &lk, const IdSet &)
template<class LocalKey>
static auto localDofOnIntersection (Dune::GeometryType type, unsigned int iIdx, const LocalKey &localKey)
 Returns true if the local dof with a given local key is on the intersection with index iIdx.
template<class ElemDisc>
static auto localDofs (const ElemDisc &elemDisc)
 Iterator range over all local dofs on an element.
template<class ElemDisc, class BoundaryFace>
static auto localDofsOnBoundaryFace (const ElemDisc &elemDisc, const BoundaryFace &boundaryFace)
 Iterator range over all local dofs on a given boundary face. Uses a filter over all local dofs via localDofOnIntersection.
template<class DofMapper, class LocalKey>
static auto dofIndex (const DofMapper &dofMapper, const Element &element, const LocalKey &localKey)
 global index of dof
template<class Geometry, class LocalKey>
static GlobalPosition dofPosition (const Geometry &geo, const LocalKey &localKey)
 global dof position
template<class LocalKey>
static Element::Geometry::LocalCoordinate localDofPosition (Dune::GeometryType type, const LocalKey &localKey)
 local dof position

Static Public Attributes

static constexpr int dim = GridView::dimension

Member Typedef Documentation

◆ GlobalPosition

template<class GridView>
using Dumux::PQ2LagrangeDofHelper< GridView >::GlobalPosition = Dune::FieldVector<Scalar, GridView::dimensionworld>

◆ Scalar

template<class GridView>
using Dumux::PQ2LagrangeDofHelper< GridView >::Scalar = typename GridView::ctype

Member Function Documentation

◆ dofIndex() [1/2]

template<class GridView>
template<class DofMapper, class LocalKey>
auto Dumux::Experimental::FEDofHelper< GridView >::dofIndex ( const DofMapper & dofMapper,
const Element & element,
const LocalKey & localKey )
inlinestaticinherited

◆ dofIndex() [2/2]

template<class GridView>
template<class DofMapper, class Element, class LocalKey, class IdSet>
std::size_t Dumux::PQ2LagrangeDofHelper< GridView >::dofIndex ( const DofMapper & m,
const Element & e,
const LocalKey & lk,
const IdSet &  )
inlinestatic

Global DOF index for the given local key. The id-set argument is accepted but ignored (no orientation needed for k=2).

◆ dofPosition()

template<class GridView>
template<class Geometry, class LocalKey>
GlobalPosition Dumux::Experimental::FEDofHelper< GridView >::dofPosition ( const Geometry & geo,
const LocalKey & localKey )
inlinestaticinherited

◆ localDofOnIntersection()

template<class GridView>
template<class LocalKey>
auto Dumux::Experimental::FEDofHelper< GridView >::localDofOnIntersection ( Dune::GeometryType type,
unsigned int iIdx,
const LocalKey & localKey )
inlinestaticinherited

◆ localDofPosition()

template<class GridView>
template<class LocalKey>
Element::Geometry::LocalCoordinate Dumux::Experimental::FEDofHelper< GridView >::localDofPosition ( Dune::GeometryType type,
const LocalKey & localKey )
inlinestaticinherited

◆ localDofs()

template<class GridView>
template<class ElemDisc>
auto Dumux::Experimental::FEDofHelper< GridView >::localDofs ( const ElemDisc & elemDisc)
inlinestaticinherited
Parameters
elemDiscthe element discretization (must be bound)

◆ localDofsOnBoundaryFace()

template<class GridView>
template<class ElemDisc, class BoundaryFace>
auto Dumux::Experimental::FEDofHelper< GridView >::localDofsOnBoundaryFace ( const ElemDisc & elemDisc,
const BoundaryFace & boundaryFace )
inlinestaticinherited
Parameters
elemDiscthe element discretization (must be bound)
boundaryFacethe boundary face

Member Data Documentation

◆ dim

template<class GridView>
int Dumux::PQ2LagrangeDofHelper< GridView >::dim = GridView::dimension
staticconstexpr

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