Skip to content
DANG Truong edited this page Jan 13, 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).

Clone this wiki locally