#include <ShapeFunction.hpp>
Public Member Functions | |
float_t | value (size_t node, const ublas::fixed_vector< float_t, 2 > &in) const |
ublas::fixed_vector< float_t, 2 > & | gradient (size_t node_index, const ublas::fixed_vector< float_t, 2 > &in, ublas::fixed_vector< float_t, 2 > &out) const |
Static Public Member Functions | |
static size_t | face_node (size_t face, size_t node) |
Bilinear shape function on the square [-1, 1] x [-1, 1] (i.e. 4 element nodes) You will rarely use this class directly, but might plug it into your own FE traits class as shape_function_t.
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 from imaging::ShapeFunction< 4, 2, 2 >.
References imaging::Square2dTransform::face_vertex().
float_t imaging::Bilinear2dShapeFunction::value | ( | size_t | node, | |
const ublas::fixed_vector< float_t, 2 > & | in | |||
) | const |
Returns the value of the shape function corresponding to node_index at in.
Referenced by imaging::Square2dTransform::value().
ublas::fixed_vector< float_t, 2 > & imaging::Bilinear2dShapeFunction::gradient | ( | size_t | node_index, | |
const ublas::fixed_vector< float_t, 2 > & | in, | |||
ublas::fixed_vector< float_t, 2 > & | out | |||
) | const |
Computes the gradient of the shape function corresponding to node_index at in and stores the result in out.
Referenced by imaging::Square2dTransform::derivative().