Shape function space for a linear tetrahedron, obtained by a pushforward of the canonical affine shape functions. More...
#include <ElemUtil.hpp>
Public Member Functions | |
LinearTet (const std::vector< CartVect > &vertices) | |
LinearTet () | |
virtual | ~LinearTet () |
virtual CartVect | evaluate (const CartVect &xi) const |
Evaluate the map on \(x_i\) (calculate \(\vec x = F($\vec \xi)\) ) More... | |
virtual CartVect | ievaluate (const CartVect &x, double tol=1e-6, const CartVect &x0=CartVect(0.0)) const |
Evaluate the inverse map (calculate \(\vec \xi = F^-1($\vec x)\) to given tolerance) More... | |
virtual Matrix3 | jacobian (const CartVect &) const |
Evaluate the map's Jacobi matrix. More... | |
virtual Matrix3 | ijacobian (const CartVect &) const |
Evaluate the inverse of the Jacobi matrix. More... | |
virtual double | det_jacobian (const CartVect &) const |
Evaluate the determinate of the Jacobi matrix. More... | |
virtual double | det_ijacobian (const CartVect &) const |
Evaluate the determinate of the inverse Jacobi matrix. More... | |
virtual double | evaluate_scalar_field (const CartVect &xi, const double *field_vertex_values) const |
Evaluate a scalar field at a point given field values at the vertices. More... | |
virtual double | integrate_scalar_field (const double *field_vertex_values) const |
Integrate a scalar field over the element given field values at the vertices. More... | |
virtual void | set_vertices (const std::vector< CartVect > &v) |
Set vertices. More... | |
virtual bool | inside_nat_space (const CartVect &xi, double &tol) const |
decide if within the natural param space, with a tolerance More... | |
Public Member Functions inherited from moab::Element::Map | |
Map (const std::vector< CartVect > &v) | |
Construct a Map defined by the given std::vector of vertices. More... | |
Map (const unsigned int n) | |
Construct a Map defined by n vertices. More... | |
virtual | ~Map () |
unsigned int | size () |
Size of the vertices vector. More... | |
const std::vector< CartVect > & | get_vertices () |
Retrieve vertices. More... | |
virtual bool | inside_box (const CartVect &xi, double &tol) const |
Protected Attributes | |
Matrix3 | T |
Matrix3 | T_inverse |
double | det_T |
double | det_T_inverse |
Protected Attributes inherited from moab::Element::Map | |
std::vector< CartVect > | vertex |
Static Protected Attributes | |
static const double | corner [4][3] = { { 0, 0, 0 }, { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } } |
Shape function space for a linear tetrahedron, obtained by a pushforward of the canonical affine shape functions.
Definition at line 197 of file ElemUtil.hpp.
|
inline |
Definition at line 200 of file ElemUtil.hpp.
References set_vertices().
moab::Element::LinearTet::LinearTet | ( | ) |
Definition at line 892 of file ElemUtil.cpp.
|
virtual |
Definition at line 894 of file ElemUtil.cpp.
|
inlinevirtual |
Evaluate the determinate of the inverse Jacobi matrix.
Reimplemented from moab::Element::Map.
Definition at line 224 of file ElemUtil.hpp.
References det_T_inverse.
|
inlinevirtual |
Evaluate the determinate of the Jacobi matrix.
Reimplemented from moab::Element::Map.
Definition at line 220 of file ElemUtil.hpp.
References det_T.
Evaluate the map on \(x_i\) (calculate \(\vec x = F($\vec \xi)\) )
Implements moab::Element::Map.
Definition at line 207 of file ElemUtil.hpp.
References T.
|
virtual |
Evaluate a scalar field at a point given field values at the vertices.
Implements moab::Element::Map.
Definition at line 907 of file ElemUtil.cpp.
|
virtual |
Evaluate the inverse map (calculate \(\vec \xi = F^-1($\vec x)\) to given tolerance)
Reimplemented from moab::Element::Map.
Definition at line 918 of file ElemUtil.cpp.
References T_inverse.
Referenced by moab::Coupler::nat_param().
Evaluate the inverse of the Jacobi matrix.
Reimplemented from moab::Element::Map.
Definition at line 216 of file ElemUtil.hpp.
References T_inverse.
|
virtual |
decide if within the natural param space, with a tolerance
Implements moab::Element::Map.
Definition at line 933 of file ElemUtil.cpp.
Referenced by moab::Coupler::nat_param().
|
virtual |
Integrate a scalar field over the element given field values at the vertices.
Implements moab::Element::Map.
Definition at line 923 of file ElemUtil.cpp.
References det_T.
Evaluate the map's Jacobi matrix.
Implements moab::Element::Map.
Definition at line 212 of file ElemUtil.hpp.
References T.
|
virtual |
Set vertices.
Reimplemented from moab::Element::Map.
Definition at line 896 of file ElemUtil.cpp.
References det_T, det_T_inverse, moab::Matrix3::determinant(), moab::Matrix3::inverse(), moab::Element::Map::set_vertices(), T, and T_inverse.
Referenced by LinearTet().
|
staticprotected |
Definition at line 238 of file ElemUtil.hpp.
|
protected |
Definition at line 240 of file ElemUtil.hpp.
Referenced by det_jacobian(), integrate_scalar_field(), and set_vertices().
|
protected |
Definition at line 240 of file ElemUtil.hpp.
Referenced by det_ijacobian(), and set_vertices().
|
protected |
Definition at line 239 of file ElemUtil.hpp.
Referenced by evaluate(), jacobian(), and set_vertices().
|
protected |
Definition at line 239 of file ElemUtil.hpp.
Referenced by ievaluate(), ijacobian(), and set_vertices().