56 if (fileExt ==
".vtu" || fileExt ==
".vtk") {
58 }
else if (fileExt ==
".msh" || fileExt ==
".geo") {
60 }
else if (fileExt ==
".osh") {
62 }
else if (fileExt ==
".exo" || fileExt ==
".e" || fileExt ==
".gen" ||
65 }
else if (fileExt ==
".inp") {
67 }
else if (fileExt ==
".foam") {
70 std::cerr <<
"File extension " << fileExt <<
" is not supported." 87 std::cerr <<
"Please build NEMoSys with ENABLE_GMSH=ON to use this" 88 <<
" feature!" << std::endl;
97 std::string fname = fileName;
98 fname.erase(fname.find_last_of(
'.'));
101 std::cerr <<
"Please build NEMoSys with ENABLE_CFMSH=ON to use this" 102 <<
" feature!" << std::endl;
107 std::cerr <<
"Unsupported.\n";
123 std::cerr <<
"Please build NEMoSys with ENABLE_GMSH=ON to use this" 124 <<
" feature!" << std::endl;
135 std::cerr <<
"Please build NEMoSys with ENABLE_CFMSH=ON to use this" 136 <<
" feature!" << std::endl;
144 std::cerr <<
"Requires ENABLE_OPENCASCADE=ON\n";
OSH_GEO_MESH
Based on Omega_h::Mesh from Omega_h library.
SMESH_GEO_MESH
Based on SMESH_Mesh from Salome SMESH (see contrib/)
static smeshGeoMesh * New()
static inpGeoMesh * New()
static exoGeoMesh * New()
geoMeshBase * Read(const std::string &fileName)
Read a mesh from file.
geoMeshBase * New(MeshType meshType)
Create a new mesh object.
INP_GEO_MESH
Abaqus/CalculiX mesh input format.
std::string find_ext(const std::string &fname)
VTK_GEO_MESH
Based on vtkUnstructuredGrid from VTK library.
MeshType MeshTypeFromFilename(const std::string &fileName)
static inpGeoMesh * Read(const std::string &fileName)
FOAM_GEO_MESH
Based on fvMesh from OpenFOAM library.
GMSH_GEO_MESH
Mesh and geometry based on Gmsh's public API.
static foamGeoMesh * New()
static vtkGeoMesh * New()
geoMeshBase * Read(const std::string &fileName, MeshType meshType)
Read a mesh from file.
EXO_GEO_MESH
Interface to EXODUS II library.
abstract class to specify geometry and mesh data
static oshGeoMesh * New()
static gmshGeoMesh * New()