Skip to content
DANG Truong edited this page Mar 9, 2018 · 6 revisions

Welcome to the gmsh-to-vtk-and-tecplot wiki!

The code can convert a quadrilateral .msh file of GMSH to a .vtk file (ParaView/Visit can read it).

Example: Given a .msh file, in this case it is a multi-block RAE 2822 mesh: https://github.com/truongd8593/gmsh-to-vtk-and-tecplot/blob/master/rae2822_gmsh.jpg

The code produces a .vtk file as follows:

https://github.com/truongd8593/gmsh-to-vtk-and-tecplot/blob/master/rae2822.png

For numeric people, the code brings almost everything you need about the mesh. You can adapt it to integrate with your solver.

gmsh-to-vtk-and-tecplot is really compact. It is only 532 lines of code, thanks to making use of modern Fortran (Fortran 95 with some Fortran 2003 features when necessary).

Updates: The code passes some test cases taken from the 3rd International Workshop on High-Order CFD Methods

C31 test case: https://github.com/truongd8593/gmsh-to-vtk-and-tecplot/blob/master/c31.png Naca 0012 test case: https://github.com/truongd8593/gmsh-to-vtk-and-tecplot/blob/master/naca_ref2.png

Clone this wiki locally