OGS
|
Implementation of the GMSH2OGS converter.
Definition in file GMSH2OGS.cpp.
#include <algorithm>
#include <string>
#include <tclap/CmdLine.h>
#include "BaseLib/FileTools.h"
#include "BaseLib/RunTime.h"
#include "InfoLib/GitInfo.h"
#include "BaseLib/MemWatch.h"
#include "Applications/FileIO/Gmsh/GmshReader.h"
#include "GeoLib/AABB.h"
#include "MeshGeoToolsLib/IdentifySubdomainMesh.h"
#include "MeshGeoToolsLib/MeshNodeSearcher.h"
#include "MeshLib/IO/writeMeshToFile.h"
#include "MeshLib/Mesh.h"
#include "MeshLib/MeshEditing/DuplicateMeshComponents.h"
#include "MeshLib/MeshEditing/RemoveMeshComponents.h"
#include "MeshLib/MeshInformation.h"
#include "MeshLib/MeshQuality/MeshValidation.h"
#include "MeshLib/MeshSearch/ElementSearch.h"
Go to the source code of this file.
Functions | |
static std::unique_ptr< MeshLib::Mesh > | createMeshFromElements (MeshLib::Mesh const &mesh, std::vector< MeshLib::Element * > const &selected_elements, std::string mesh_name) |
static std::vector< std::unique_ptr< MeshLib::Mesh > > | extractBoundaryMeshes (MeshLib::Mesh const &mesh, std::vector< std::size_t > selected_element_ids) |
static void | identifyAndWriteBoundaryMeshes (MeshLib::Mesh const &mesh, std::string const &file_name, std::vector< std::unique_ptr< MeshLib::Mesh >> &boundary_meshes) |
int | main (int argc, char *argv[]) |
|
static |
Definition at line 42 of file GMSH2OGS.cpp.
References MeshLib::copyElementVector(), MeshLib::copyNodeVector(), MeshLib::Mesh::getNodes(), MeshLib::markUnusedNodes(), and MeshLib::removeMarkedNodes().
Referenced by extractBoundaryMeshes().
|
static |
Definition at line 58 of file GMSH2OGS.cpp.
References createMeshFromElements(), MeshLib::Mesh::getElements(), MeshLib::materialIDs(), and OGS_FATAL.
Referenced by main().
|
static |
Definition at line 101 of file GMSH2OGS.cpp.
References BaseLib::dropFileExtension(), BaseLib::getFileExtension(), MeshGeoToolsLib::MeshNodeSearcher::getMeshNodeSearcher(), MeshGeoToolsLib::identifySubdomainMesh(), and MeshLib::IO::writeMeshToFile().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 126 of file GMSH2OGS.cpp.
References BaseLib::RunTime::elapsed(), extractBoundaryMeshes(), MeshLib::MeshInformation::getBoundingBox(), MeshLib::Mesh::getMaxEdgeLength(), GeoLib::AABB::getMaxPoint(), MeshLib::Mesh::getMinEdgeLength(), GeoLib::AABB::getMinPoint(), MeshLib::Mesh::getName(), MeshLib::Mesh::getNumberOfElements(), MeshLib::Mesh::getNumberOfNodes(), BaseLib::MemWatch::getVirtMemUsage(), identifyAndWriteBoundaryMeshes(), INFO(), MeshLib::LINE, GitInfoLib::GitInfo::ogs_version, FileIO::GMSH::readGMSHMesh(), MeshLib::removeElements(), BaseLib::RunTime::start(), MeshLib::MeshInformation::writeAllNumbersOfElementTypes(), MeshLib::IO::writeMeshToFile(), MeshLib::MeshInformation::writeMeshValidationResults(), and MeshLib::MeshInformation::writePropertyVectorInformation().