Convert gmsh mesh files into exodusII files.
- Conversion:
- 3D: physical volumes are converted to blocks, physical surfaces are converted into side sets
- 2D: physical surfaces are converted into blocks, physical curves are converted into side sets
- 1D: physical lines are converted into blocks, physical points are converted into side sets
- Support for first-order elements: LINE2, TRI3, QUAD4, TET4 and HEX8
- Support for MSH files version 2 and 4, both ASCII and binary
- Simple command line interface
- C++17 compiler
- fmt 9.1
- exodusIIcpp
- gmshparsercpp
NOTE: exodusIIcpp
has additional requirements like netCDF4, HDF5 and exodusii from SEACAS.
- Make sure you have SEACAS and fmt installed.
exodusIIcpp
andgmshparser
will be build as part of the build process. - Clone the
gmsh2exo
repository - Go to the location where you cloned
gmsh2exo
- Create a build directory and go into it:
mkdir build cd build
- Configure the build
cmake ..
- Build
gmsh2exo
make
- If you plan on installing the package, supply
-DCMAKE_INSTALL_PREFIX=/install/prefix
during the configure step and domake install
-
SEACAS
can be installed as a whole package or just with exdousII.Debian-based linux distributions offer exodusII as a pre-built package:
libexodusii-dev
-
exodusIIcpp
andgmshparsercpp
will build as dynamic libraries by default. If you want to build them as static ones, supply-DEXODUSIICPP_LIBRARY_TYPE=STATIC
and/or-DGMSHPARSERCPP_LIBRARY_TYPE=STATIC
during the configre step.
$ gmsh2exo <msh file> <exo file>
If you are having issues and/or looking for help, please let us know in the discussions located here on github.
The project is licensed under the MIT license.