Shape function space for linear triangle on sphere, obtained from the canonical linear (affine) functions. It is mapped using gnomonic projection to a plane tangent at the first vertex It works well for edges that are great circle arcs; RLL meshes do not have this property, but HOMME or MPAS meshes do have it. More...
#include <ElemUtil.hpp>
Public Member Functions | |
SphericalTri (const std::vector< CartVect > &vertices) | |
virtual | ~SphericalTri () |
virtual bool | inside_box (const CartVect &pos, double &tol) const |
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... | |
Public Member Functions inherited from moab::Element::LinearTri | |
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 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... | |
Protected Attributes | |
CartVect | v1 |
Matrix3 | transf |
Protected Attributes inherited from moab::Element::LinearTri | |
Matrix3 | T |
Matrix3 | T_inverse |
double | det_T |
double | det_T_inverse |
Protected Attributes inherited from moab::Element::Map | |
std::vector< CartVect > | vertex |
Additional Inherited Members | |
Static Protected Attributes inherited from moab::Element::LinearTri | |
static const double | corner [3][3] = { { 0, 0, 0 }, { 1, 0, 0 }, { 0, 1, 0 } } |
Shape function space for linear triangle on sphere, obtained from the canonical linear (affine) functions. It is mapped using gnomonic projection to a plane tangent at the first vertex It works well for edges that are great circle arcs; RLL meshes do not have this property, but HOMME or MPAS meshes do have it.
Definition at line 382 of file ElemUtil.hpp.
moab::Element::SphericalTri::SphericalTri | ( | const std::vector< CartVect > & | vertices | ) |
Definition at line 553 of file ElemUtil.cpp.
References moab::CartVect::length(), moab::Element::LinearTri::set_vertices(), transf, and v1.
|
inlinevirtual |
Definition at line 386 of file ElemUtil.hpp.
|
virtual |
Evaluate the inverse map (calculate \(\vec \xi = F^-1($\vec x)\) to given tolerance)
Reimplemented from moab::Element::LinearTri.
Definition at line 593 of file ElemUtil.cpp.
References moab::Element::LinearTri::ievaluate(), transf, and v1.
Referenced by moab::Coupler::nat_param(), and test_spherical_tri().
|
virtual |
Reimplemented from moab::Element::Map.
Definition at line 603 of file ElemUtil.cpp.
References moab::Element::Map::inside_box(), transf, and v1.
Referenced by test_spherical_tri().
|
protected |
Definition at line 392 of file ElemUtil.hpp.
Referenced by ievaluate(), inside_box(), and SphericalTri().
|
protected |
Definition at line 391 of file ElemUtil.hpp.
Referenced by ievaluate(), inside_box(), and SphericalTri().