Shape function space for linear triangle, similar to linear tet. More...
#include <ElemUtil.hpp>
Inheritance diagram for moab::Element::LinearTri:
Collaboration diagram for moab::Element::LinearTri:Public Member Functions | |
| LinearTri (const std::vector< CartVect > &vertices) | |
| LinearTri () | |
| virtual | ~LinearTri () |
| 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 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... | |
| 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 () |
| 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 [3][3] = { { 0, 0, 0 }, { 1, 0, 0 }, { 0, 1, 0 } } |
Shape function space for linear triangle, similar to linear tet.
Definition at line 328 of file ElemUtil.hpp.
|
inline |
Definition at line 331 of file ElemUtil.hpp.
References set_vertices().
| moab::Element::LinearTri::LinearTri | ( | ) |
Definition at line 505 of file ElemUtil.cpp.
|
virtual |
Definition at line 507 of file ElemUtil.cpp.
|
inlinevirtual |
Evaluate the determinate of the inverse Jacobi matrix.
Reimplemented from moab::Element::Map.
Definition at line 356 of file ElemUtil.hpp.
References det_T_inverse.
|
inlinevirtual |
Evaluate the determinate of the Jacobi matrix.
Reimplemented from moab::Element::Map.
Definition at line 352 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 339 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 531 of file ElemUtil.cpp.
|
virtual |
Evaluate the inverse map (calculate \(\vec \xi = F^-1($\vec x)\) to given tolerance)
Reimplemented from moab::Element::Map.
Reimplemented in moab::Element::SphericalTri.
Definition at line 526 of file ElemUtil.cpp.
References T_inverse.
Referenced by moab::Element::SphericalTri::ievaluate(), and test_linear_tri().
Evaluate the inverse of the Jacobi matrix.
Reimplemented from moab::Element::Map.
Definition at line 348 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 519 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 542 of file ElemUtil.cpp.
References det_T.
Evaluate the map's Jacobi matrix.
Implements moab::Element::Map.
Definition at line 344 of file ElemUtil.hpp.
References T.
|
virtual |
Set vertices.
Reimplemented from moab::Element::Map.
Definition at line 509 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 LinearTri(), and moab::Element::SphericalTri::SphericalTri().
|
staticprotected |
Definition at line 371 of file ElemUtil.hpp.
|
protected |
Definition at line 373 of file ElemUtil.hpp.
Referenced by det_jacobian(), integrate_scalar_field(), and set_vertices().
|
protected |
Definition at line 373 of file ElemUtil.hpp.
Referenced by det_ijacobian(), and set_vertices().
|
protected |
Definition at line 372 of file ElemUtil.hpp.
Referenced by evaluate(), jacobian(), and set_vertices().
|
protected |
Definition at line 372 of file ElemUtil.hpp.
Referenced by ievaluate(), ijacobian(), and set_vertices().