arirepo / UnstEuler2D

Completely Validated Unstructured 2D Compressible Euler Solver - CFD
GNU General Public License v3.0
15 stars 7 forks source link

What is the mesh file format? #1

Open positroncascade opened 4 years ago

positroncascade commented 4 years ago

Hello! I couldn't solve the grid file format that I should import to the code. What is the format of it? For instance, is it possible to use this solver with Gmsh mesh file? Thanks.

arirepo commented 4 years ago

Hello! I couldn't solve the grid file format that I should import to the code. What is the format of it? For instance, is it possible to use this solver with Gmsh mesh file? Thanks.

Hi, basically the grid format I used is not well known and is what Steve Karman improvised ... but it is very easy to recreate.... All you need to do is : 1- export your mesh in gmesh into tetrix format ... It is a basic ASCII format that gives you the node coordinates (xi, yi) and the connectivity of each triangle and the boundary tags. 2- read through a small sample grid I used for the purpose of debugging... There should be some a few nodes grid in the grid directory. Try to see how I arrange the node coords and the connectivity and the tags. The far field boundary segments are written in the counter clockwise order while the airfoils and any hole is written in vlockeise. 3- write the connectivity and coords /tags you obtained from gmsh to this particular format. If you use python or Lua your convertor code won't be more than 25 lines ... Good luck