dune-localfunctions  2.2.1
Protected Member Functions | Static Protected Member Functions | List of all members
Dune::RefinedSimplexLocalBasis< D, 2 > Class Template Reference

Base class for LocalBasis classes based on uniform refinement in 2D; provides numbering and local coordinates of subelements. More...

#include <dune/localfunctions/refined/common/refinedsimplexlocalbasis.hh>

Inheritance diagram for Dune::RefinedSimplexLocalBasis< D, 2 >:
Dune::RefinedP1LocalBasis< D, R, 2 >

Protected Member Functions

 RefinedSimplexLocalBasis ()
 Protected default constructor so this class can only be instantiated as a base class. More...
 

Static Protected Member Functions

static int getSubElement (const FieldVector< D, 2 > &global)
 Get the number of the subtriangle containing a given point. More...
 
static void getSubElement (const FieldVector< D, 2 > &global, int &subElement, FieldVector< D, 2 > &local)
 Get local coordinates in the subtriangle. More...
 

Detailed Description

template<class D>
class Dune::RefinedSimplexLocalBasis< D, 2 >

Base class for LocalBasis classes based on uniform refinement in 2D; provides numbering and local coordinates of subelements.

Shape functions like these are necessary for hierarchical error estimators for certain nonlinear problems.

Template Parameters
DType to represent the field in the domain.

Constructor & Destructor Documentation

template<class D >
Dune::RefinedSimplexLocalBasis< D, 2 >::RefinedSimplexLocalBasis ( )
inlineprotected

Protected default constructor so this class can only be instantiated as a base class.

Member Function Documentation

template<class D >
static int Dune::RefinedSimplexLocalBasis< D, 2 >::getSubElement ( const FieldVector< D, 2 > &  global)
inlinestaticprotected

Get the number of the subtriangle containing a given point.

The triangles are ordered according to

|\
|2\
|--\
|\3|\
|0\|1\
------ 
Parameters
[in]globalCoordinates in the reference triangle
Returns
Number of the subtriangle containing global
template<class D >
static void Dune::RefinedSimplexLocalBasis< D, 2 >::getSubElement ( const FieldVector< D, 2 > &  global,
int &  subElement,
FieldVector< D, 2 > &  local 
)
inlinestaticprotected

Get local coordinates in the subtriangle.

Parameters
[in]globalCoordinates in the reference triangle
[out]subElementNumber of the subtriangle containing global
[out]localThe local coordinates in the subtriangle

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