MOAB: Mesh Oriented datABase
(version 5.5.0)
|
test ElemEvaluator and the various element types in MOAB More...
#include "moab/Core.hpp"
#include "moab/ReadUtilIface.hpp"
#include "moab/ElemEvaluator.hpp"
#include "moab/LocalDiscretization/LinearTri.hpp"
#include "moab/LocalDiscretization/LinearQuad.hpp"
#include "moab/LocalDiscretization/LinearHex.hpp"
#include "moab/LocalDiscretization/LinearTet.hpp"
#include "moab/LocalDiscretization/QuadraticHex.hpp"
#include "moab/CartVect.hpp"
#include "TestUtil.hpp"
Go to the source code of this file.
Functions | |
void | test_linear_tri () |
void | test_linear_quad () |
void | test_linear_hex () |
void | test_linear_tet () |
void | test_quadratic_hex () |
void | test_normal_linear_tri () |
void | test_normal_linear_quad () |
void | test_normal_linear_tet () |
void | test_normal_linear_hex () |
ErrorCode | create_mesh (Core &mb, EntityType type) |
void | test_eval (ElemEvaluator &ee, bool test_integrate) |
void | test_evals (ElemEvaluator &ee, bool test_integrate, EntityHandle *ents, int num_ents, Tag onetag, double total_vol) |
int | main () |
Variables | |
CartVect | hex_verts [] |
const double | EPS1 = 1.0e-6 |
test ElemEvaluator and the various element types in MOAB
Definition in file elem_eval_test.cpp.
Definition at line 404 of file elem_eval_test.cpp.
References CHECK_ERR, moab::Core::create_element(), moab::Core::create_vertex(), moab::error(), ErrorCode, mb, MB_SUCCESS, MBHEX, MBQUAD, MBTET, and MBTRI.
Referenced by test_normal_linear_hex(), test_normal_linear_quad(), test_normal_linear_tet(), and test_normal_linear_tri().
int main | ( | ) |
Definition at line 141 of file elem_eval_test.cpp.
References RUN_TEST, test_linear_hex(), test_linear_quad(), test_linear_tet(), test_linear_tri(), test_normal_linear_hex(), test_normal_linear_quad(), test_normal_linear_tet(), test_normal_linear_tri(), and test_quadratic_hex().
void test_eval | ( | ElemEvaluator & | ee, |
bool | test_integrate | ||
) |
Definition at line 47 of file elem_eval_test.cpp.
References moab::CartVect::array(), moab::Matrix3::array(), CHECK, CHECK_ERR, CHECK_REAL_EQUAL, moab::Matrix3::determinant(), moab::Interface::dimension_from_handle(), EPS1, ErrorCode, moab::ElemEvaluator::eval(), moab::Interface::get_coords(), moab::ElemEvaluator::get_ent_handle(), moab::EvalSet::get_eval_set(), moab::ElemEvaluator::get_moab(), moab::ElemEvaluator::get_num_verts(), moab::ElemEvaluator::get_vert_handles(), moab::ElemEvaluator::get_vert_pos(), moab::ElemEvaluator::get_work_space(), moab::ElemEvaluator::inside(), moab::ElemEvaluator::integrate(), moab::EvalSet::integrateFcn, moab::ElemEvaluator::jacobian(), length(), MB_TAG_CREAT, MB_TAG_DENSE, MB_TYPE_DOUBLE, moab::measure(), moab::ElemEvaluator::reverse_eval(), moab::ElemEvaluator::set_tag_handle(), moab::Interface::tag_delete(), moab::Interface::tag_get_handle(), and moab::Interface::tag_set_data().
Referenced by test_evals(), test_linear_hex(), test_linear_quad(), test_linear_tri(), and test_quadratic_hex().
void test_evals | ( | ElemEvaluator & | ee, |
bool | test_integrate, | ||
EntityHandle * | ents, | ||
int | num_ents, | ||
Tag | onetag, | ||
double | total_vol | ||
) |
Definition at line 112 of file elem_eval_test.cpp.
References CHECK_ERR, CHECK_REAL_EQUAL, EPS1, ErrorCode, moab::ElemEvaluator::integrate(), moab::ElemEvaluator::set_ent_handle(), moab::ElemEvaluator::set_tag_handle(), and test_eval().
Referenced by test_linear_tet().
void test_linear_hex | ( | ) |
Definition at line 194 of file elem_eval_test.cpp.
References moab::Range::begin(), CHECK_ERR, moab::Core::create_element(), moab::Core::create_vertices(), moab::Range::end(), ErrorCode, moab::LinearHex::eval_set(), hex_verts, mb, MBHEX, moab::ElemEvaluator::set_eval_set(), moab::ElemEvaluator::set_tag_handle(), and test_eval().
Referenced by main().
void test_linear_quad | ( | ) |
Definition at line 177 of file elem_eval_test.cpp.
References moab::Range::begin(), CHECK_ERR, moab::Core::create_element(), moab::Core::create_vertices(), moab::Range::end(), ErrorCode, moab::LinearQuad::eval_set(), hex_verts, mb, MBQUAD, moab::ElemEvaluator::set_eval_set(), moab::ElemEvaluator::set_tag_handle(), and test_eval().
Referenced by main().
void test_linear_tet | ( | ) |
Definition at line 228 of file elem_eval_test.cpp.
References CHECK_ERR, moab::Core::create_vertices(), ErrorCode, moab::LinearTet::eval_set(), moab::ReadUtilIface::get_element_connect(), hex_verts, mb, MB_TAG_CREAT, MB_TAG_DENSE, MB_TYPE_DOUBLE, MBTET, moab::Interface::query_interface(), moab::ElemEvaluator::set_eval_set(), moab::ElemEvaluator::set_tag_handle(), moab::Range::size(), moab::Core::tag_get_handle(), moab::Core::tag_set_data(), and test_evals().
Referenced by main().
void test_linear_tri | ( | ) |
Definition at line 158 of file elem_eval_test.cpp.
References moab::Range::begin(), CHECK_ERR, moab::Core::create_element(), moab::Core::create_vertices(), moab::Range::end(), ErrorCode, moab::LinearTri::eval_set(), mb, MBTRI, moab::ElemEvaluator::set_eval_set(), moab::ElemEvaluator::set_tag_handle(), and test_eval().
Referenced by main().
void test_normal_linear_hex | ( | ) |
Definition at line 367 of file elem_eval_test.cpp.
References CHECK_EQUAL, CHECK_ERR, create_mesh(), moab::error(), ErrorCode, moab::LinearHex::eval_set(), moab::Core::get_entities_by_dimension(), moab::ElemEvaluator::get_normal(), mb, MBHEX, moab::ElemEvaluator::set_ent_handle(), and moab::ElemEvaluator::set_eval_set().
Referenced by main().
void test_normal_linear_quad | ( | ) |
Definition at line 293 of file elem_eval_test.cpp.
References CHECK_EQUAL, CHECK_ERR, create_mesh(), moab::error(), ErrorCode, moab::LinearQuad::eval_set(), moab::Core::get_entities_by_dimension(), moab::ElemEvaluator::get_normal(), mb, MBQUAD, moab::ElemEvaluator::set_ent_handle(), and moab::ElemEvaluator::set_eval_set().
Referenced by main().
void test_normal_linear_tet | ( | ) |
Definition at line 330 of file elem_eval_test.cpp.
References CHECK_EQUAL, CHECK_ERR, create_mesh(), moab::error(), ErrorCode, moab::LinearTet::eval_set(), moab::Core::get_entities_by_dimension(), moab::ElemEvaluator::get_normal(), mb, MBTET, moab::ElemEvaluator::set_ent_handle(), and moab::ElemEvaluator::set_eval_set().
Referenced by main().
void test_normal_linear_tri | ( | ) |
Definition at line 256 of file elem_eval_test.cpp.
References CHECK_EQUAL, CHECK_ERR, create_mesh(), moab::error(), ErrorCode, moab::LinearTri::eval_set(), moab::Core::get_entities_by_dimension(), moab::ElemEvaluator::get_normal(), mb, MBTRI, moab::ElemEvaluator::set_ent_handle(), and moab::ElemEvaluator::set_eval_set().
Referenced by main().
void test_quadratic_hex | ( | ) |
Definition at line 211 of file elem_eval_test.cpp.
References moab::Range::begin(), CHECK_ERR, moab::Core::create_element(), moab::Core::create_vertices(), moab::Range::end(), ErrorCode, moab::QuadraticHex::eval_set(), hex_verts, mb, MBHEX, moab::ElemEvaluator::set_eval_set(), moab::ElemEvaluator::set_tag_handle(), and test_eval().
Referenced by main().
const double EPS1 = 1.0e-6 |
Definition at line 45 of file elem_eval_test.cpp.
Referenced by test_eval(), and test_evals().
CartVect hex_verts[] |
Definition at line 31 of file elem_eval_test.cpp.
Referenced by test_linear_hex(), test_linear_quad(), test_linear_tet(), and test_quadratic_hex().