#include <ElemUtil.hpp>
Public Member Functions | |
SpectralQuad (const std::vector< CartVect > &vertices) | |
SpectralQuad (int order, double *x, double *y, double *z) | |
SpectralQuad (int order) | |
SpectralQuad () | |
virtual | ~SpectralQuad () |
void | set_gl_points (double *x, double *y, double *z) |
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 &xi) const |
Evaluate the map's Jacobi matrix. More... | |
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... | |
double | integrate_scalar_field (const double *field_vertex_values) const |
Integrate a scalar field over the element given field values at the vertices. More... | |
bool | inside_nat_space (const CartVect &xi, double &tol) const |
decide if within the natural param space, with a tolerance More... | |
void | Init (int order) |
void | freedata () |
void | compute_gl_positions () |
void | get_gl_points (double *&x, double *&y, double *&z, int &size) |
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... | |
virtual bool | inside_box (const CartVect &xi, double &tol) const |
Protected Attributes | |
realType * | _xyz [3] |
Protected Attributes inherited from moab::Element::Map | |
std::vector< CartVect > | vertex |
Static Protected Attributes | |
static int | _n |
static realType * | _z [2] |
static lagrange_data | _ld [2] |
static opt_data_2 | _data |
static realType * | _odwork |
static bool | _init = false |
static realType * | _glpoints |
Definition at line 421 of file ElemUtil.hpp.
|
inline |
moab::Element::SpectralQuad::SpectralQuad | ( | int | order, |
double * | x, | ||
double * | y, | ||
double * | z | ||
) |
moab::Element::SpectralQuad::SpectralQuad | ( | int | order | ) |
moab::Element::SpectralQuad::SpectralQuad | ( | ) |
Definition at line 16 of file SpectralQuad.cpp.
|
virtual |
Definition at line 30 of file SpectralQuad.cpp.
References _init, and freedata().
void moab::Element::SpectralQuad::compute_gl_positions | ( | ) |
Definition at line 173 of file SpectralQuad.cpp.
References _glpoints, _n, _xyz, and _z.
Referenced by test_spectral_quad().
Evaluate the map on \(x_i\) (calculate \(\vec x = F($\vec \xi)\) )
Implements moab::Element::Map.
Definition at line 1298 of file ElemUtil.cpp.
References _ld, _odwork, _xyz, lagrange_0(), and tensor_i2().
|
virtual |
Evaluate a scalar field at a point given field values at the vertices.
Implements moab::Element::Map.
Definition at line 1343 of file ElemUtil.cpp.
References _ld, _odwork, lagrange_0(), and tensor_i2().
void moab::Element::SpectralQuad::freedata | ( | ) |
Definition at line 60 of file SpectralQuad.cpp.
References _data, _glpoints, _ld, _odwork, _z, lagrange_free(), and opt_free_2().
Referenced by Init(), and ~SpectralQuad().
void moab::Element::SpectralQuad::get_gl_points | ( | double *& | x, |
double *& | y, | ||
double *& | z, | ||
int & | size | ||
) |
Definition at line 207 of file SpectralQuad.cpp.
References _n, _xyz, and moab::Element::Map::size().
Referenced by test_spectral_quad().
|
virtual |
Evaluate the inverse map (calculate \(\vec \xi = F^-1($\vec x)\) to given tolerance)
Reimplemented from moab::Element::Map.
Definition at line 1314 of file ElemUtil.cpp.
References _data, _xyz, moab::CartVect::get(), opt_findpt_2(), and opt_no_constraints_3.
void moab::Element::SpectralQuad::Init | ( | int | order | ) |
Definition at line 35 of file SpectralQuad.cpp.
References _data, _glpoints, _init, _ld, _n, _odwork, _z, freedata(), lagrange_setup(), lobatto_nodes(), opt_alloc_2(), and tmalloc.
Referenced by SpectralQuad().
|
virtual |
decide if within the natural param space, with a tolerance
Implements moab::Element::Map.
Definition at line 1360 of file ElemUtil.cpp.
|
virtual |
Integrate a scalar field over the element given field values at the vertices.
Implements moab::Element::Map.
Definition at line 1355 of file ElemUtil.cpp.
Evaluate the map's Jacobi matrix.
Implements moab::Element::Map.
Definition at line 132 of file SpectralQuad.cpp.
void moab::Element::SpectralQuad::set_gl_points | ( | double * | x, |
double * | y, | ||
double * | z | ||
) |
|
staticprotected |
Definition at line 456 of file ElemUtil.hpp.
Referenced by freedata(), ievaluate(), Init(), and moab::SpectralQuad::reverseEvalFcn().
|
staticprotected |
Definition at line 461 of file ElemUtil.hpp.
Referenced by compute_gl_positions(), freedata(), and Init().
|
staticprotected |
Definition at line 460 of file ElemUtil.hpp.
Referenced by Init(), and ~SpectralQuad().
|
staticprotected |
Definition at line 455 of file ElemUtil.hpp.
Referenced by moab::SpectralQuad::evalFcn(), evaluate(), evaluate_scalar_field(), freedata(), and Init().
|
staticprotected |
Definition at line 453 of file ElemUtil.hpp.
Referenced by compute_gl_positions(), get_gl_points(), and Init().
|
staticprotected |
Definition at line 457 of file ElemUtil.hpp.
Referenced by moab::SpectralQuad::evalFcn(), evaluate(), evaluate_scalar_field(), freedata(), and Init().
|
protected |
Definition at line 466 of file ElemUtil.hpp.
Referenced by compute_gl_positions(), moab::SpectralQuad::evalFcn(), evaluate(), get_gl_points(), ievaluate(), moab::SpectralQuad::reverseEvalFcn(), set_gl_points(), and SpectralQuad().
|
staticprotected |
Definition at line 454 of file ElemUtil.hpp.
Referenced by compute_gl_positions(), freedata(), and Init().