#include <ShapeFunction.hpp>
Public Member Functions | |
float_t | value (size_t node_index, const ublas::fixed_vector< float_t, N > &in) const |
ublas::fixed_vector< float_t, N > & | gradient (size_t node_index, const ublas::fixed_vector< float_t, N > &in, ublas::fixed_vector< float_t, N > &out) const |
Static Public Member Functions | |
static size_t | face_node (size_t face, size_t node) |
Static Public Attributes | |
static const size_t | n_element_nodes = N_NODES |
static const size_t | n_shape_face_nodes = N_FACE_NODES |
All implementations of shape functions on reference elements should be derived from this class. The template parameters N and N_NODES refer to the dimension of the reference element and to the number of nodes nodes on the element respectively.
static size_t imaging::ShapeFunction< N_NODES, N_FACE_NODES, N >::face_node | ( | size_t | face, | |
size_t | node | |||
) | [static] |
Returns the node index (on the element) of the node determined by face_index and face_node_index (on the boundary reference element). E.g. the vertex 1 (there are only vertices 0 and 1 on the boundary reference element) on the face 2 of the square reference element (there are 4 faces with indices from zero to 3) is mapped to vertex 3 on the reference element.
Reimplemented in imaging::Bilinear2dShapeFunction, imaging::Linear2dShapeFunction, imaging::Linear3dShapeFunction, and imaging::Linear1dShapeFunction.
float_t imaging::ShapeFunction< N_NODES, N_FACE_NODES, N >::value | ( | size_t | node_index, | |
const ublas::fixed_vector< float_t, N > & | in | |||
) | const |
Returns the value of the shape function corresponding to node_index at in.
ublas::fixed_vector<float_t, N>& imaging::ShapeFunction< N_NODES, N_FACE_NODES, N >::gradient | ( | size_t | node_index, | |
const ublas::fixed_vector< float_t, N > & | in, | |||
ublas::fixed_vector< float_t, N > & | out | |||
) | const |
Computes the gradient of the shape function corresponding to node_index at in and stores the result in out.
const size_t imaging::ShapeFunction< N_NODES, N_FACE_NODES, N >::n_element_nodes = N_NODES [static] |
The number of nodes per element for this shape function.
const size_t imaging::ShapeFunction< N_NODES, N_FACE_NODES, N >::n_shape_face_nodes = N_FACE_NODES [static] |
The number of nodes per face of the reference element of this shape function.