Shape function space for trilinear hexahedron, obtained by a pushforward of the canonical linear (affine) functions. More...
#include <ElemUtil.hpp>
Public Member Functions | |
LinearHex (const std::vector< CartVect > &vertices) | |
LinearHex () | |
virtual | ~LinearHex () |
virtual CartVect | evaluate (const CartVect &xi) const |
Evaluate the map on \(x_i\) (calculate \(\vec x = F($\vec \xi)\) ) More... | |
virtual bool | inside_nat_space (const CartVect &xi, double &tol) const |
decide if within the natural param space, with a tolerance More... | |
virtual Matrix3 | jacobian (const CartVect &xi) const |
Evaluate the map's 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... | |
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 () |
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 | ijacobian (const CartVect &xi) const |
Evaluate the inverse of the Jacobi matrix. More... | |
virtual double | det_jacobian (const CartVect &xi) const |
Evaluate the determinate of the Jacobi matrix. More... | |
virtual double | det_ijacobian (const CartVect &xi) const |
Evaluate the determinate of the inverse Jacobi matrix. More... | |
unsigned int | size () |
Size of the vertices vector. More... | |
const std::vector< CartVect > & | get_vertices () |
Retrieve vertices. More... | |
virtual void | set_vertices (const std::vector< CartVect > &v) |
Set vertices. More... | |
virtual bool | inside_box (const CartVect &xi, double &tol) const |
Static Protected Attributes | |
static const double | corner [8][3] |
static const double | gauss [2][2] = { { 1.0, -0.5773502691 }, { 1.0, 0.5773502691 } } |
static const unsigned int | corner_count = 8 |
static const unsigned int | gauss_count = 2 |
Additional Inherited Members | |
Protected Attributes inherited from moab::Element::Map | |
std::vector< CartVect > | vertex |
Shape function space for trilinear hexahedron, obtained by a pushforward of the canonical linear (affine) functions.
Definition at line 146 of file ElemUtil.hpp.
|
inline |
Definition at line 149 of file ElemUtil.hpp.
moab::Element::LinearHex::LinearHex | ( | ) |
Definition at line 685 of file ElemUtil.cpp.
|
virtual |
Definition at line 687 of file ElemUtil.cpp.
Evaluate the map on \(x_i\) (calculate \(\vec x = F($\vec \xi)\) )
Implements moab::Element::Map.
Definition at line 699 of file ElemUtil.cpp.
References corner.
|
virtual |
Evaluate a scalar field at a point given field values at the vertices.
Implements moab::Element::Map.
Definition at line 736 of file ElemUtil.cpp.
References corner.
Referenced by integrate_scalar_field().
|
virtual |
decide if within the natural param space, with a tolerance
Implements moab::Element::Map.
Definition at line 772 of file ElemUtil.cpp.
Referenced by moab::Coupler::nat_param(), and test_hex_nat_coords().
|
virtual |
Integrate a scalar field over the element given field values at the vertices.
Implements moab::Element::Map.
Definition at line 749 of file ElemUtil.cpp.
References moab::Element::Map::det_jacobian(), evaluate_scalar_field(), gauss, and gauss_count.
Referenced by integrate_scalar_field_test().
Evaluate the map's Jacobi matrix.
Implements moab::Element::Map.
Definition at line 712 of file ElemUtil.cpp.
References corner.
|
staticprotected |
Definition at line 163 of file ElemUtil.hpp.
Referenced by evaluate(), evaluate_scalar_field(), and jacobian().
|
staticprotected |
Definition at line 165 of file ElemUtil.hpp.
|
staticprotected |
Definition at line 164 of file ElemUtil.hpp.
Referenced by integrate_scalar_field().
|
staticprotected |
Definition at line 166 of file ElemUtil.hpp.
Referenced by integrate_scalar_field().