- Home
- About DUNE
- Download
- Documentation
- Community
- Development
#include <cubeshapefunctions.hh>
Let i=(i_{dim-1},...,i_1,i_0) be the binary representation of the shape function number. Then the corresponding shape function can be written as
phi_i (x) = {j=0}^{dim-1} [ 1-i_j + x_j*(2*i_j-1) ]
and its derivative is
d/dx_k phi_i (x) = (2*i_k-1) * {j!=k} [ 1-i_j + x_j*(2*i_j-1) ]
The coefficients a_{ij} = 1-i_j and b_{ij} = 2*i_j-1 are precomputed.
Public Member Functions | |
| P1CubeShapeFunction (int i) | |
| make a shape function object | |
| P1CubeShapeFunction () | |
| must be defaultconstructible | |
| ResultType | evaluateFunction (int comp, const FieldVector< CoordType, d > &x) const |
| evaluate shape function in local coordinates | |
| ResultType | evaluateDerivative (int comp, int dir, const FieldVector< CoordType, d > &x) const |
| evaluate gradient in local coordinates | |
| int | localindex (int comp) const |
| consecutive number of associated dof within element | |
| int | codim () const |
| codim of associated dof | |
| int | entity () const |
| entity (of codim) of associated dof | |
| int | entityindex () const |
| consecutive number of dof within entity | |
|
const FieldVector< CoordType, dim > & | position () const |
| interpolation point associated with shape function | |