#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"
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 87 of file OptimizeMeshMesquite.cpp.
#define CHECK_IMESH | ( | STR | ) | if( err != iBase_SUCCESS ) return print_iMesh_error( STR, err, instance, __FILE__, __LINE__ ) |
Definition at line 90 of file OptimizeMeshMesquite.cpp.
bool file_exists | ( | const std::string & | name | ) |
int get_imesh_mesh | ( | MBMesquite::Mesh ** | mesh, |
const char * | file_name, | ||
int | dimension | ||
) |
Definition at line 594 of file OptimizeMeshMesquite.cpp.
References CHECK_IMESH, ErrorCode, 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 698 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 | ||
) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 126 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 |
|
static |
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 |
||
) |
Definition at line 343 of file OptimizeMeshMesquite.cpp.
References ErrorCode, 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 369 of file OptimizeMeshMesquite.cpp.
References write_vtk_mesh().
Referenced by main().
int run_quality_optimizer | ( | MeshDomainAssoc & | mesh_and_domain, |
MsqError & | err | ||
) |
int run_solution_mesh_optimizer | ( | MeshDomainAssoc & | mesh_and_domain, |
MsqError & | err | ||
) |
Definition at line 513 of file OptimizeMeshMesquite.cpp.
References write_vtk_mesh().
Referenced by main().
int write_vtk_mesh | ( | Mesh * | mesh, |
const char * | filename | ||
) |
Definition at line 332 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 93 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 94 of file OptimizeMeshMesquite.cpp.
Referenced by main().
std::vector< double > solution_indicator |
Definition at line 96 of file OptimizeMeshMesquite.cpp.
Referenced by get_imesh_mesh().