Uniformly refined linear Lagrange shape functions in 1D. 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 void | getSubElement (const FieldVector< D, 1 > &global, int &subElement, FieldVector< D, 1 > &local) |
Get local coordinates in the subtriangle. |
Uniformly refined linear Lagrange shape functions in 1D.
1D IMPLEMENTATION IS NOT TESTED (the LocalElement for 1D does not exist due to lack of P21D elements)
This shape function set mimicks the P1 shape functions that you would get on a uniformly refined grid. Hence these shape functions are only piecewise linear! The data layout is identical to P2 shape functions.
Shape functions like these are necessary for hierarchical error estimators for certain nonlinear problems.
The functions are associated to points by:
f_0 ~ (0.0) f_1 ~ (1.0) f_2 ~ (0.5)
D | Type to represent the field in the domain. |
Dune::RefinedSimplexLocalBasis< D, 1 >::RefinedSimplexLocalBasis | ( | ) | [inline, protected] |
Protected default constructor so this class can only be instantiated as a base class.
static void Dune::RefinedSimplexLocalBasis< D, 1 >::getSubElement | ( | const FieldVector< D, 1 > & | global, | |
int & | subElement, | |||
FieldVector< D, 1 > & | 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 |