Skip to content

andrsd/gmsh2exo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gmsh2exo

qa build codecov License

Convert gmsh mesh files into exodusII files.

Features

  • 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
  • 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

Requirements

NOTE: exodusIIcpp has additional requirements like netCDF4, HDF5 and exodusii from SEACAS.

How to Build

  1. Make sure you have SEACAS and fmt installed. exodusIIcpp and gmshparser will be build as part of the build process.
  2. Clone the gmsh2exo repository
  3. Go to the location where you cloned gmsh2exo
  4. Create a build directory and go into it:
    mkdir build
    cd build
  5. Configure the build
    cmake ..
  6. Build gmsh2exo
    make
  7. If you plan on installing the package, supply -DCMAKE_INSTALL_PREFIX=/install/prefix during the configure step and do
    make install

Notes

  • 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 and gmshparsercpp 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.

How to Use

$ gmsh2exo <msh file> <exo file>

Support

If you are having issues and/or looking for help, please let us know in the discussions located here on github.

License

The project is licensed under the MIT license.