CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Gmsh] Using the mesh generated through gmsh in OpenFOAM (https://www.cfd-online.com/Forums/openfoam-meshing/104188-using-mesh-generated-through-gmsh-openfoam.html)

Nikhil Thakur July 4, 2012 10:56

Using the mesh generated through gmsh in OpenFOAM
 
hello,
I am trying to convert the mesh generated through gmesh to Foam.But I am getting the following error:
--> FOAM FATAL IO ERROR:
No cells read from file "cyl.msh"
Does your file specify any 3D elements (hex=5, prism=6, pyramid=7, tet=4)?
Perhaps you have not exported the 3D elements?

file: cyl.msh at line 30956.

From function readCells(..)
in file gmshToFoam.C at line 721.

FOAM exiting

fportela March 20, 2013 04:39

The error seems to be pretty clear, what kind of mesh are you trying to convert? Did you define the physicals properly in your .geo?

KateEisenhower July 13, 2015 09:22

Quote:

Originally Posted by fportela (Post 415213)
The error seems to be pretty clear, what kind of mesh are you trying to convert? Did you define the physicals properly in your .geo?

Hello,

I have the same problem. I managed to create physical surfaces and the physical volume and they even show up in gmsh. But how can you make your internal 3D cells physical?

Additional question: How can I display my internal mesh in gmsh?

Best regards,

Kate

p.s.: I think gmsh is an app which can produce beautiful products but it is very hard to understand how you actually do thing.


All times are GMT -4. The time now is 13:49.