Error when using gmshToFoam
I am trying to mesh a test component in GMSH but am having problems.
I meshed the component using the [Mesh] [3D] option and then saved as a .msh extension. When I tried to run this in OpenFOAM using gmshToFoam I got the following error: Code:
Create time Thank you. |
Hi,
I think you forgot to create a physical volume containing your 3D mesh as follow : Quote:
Laurent. |
Hello Laurent,
I also have the same problem. In my case, I have imported a geometry created in CAD and I am trying to mesh it. How can define the fluid based on the provided parameters in gmsh? Regards, Lucas |
1 Attachment(s)
Hi Lucas,
Check your elementary entities (menubar -> tools -> visibility) and add IDs of your volume(s) to the Physical Volume like this : Code:
Physical Volume("fluid") = {1,2,3}; Regards, Laurent. |
Hello Laurent,
Thanks for replying. I have tried to implement your suggestion however it seems that an elementary entity called surface 1 is already there for the analyzed STL. I tried to hit apply to see if it makes a difference and then refine but for some strange reason when I try to convert my .msh file into OpenFOAM I still get this message --> FOAM FATAL IO ERROR: No cells read from file "Harran_clean.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: Harran_clean.msh at line 13832697. Then, I open my .geo file and it says the following: Merge "Harran_clean.stl"; Surface Loop(2) = {1}; Would you mind if I forward to your e-mail my STL? Regards, Lucas |
From my knowledge, gmsh is not able to build a 3D mesh from STL file. It handles STEP and IGES from CAD software.
Go to menubar -> tools -> statistics -> "mesh" tab and you will see you don't have any 3D mesh elements ... |
Hi,
in fact you've forgotten to add one line to your geo file: Code:
Merge "your-stl-file.stl"; |
All times are GMT -4. The time now is 03:50. |