Uniformly refined constant shape functions on the triangle. More...
#include <dune/localfunctions/refined/common/refinedsimplexlocalbasis.hh>
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. |
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)
D | Type to represent the field in the domain. |
Dune::RefinedSimplexLocalBasis< D, 2 >::RefinedSimplexLocalBasis | ( | ) | [inline, protected] |
Protected default constructor so this class can only be instantiated as a base class.
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.
[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 |
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\ ------
[in] | global | Coordinates in the reference triangle |