Dune::RefinedSimplexLocalBasis< D, 2 > Class Template Reference

Uniformly refined constant shape functions on the triangle. More...

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

Inheritance diagram for Dune::RefinedSimplexLocalBasis< D, 2 >:
Inheritance graph

List of all members.

Protected Member Functions

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

Static Protected Member Functions

static int getSubElement (const FieldVector< D, 2 > &global)
 Get local coordinates in the subtriangle.
static void getSubElement (const FieldVector< D, 2 > &global, int &subElement, FieldVector< D, 2 > &local)
 Get local coordinates in the subtriangle.

Detailed Description

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

Uniformly refined constant shape functions on the triangle.

This shape function set mimicks the P0 shape functions that you would get on a uniformly refined grid. Hence these shape functions are only piecewise constant!

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

The functions are associated with the simplices having the following centers:

f_0 ~ (1/6, 1/6) f_1 ~ (4/6, 1/6) f_2 ~ (1/6, 4/6) f_3 ~ (2/6, 2/6)

Template Parameters:
D Type to represent the field in the domain.

Constructor & Destructor Documentation

template<class D >
Dune::RefinedSimplexLocalBasis< D, 2 >::RefinedSimplexLocalBasis (  )  [inline, protected]

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


Member Function Documentation

template<class D >
static void Dune::RefinedSimplexLocalBasis< D, 2 >::getSubElement ( const FieldVector< D, 2 > &  global,
int &  subElement,
FieldVector< D, 2 > &  local 
) [inline, static, protected]

Get local coordinates in the subtriangle.

Parameters:
[in] global Coordinates in the reference triangle
[out] subElement Which of the four subtriangles is global in?
[out] local The local coordinates in the subtriangle
template<class D >
static int Dune::RefinedSimplexLocalBasis< D, 2 >::getSubElement ( const FieldVector< D, 2 > &  global  )  [inline, static, protected]

Get local coordinates in the subtriangle.

The triangles are ordered according to

|\ |2\ |--\ ||\ |0\|1\ ------

Parameters:
[in] global Coordinates in the reference triangle
Returns:
Number of the subtriangles containing in

The documentation for this class was generated from the following file:
Generated on Sat Apr 24 11:15:39 2010 for dune-localfunctions by  doxygen 1.6.3