gmshToFoam error depending on export format from Gmsh
1 Attachment(s)
Hello guys,
I am new to OpenFOAM and Gmsh. I want to simulate flow around a circular cylinder so I have created a geometry and subsequently a 3D mesh in Gmsh. I am currently using OF 6 and Gmsh 4.0.6 on Ubuntu. When I used the gmshToFoam command to import my .msh file, I encountered 2 errors. If I exported my mesh as ASCII Version 2 including all elements and parametric coordinates, gmshToFoam spits: --> FOAM FATAL ERROR: 8 not found in table. Valid entries: 0() From function const T& Foam::HashTable<T, Key, Hash>::operator[](const Key&) const [with T = int; Key = int; Hash = Foam::Hash<int>] in file /home/ubuntu/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/HashTableI.H at line 134. FOAM exiting However, if I If I exported my mesh as ASCII Version 2 including just all elements, gmshToFoam creates the mesh which is viewable with paraFoam, but all my defined physical bodies are not to be seen in the boundary. Any ideas on why this would happen? Also, I checked multiple tutorial on Youtube and none of them had a similar issue. I would much appreciate your help. |
Don't know what a wrong you got, I tried with your circularCyl.txt in GMSH 4.0.1, and export to v2 mesh, it is all ok.
http://zwlwf.cn/cir.png |
Did you solve this? I'm having the same issue
|
Decision
After unchecking the "save all elements" and "save parametric coordinates" when exporting the mesh to the GMSH 2.0 ASCII format, the error disappeared
|
All times are GMT -4. The time now is 07:35. |