Shape function space for bilinear quadrilateral 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 | |
SphericalQuad (const std::vector< CartVect > &vertices) | |
virtual | ~SphericalQuad () |
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::LinearQuad | |
LinearQuad (const std::vector< CartVect > &vertices) | |
LinearQuad () | |
virtual | ~LinearQuad () |
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 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... | |
Protected Attributes | |
CartVect | v1 |
Matrix3 | transf |
Protected Attributes inherited from moab::Element::Map | |
std::vector< CartVect > | vertex |
Additional Inherited Members | |
Static Protected Attributes inherited from moab::Element::LinearQuad | |
static const double | corner [4][3] = { { -1, -1, 0 }, { 1, -1, 0 }, { 1, 1, 0 }, { -1, 1, 0 } } |
static const double | gauss [1][2] = { { 2.0, 0.0 } } |
static const unsigned int | corner_count = 4 |
static const unsigned int | gauss_count = 1 |
Shape function space for bilinear quadrilateral 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 312 of file ElemUtil.hpp.
moab::Element::SphericalQuad::SphericalQuad | ( | const std::vector< CartVect > & | vertices | ) |
|
inlinevirtual |
Definition at line 316 of file ElemUtil.hpp.
|
virtual |
Evaluate the inverse map (calculate \(\vec \xi = F^-1($\vec x)\) to given tolerance)
Reimplemented from moab::Element::Map.
Definition at line 483 of file ElemUtil.cpp.
References moab::Element::Map::ievaluate(), transf, and v1.
Referenced by moab::Coupler::nat_param(), and test_spherical_quad().
|
virtual |
Reimplemented from moab::Element::Map.
Definition at line 493 of file ElemUtil.cpp.
References moab::Element::Map::inside_box(), transf, and v1.
Referenced by test_spherical_quad().
|
protected |
Definition at line 322 of file ElemUtil.hpp.
Referenced by ievaluate(), inside_box(), and SphericalQuad().
|
protected |
Definition at line 321 of file ElemUtil.hpp.
Referenced by ievaluate(), inside_box(), and SphericalQuad().