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/MPI.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/MeshSearch/ElementSearch.h"
#include "MeshLib/Utils/DuplicateMeshComponents.h"
#include "MeshToolsLib/MeshEditing/RemoveMeshComponents.h"
#include "MeshToolsLib/MeshInformation.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 41 of file GMSH2OGS.cpp.
References MeshLib::Mesh::getNodes(), MeshToolsLib::markUnusedNodes(), and MeshToolsLib::removeMarkedNodes().
Referenced by extractBoundaryMeshes().
|
static |
Definition at line 58 of file GMSH2OGS.cpp.
References createMeshFromElements(), MeshLib::Mesh::getElements(), and OGS_FATAL.
Referenced by main().
|
static |
Definition at line 101 of file GMSH2OGS.cpp.
References BaseLib::dropFileExtension(), BaseLib::getFileExtension(), MeshGeoToolsLib::MeshNodeSearcher::getMeshNodeSearcher(), 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(), MeshToolsLib::MeshInformation::getBoundingBox(), MeshLib::Mesh::getElements(), MeshLib::Mesh::getName(), MeshLib::Mesh::getNumberOfElements(), MeshLib::Mesh::getNumberOfNodes(), BaseLib::MemWatch::getVirtMemUsage(), identifyAndWriteBoundaryMeshes(), INFO(), MeshLib::LINE, GitInfoLib::GitInfo::ogs_version, FileIO::GMSH::readGMSHMesh(), MeshToolsLib::removeElements(), BaseLib::RunTime::start(), MeshToolsLib::MeshInformation::writeAllNumbersOfElementTypes(), MeshLib::IO::writeMeshToFile(), MeshToolsLib::MeshInformation::writeMeshValidationResults(), and MeshToolsLib::MeshInformation::writePropertyVectorInformation().