#include "Mesquite.hpp"#include "MsqIBase.hpp"#include "MsqIGeom.hpp"#include "MsqIMesh.hpp"#include "MBiMesh.hpp"#include "MeshImpl.hpp"#include "moab/Core.hpp"#include "moab/Skinner.hpp"#include "moab/LloydSmoother.hpp"#include "FacetModifyEngine.hpp"#include "MsqError.hpp"#include "InstructionQueue.hpp"#include "PatchData.hpp"#include "TerminationCriterion.hpp"#include "QualityAssessor.hpp"#include "SphericalDomain.hpp"#include "PlanarDomain.hpp"#include "MeshWriter.hpp"#include "moab/ProgOptions.hpp"#include "IdealWeightInverseMeanRatio.hpp"#include "TMPQualityMetric.hpp"#include "AspectRatioGammaQualityMetric.hpp"#include "ConditionNumberQualityMetric.hpp"#include "VertexConditionNumberQualityMetric.hpp"#include "MultiplyQualityMetric.hpp"#include "LPtoPTemplate.hpp"#include "LInfTemplate.hpp"#include "PMeanPTemplate.hpp"#include "SteepestDescent.hpp"#include "FeasibleNewton.hpp"#include "QuasiNewton.hpp"#include "ConjugateGradient.hpp"#include "SmartLaplacianSmoother.hpp"#include "Randomize.hpp"#include "ReferenceMesh.hpp"#include "RefMeshTargetCalculator.hpp"#include "TShapeB1.hpp"#include "TQualityMetric.hpp"#include "IdealShapeTarget.hpp"#include <sys/stat.h>#include <iostream>#include "iBase.h"
Include dependency graph for OptimizeMeshMesquite.cpp:Go to the source code of this file.
Macros | |
| #define | CHECK_IGEOM(STR) if( err != iBase_SUCCESS ) return print_iGeom_error( STR, err, geom, __FILE__, __LINE__ ) |
| #define | CHECK_IMESH(STR) if( err != iBase_SUCCESS ) return print_iMesh_error( STR, err, instance, __FILE__, __LINE__ ) |
Functions | |
| static int | print_iGeom_error (const char *desc, int err, iGeom_Instance geom, const char *file, int line) |
| static int | print_iMesh_error (const char *desc, int err, iMesh_Instance mesh, const char *file, int line) |
| int | write_vtk_mesh (Mesh *mesh, const char *filename) |
| int | get_imesh_mesh (MBMesquite::Mesh **, const char *file_name, int dimension) |
| int | get_native_mesh (MBMesquite::Mesh **, const char *file_name, int dimension) |
| int | get_itaps_domain (MeshDomain **, const char *) |
| int | get_mesquite_domain (MeshDomain **, const char *) |
| int | run_global_smoother (MeshDomainAssoc &mesh, MsqError &err, double OF_value=1e-4) |
| int | run_local_smoother (MeshDomainAssoc &mesh, MsqError &err, double OF_value=1e-3) |
| int | run_local_smoother2 (MeshDomainAssoc &mesh_and_domain, MsqError &err, double OF_value=1e-3) |
| int | run_quality_optimizer (MeshDomainAssoc &mesh_and_domain, MsqError &err) |
| int | run_solution_mesh_optimizer (MeshDomainAssoc &mesh_and_domain, MsqError &err) |
| bool | file_exists (const std::string &name) |
| int | main (int argc, char *argv[]) |
Variables | |
| const std::string | default_file_name = std::string( MESH_DIR ) + std::string( "/surfrandomtris-4part.h5m" ) |
| const std::string | default_geometry_file_name = std::string( MESH_DIR ) + std::string( "/surfrandom.facet" ) |
| std::vector< double > | solution_indicator |
| #define CHECK_IGEOM | ( | STR | ) | if( err != iBase_SUCCESS ) return print_iGeom_error( STR, err, geom, __FILE__, __LINE__ ) |
Definition at line 99 of file OptimizeMeshMesquite.cpp.
| #define CHECK_IMESH | ( | STR | ) | if( err != iBase_SUCCESS ) return print_iMesh_error( STR, err, instance, __FILE__, __LINE__ ) |
Definition at line 102 of file OptimizeMeshMesquite.cpp.
| bool file_exists | ( | const std::string & | name | ) |
Definition at line 132 of file OptimizeMeshMesquite.cpp.
References buffer.
Referenced by main().
| int get_imesh_mesh | ( | MBMesquite::Mesh ** | mesh, |
| const char * | file_name, | ||
| int | dimension | ||
| ) |
Definition at line 606 of file OptimizeMeshMesquite.cpp.
References CHECK_IMESH, moab::Skinner::find_skin(), moab::Interface::get_entities_by_dimension(), moab::Interface::get_entities_by_type(), MB_CHK_SET_ERR, MB_TAG_CREAT, MB_TAG_DENSE, MB_TYPE_DOUBLE, MB_TYPE_INTEGER, MBVERTEX, moab::Range::size(), solution_indicator, moab::Interface::tag_get_handle(), and moab::Interface::tag_set_data().
Referenced by main().
| int get_itaps_domain | ( | MeshDomain ** | odomain, |
| const char * | filename | ||
| ) |
Definition at line 712 of file OptimizeMeshMesquite.cpp.
References CHECK_IGEOM.
Referenced by main().
| int get_mesquite_domain | ( | MeshDomain ** | , |
| const char * | |||
| ) |
| int get_native_mesh | ( | MBMesquite::Mesh ** | mesh, |
| const char * | file_name, | ||
| int | dimension | ||
| ) |
Definition at line 697 of file OptimizeMeshMesquite.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 138 of file OptimizeMeshMesquite.cpp.
References ProgOptions::addOpt(), default_file_name, default_geometry_file_name, file_exists(), get_imesh_mesh(), get_itaps_domain(), get_native_mesh(), ProgOptions::parseCommandLine(), run_local_smoother(), run_local_smoother2(), and run_solution_mesh_optimizer().
|
static |
Definition at line 71 of file OptimizeMeshMesquite.cpp.
References buffer.
|
static |
Definition at line 85 of file OptimizeMeshMesquite.cpp.
References buffer.
| int run_global_smoother | ( | MeshDomainAssoc & | mesh, |
| MsqError & | err, | ||
| double | OF_value = 1e-4 |
||
| ) |
Definition at line 264 of file OptimizeMeshMesquite.cpp.
References write_vtk_mesh().
| int run_local_smoother | ( | MeshDomainAssoc & | mesh, |
| MsqError & | err, | ||
| double | OF_value = 1e-3 |
||
| ) |
Definition at line 355 of file OptimizeMeshMesquite.cpp.
References moab::Interface::get_entities_by_dimension(), MB_CHK_SET_ERR, MB_TYPE_INTEGER, moab::LloydSmoother::perform_smooth(), moab::Interface::tag_get_handle(), and write_vtk_mesh().
Referenced by main().
| int run_local_smoother2 | ( | MeshDomainAssoc & | mesh_and_domain, |
| MsqError & | err, | ||
| double | OF_value = 1e-3 |
||
| ) |
Definition at line 381 of file OptimizeMeshMesquite.cpp.
References write_vtk_mesh().
Referenced by main().
| int run_quality_optimizer | ( | MeshDomainAssoc & | mesh_and_domain, |
| MsqError & | err | ||
| ) |
Definition at line 471 of file OptimizeMeshMesquite.cpp.
References inner(), and write_vtk_mesh().
| int run_solution_mesh_optimizer | ( | MeshDomainAssoc & | mesh_and_domain, |
| MsqError & | err | ||
| ) |
Definition at line 525 of file OptimizeMeshMesquite.cpp.
References write_vtk_mesh().
Referenced by main().
| int write_vtk_mesh | ( | Mesh * | mesh, |
| const char * | filename | ||
| ) |
Definition at line 344 of file OptimizeMeshMesquite.cpp.
References moab::Interface::write_file().
Referenced by run_global_smoother(), run_local_smoother(), run_local_smoother2(), run_quality_optimizer(), and run_solution_mesh_optimizer().
| const std::string default_file_name = std::string( MESH_DIR ) + std::string( "/surfrandomtris-4part.h5m" ) |
Definition at line 105 of file OptimizeMeshMesquite.cpp.
Referenced by main().
| const std::string default_geometry_file_name = std::string( MESH_DIR ) + std::string( "/surfrandom.facet" ) |
Definition at line 106 of file OptimizeMeshMesquite.cpp.
Referenced by main().
| std::vector< double > solution_indicator |
Definition at line 108 of file OptimizeMeshMesquite.cpp.
Referenced by get_imesh_mesh().