Mesh Oriented datABase  (version 5.5.0)
An array-based unstructured mesh library
moab::Element Namespace Reference

Classes

class  Map
 Class representing a map (diffeomorphism) F parameterizing a 3D element by its canonical preimage. More...
 
class  LinearHex
 Shape function space for trilinear hexahedron, obtained by a pushforward of the canonical linear (affine) functions. More...
 
class  QuadraticHex
 Shape function space for trilinear hexahedron, obtained by a pushforward of the canonical linear (affine) functions. More...
 
class  LinearTet
 Shape function space for a linear tetrahedron, obtained by a pushforward of the canonical affine shape functions. More...
 
class  SpectralHex
 
class  LinearQuad
 Shape function space for bilinear quadrilateral, obtained from the canonical linear (affine) functions. More...
 
class  SphericalQuad
 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...
 
class  LinearTri
 Shape function space for linear triangle, similar to linear tet. More...
 
class  SphericalTri
 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...
 
class  LinearEdge
 Shape function space for bilinear quadrilateral, obtained from the canonical linear (affine) functions. More...
 
class  SpectralQuad
 

Functions

double SH (const int i, const double xi)
 
double DSH (const int i, const double xi)
 

Function Documentation

◆ DSH()

double moab::Element::DSH ( const int  i,
const double  xi 
)

Definition at line 821 of file ElemUtil.cpp.

822  {
823  switch( i )
824  {
825  case -1:
826  return xi - 0.5;
827  case 0:
828  return -2 * xi;
829  case 1:
830  return xi + 0.5;
831  default:
832  return 0.;
833  }
834  }

Referenced by moab::Element::QuadraticHex::jacobian(), and moab::element_utility::Quadratic_hex_map< _Matrix >::jacobian().

◆ SH()

double moab::Element::SH ( const int  i,
const double  xi 
)

Definition at line 807 of file ElemUtil.cpp.

808  {
809  switch( i )
810  {
811  case -1:
812  return ( xi * xi - xi ) / 2;
813  case 0:
814  return 1 - xi * xi;
815  case 1:
816  return ( xi * xi + xi ) / 2;
817  default:
818  return 0.;
819  }
820  }

Referenced by moab::Element::QuadraticHex::evaluate(), moab::element_utility::Quadratic_hex_map< _Matrix >::evaluate(), moab::Element::QuadraticHex::evaluate_scalar_field(), moab::element_utility::Quadratic_hex_map< _Matrix >::evaluate_scalar_field(), moab::Element::QuadraticHex::jacobian(), and moab::element_utility::Quadratic_hex_map< _Matrix >::jacobian().