|
[Sponsors] |
[Gmsh] gmshToFoam error depending on export format from Gmsh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 26, 2018, 11:54 |
gmshToFoam error depending on export format from Gmsh
|
#1 |
New Member
Cruz Li
Join Date: Nov 2018
Posts: 1
Rep Power: 0 |
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. |
|
December 18, 2018, 23:08 |
|
#2 |
New Member
Weiliang Zhu
Join Date: Apr 2016
Posts: 11
Rep Power: 11 |
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.
|
|
March 20, 2019, 12:57 |
|
#3 |
New Member
Josh Williams
Join Date: Jun 2018
Location: Scotland
Posts: 8
Rep Power: 8 |
Did you solve this? I'm having the same issue
|
|
October 15, 2020, 01:06 |
Decision
|
#4 |
New Member
Andrey
Join Date: Oct 2020
Posts: 1
Rep Power: 0 |
After unchecking the "save all elements" and "save parametric coordinates" when exporting the mesh to the GMSH 2.0 ASCII format, the error disappeared
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] New version of gmshToFoam? | stootoon | OpenFOAM Meshing & Mesh Conversion | 7 | February 14, 2022 10:01 |
Issue exporting su2 format from gmsh | Gaetano03 | SU2 | 6 | September 21, 2018 12:18 |
Gmsh mesh export | gcdiwan | Mesh Generation & Pre-Processing | 0 | October 18, 2015 09:16 |
Change export node ordering in Gmsh | skrishnamoorthy | Mesh Generation & Pre-Processing | 0 | August 11, 2015 21:42 |
[General] GmshToFoam export with Solution from Matlab | Yuki1890 | ParaView | 0 | October 20, 2014 12:03 |