DUNE PDELab (git)
Uniformly refined linear Lagrange shape functions in 1D. More...
#include <dune/localfunctions/refined/refinedp1/refinedp1localbasis.hh>
Public Types | |
typedef LocalBasisTraits< D, 1, Dune::FieldVector< D, 1 >, R, 1, Dune::FieldVector< R, 1 >, Dune::FieldMatrix< R, 1, 1 > > | Traits |
export type traits for function signature | |
Public Member Functions | |
void | evaluateFunction (const typename Traits::DomainType &in, std::vector< typename Traits::RangeType > &out) const |
Evaluate all shape functions. | |
void | evaluateJacobian (const typename Traits::DomainType &in, std::vector< typename Traits::JacobianType > &out) const |
Evaluate Jacobian of all shape functions. | |
void | partial (const std::array< unsigned int, 1 > &order, const typename Traits::DomainType &in, std::vector< typename Traits::RangeType > &out) const |
Evaluate partial derivatives of all shape functions. | |
Static Protected Member Functions | |
static int | getSubElement (const FieldVector< D, 1 > &global) |
Get the number of the subelement containing a given point. More... | |
static void | getSubElement (const FieldVector< D, 1 > &global, int &subElement, FieldVector< D, 1 > &local) |
Get local coordinates in the subelement. More... | |
Detailed Description
class Dune::RefinedP1LocalBasis< D, R, 1 >
Uniformly refined linear Lagrange shape functions in 1D.
This shape function set mimics 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 ~ (0.5) f_2 ~ (1.0)
- Template Parameters
-
D Type to represent the field in the domain. R Type to represent the field in the range.
Member Function Documentation
◆ getSubElement() [1/2]
|
inlinestaticprotectedinherited |
Get the number of the subelement containing a given point.
The subelements are ordered according to
0 1
|----—:----—|
- Parameters
-
[in] global Coordinates in the reference element
- Returns
- Number of the subtriangle containing
global
References DUNE_THROW.
◆ getSubElement() [2/2]
|
inlinestaticprotectedinherited |
Get local coordinates in the subelement.
- Parameters
-
[in] global Coordinates in the reference element [out] subElement Number of the subelement containing global
[out] local The local coordinates in the subelement
The documentation for this class was generated from the following file:
- dune/localfunctions/refined/refinedp1/refinedp1localbasis.hh