#include <ElemUtil.hpp>
Public Member Functions | |
SpectralHex (const std::vector< CartVect > &vertices) | |
SpectralHex (int order, double *x, double *y, double *z) | |
SpectralHex (int order) | |
SpectralHex () | |
virtual | ~SpectralHex () |
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 () |
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 [3] |
static lagrange_data | _ld [3] |
static opt_data_3 | _data |
static realType * | _odwork |
static bool | _init = false |
Definition at line 243 of file ElemUtil.hpp.
|
inline |
moab::Element::SpectralHex::SpectralHex | ( | int | order, |
double * | x, | ||
double * | y, | ||
double * | z | ||
) |
moab::Element::SpectralHex::SpectralHex | ( | int | order | ) |
moab::Element::SpectralHex::SpectralHex | ( | ) |
|
virtual |
Definition at line 967 of file ElemUtil.cpp.
References _init, and freedata().
Evaluate the map on \(x_i\) (calculate \(\vec x = F($\vec \xi)\) )
Implements moab::Element::Map.
Definition at line 58 of file SpectralHex.cpp.
References moab::SpectralHex::_ld, moab::SpectralHex::_odwork, lagrange_0(), and tensor_i3().
Referenced by test_spectral_hex().
|
virtual |
Evaluate a scalar field at a point given field values at the vertices.
Implements moab::Element::Map.
Definition at line 1073 of file ElemUtil.cpp.
References _ld, _odwork, lagrange_0(), and tensor_i3().
Referenced by moab::Coupler::interp_field(), and test_spectral_hex().
void moab::Element::SpectralHex::freedata | ( | ) |
Definition at line 41 of file SpectralHex.cpp.
References moab::SpectralHex::_data, moab::SpectralHex::_ld, moab::SpectralHex::_odwork, moab::SpectralHex::_z, lagrange_free(), and opt_free_3().
Referenced by Init(), and ~SpectralHex().
|
virtual |
Evaluate the inverse map (calculate \(\vec \xi = F^-1($\vec x)\) to given tolerance)
Reimplemented from moab::Element::Map.
Definition at line 1030 of file ElemUtil.cpp.
References _data, _xyz, moab::CartVect::get(), opt_findpt_3(), and opt_no_constraints_3.
Referenced by moab::Coupler::nat_param(), and test_spectral_hex().
void moab::Element::SpectralHex::Init | ( | int | order | ) |
Definition at line 972 of file ElemUtil.cpp.
References _data, _init, _ld, _n, _odwork, _z, freedata(), lagrange_setup(), lobatto_nodes(), opt_alloc_3(), and tmalloc.
Referenced by SpectralHex().
|
virtual |
decide if within the natural param space, with a tolerance
Implements moab::Element::Map.
Definition at line 1134 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 1085 of file ElemUtil.cpp.
References _data, _ld, _n, _xyz, moab::Matrix3::determinant(), opt_data_3::elx, lagrange_data::J, opt_data_3::jac, opt_vol_set_intp_3(), and lagrange_data::z.
Referenced by test_spectral_hex().
Evaluate the map's Jacobi matrix.
Implements moab::Element::Map.
Definition at line 100 of file SpectralHex.cpp.
References moab::SpectralHex::_data, opt_data_3::elx, moab::CartVect::get(), opt_data_3::jac, and opt_vol_set_intp_3().
Referenced by test_spectral_hex().
void moab::Element::SpectralHex::set_gl_points | ( | double * | x, |
double * | y, | ||
double * | z | ||
) |
Definition at line 52 of file SpectralHex.cpp.
Referenced by moab::Coupler::nat_param(), and test_spectral_hex().
|
staticprotected |
Definition at line 272 of file ElemUtil.hpp.
Referenced by ievaluate(), Init(), and integrate_scalar_field().
|
staticprotected |
Definition at line 276 of file ElemUtil.hpp.
Referenced by Init(), and ~SpectralHex().
|
staticprotected |
Definition at line 271 of file ElemUtil.hpp.
Referenced by evaluate_scalar_field(), Init(), and integrate_scalar_field().
|
staticprotected |
Definition at line 269 of file ElemUtil.hpp.
Referenced by Init(), and integrate_scalar_field().
|
staticprotected |
Definition at line 273 of file ElemUtil.hpp.
Referenced by evaluate_scalar_field(), and Init().
|
protected |
Definition at line 278 of file ElemUtil.hpp.
Referenced by ievaluate(), integrate_scalar_field(), and SpectralHex().
|
staticprotected |
Definition at line 270 of file ElemUtil.hpp.
Referenced by Init().