MOAB: Mesh Oriented datABase
(version 5.5.0)
|
#include <iostream>
#include <string>
#include <sstream>
#include <ctime>
#include <vector>
#include <algorithm>
#include "moab/Core.hpp"
#include "moab/Range.hpp"
#include "moab/MeshTopoUtil.hpp"
#include "moab/NestedRefine.hpp"
#include "moab/DiscreteGeometry/DGMSolver.hpp"
#include "moab/DiscreteGeometry/HiReconstruction.hpp"
#include "TestUtil.hpp"
#include <cmath>
Go to the source code of this file.
Functions | |
ErrorCode | load_meshset_hirec (const char *infile, Interface *mbimpl, EntityHandle &meshset, ParallelComm *&pc, const int degree=0, const int dim=2) |
ErrorCode | test_mesh (const char *infile, const int degree, const bool interp, const int dim) |
void | compute_linear_coords (const int nvpe, double *elemcoords, double *naturals, double *linearcoords) |
ErrorCode | create_unitsq_tris (Interface *mbImpl, size_t n, std::vector< EntityHandle > &tris) |
ErrorCode | create_unitsq_quads (Interface *mbImpl, size_t n, std::vector< EntityHandle > &quads) |
ErrorCode | test_unitsq_tris () |
ErrorCode | test_unitsq_quads () |
ErrorCode | test_unitsphere () |
ErrorCode | test_unitcircle () |
ErrorCode | exact_error_torus (const double R, const double r, const double center[3], int npnts, double *pnt, double &error_l1, double &error_l2, double &error_li) |
ErrorCode | project_exact_torus (Interface *mbImpl, EntityHandle meshset, int dim, const double R, const double r, const double center[3]) |
int | main (int argc, char *argv[]) |
ErrorCode | project_exact_torus (Interface *mbImpl, EntityHandle meshset, int dim, const double R, const double r, const double center[]) |
ErrorCode | exact_error_torus (const double R, const double r, const double center[], int npnts, double *pnts, double &error_l1, double &error_l2, double &error_li) |
void compute_linear_coords | ( | const int | nvpe, |
double * | elemcoords, | ||
double * | naturals, | ||
double * | linearcoords | ||
) |
Definition at line 418 of file hireconst_test.cpp.
Referenced by test_mesh(), test_unitcircle(), test_unitsphere(), test_unitsq_quads(), and test_unitsq_tris().
ErrorCode create_unitsq_quads | ( | Interface * | mbImpl, |
size_t | n, | ||
std::vector< EntityHandle > & | quads | ||
) |
Definition at line 318 of file hireconst_test.cpp.
References moab::Interface::create_element(), moab::Interface::create_vertex(), moab::error(), ErrorCode, MB_CHK_ERR, MB_SET_ERR, and MBQUAD.
Referenced by test_unitsq_quads().
ErrorCode create_unitsq_tris | ( | Interface * | mbImpl, |
size_t | n, | ||
std::vector< EntityHandle > & | tris | ||
) |
Definition at line 278 of file hireconst_test.cpp.
References moab::Interface::create_element(), moab::Interface::create_vertex(), moab::error(), ErrorCode, MB_CHK_ERR, MB_SET_ERR, and MBTRI.
Referenced by test_unitsq_tris().
ErrorCode exact_error_torus | ( | const double | R, |
const double | r, | ||
const double | center[3], | ||
int | npnts, | ||
double * | pnt, | ||
double & | error_l1, | ||
double & | error_l2, | ||
double & | error_li | ||
) |
Referenced by test_mesh().
ErrorCode exact_error_torus | ( | const double | R, |
const double | r, | ||
const double | center[], | ||
int | npnts, | ||
double * | pnts, | ||
double & | error_l1, | ||
double & | error_l2, | ||
double & | error_li | ||
) |
Definition at line 691 of file hireconst_test.cpp.
References center(), MB_SUCCESS, and moab::R.
ErrorCode load_meshset_hirec | ( | const char * | infile, |
Interface * | mbimpl, | ||
EntityHandle & | meshset, | ||
ParallelComm *& | pc, | ||
const int | degree = 0 , |
||
const int | dim = 2 |
||
) |
Definition at line 153 of file hireconst_test.cpp.
References moab::Interface::create_meshset(), dim, moab::error(), ErrorCode, moab::HiReconstruction::estimate_num_ghost_layers(), moab::ParallelComm::get_pcomm(), moab::Interface::load_file(), MB_CHK_ERR, MB_SET_ERR, MESHSET_SET, MPI_COMM_WORLD, rank, and read_options.
Referenced by test_mesh(), test_unitcircle(), and test_unitsphere().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 70 of file hireconst_test.cpp.
References dim, moab::error(), ErrorCode, MB_CHK_ERR, MPI_COMM_WORLD, rank, test_mesh(), test_unitcircle(), test_unitsphere(), test_unitsq_quads(), and test_unitsq_tris().
ErrorCode project_exact_torus | ( | Interface * | mbImpl, |
EntityHandle | meshset, | ||
int | dim, | ||
const double | R, | ||
const double | r, | ||
const double | center[3] | ||
) |
Referenced by test_mesh().
ErrorCode project_exact_torus | ( | Interface * | mbImpl, |
EntityHandle | meshset, | ||
int | dim, | ||
const double | R, | ||
const double | r, | ||
const double | center[] | ||
) |
Definition at line 653 of file hireconst_test.cpp.
References center(), CHECK_ERR, dim, moab::error(), ErrorCode, moab::Interface::get_connectivity(), moab::Interface::get_coords(), moab::Interface::get_entities_by_dimension(), MB_SUCCESS, moab::R, moab::Interface::set_coords(), and moab::Range::size().
ErrorCode test_mesh | ( | const char * | infile, |
const int | degree, | ||
const bool | interp, | ||
const int | dim | ||
) |
Definition at line 218 of file hireconst_test.cpp.
References moab::Range::begin(), center(), CHECK_ERR, compute_linear_coords(), dim, moab::Range::end(), moab::error(), ErrorCode, exact_error_torus(), moab::Interface::get_connectivity(), moab::Interface::get_coords(), moab::Interface::get_entities_by_dimension(), moab::HiReconstruction::hiproj_walf_in_element(), load_meshset_hirec(), MB_CHK_ERR, project_exact_torus(), moab::R, moab::HiReconstruction::reconstruct3D_curve_geom(), moab::HiReconstruction::reconstruct3D_surf_geom(), moab::Range::size(), and moab::DGMSolver::vec_distance().
Referenced by main().
ErrorCode test_unitcircle | ( | ) |
Definition at line 574 of file hireconst_test.cpp.
References moab::Range::begin(), compute_linear_coords(), dim, moab::Range::end(), moab::error(), ErrorCode, moab::Interface::get_connectivity(), moab::Interface::get_coords(), moab::Interface::get_entities_by_dimension(), moab::HiReconstruction::hiproj_walf_in_element(), load_meshset_hirec(), MB_CHK_ERR, moab::HiReconstruction::reconstruct3D_curve_geom(), moab::DGMSolver::vec_2norm(), and moab::DGMSolver::vec_distance().
Referenced by main().
ErrorCode test_unitsphere | ( | ) |
Definition at line 496 of file hireconst_test.cpp.
References moab::Range::begin(), compute_linear_coords(), moab::Range::end(), moab::error(), ErrorCode, moab::Interface::get_connectivity(), moab::Interface::get_coords(), moab::Interface::get_entities_by_dimension(), moab::HiReconstruction::hiproj_walf_in_element(), load_meshset_hirec(), MB_CHK_ERR, moab::HiReconstruction::reconstruct3D_surf_geom(), moab::DGMSolver::vec_2norm(), and moab::DGMSolver::vec_distance().
Referenced by main().
ErrorCode test_unitsq_quads | ( | ) |
Definition at line 433 of file hireconst_test.cpp.
References compute_linear_coords(), create_unitsq_quads(), moab::error(), ErrorCode, moab::Interface::get_connectivity(), moab::Interface::get_coords(), moab::HiReconstruction::hiproj_walf_in_element(), MB_CHK_ERR, moab::HiReconstruction::reconstruct3D_surf_geom(), and moab::DGMSolver::vec_distance().
Referenced by main().
ErrorCode test_unitsq_tris | ( | ) |
Definition at line 353 of file hireconst_test.cpp.
References compute_linear_coords(), create_unitsq_tris(), moab::error(), ErrorCode, moab::Interface::get_connectivity(), moab::Interface::get_coords(), moab::HiReconstruction::hiproj_walf_in_element(), MB_CHK_ERR, moab::HiReconstruction::reconstruct3D_surf_geom(), and moab::DGMSolver::vec_distance().
Referenced by main().