CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] gmshToFoam error depending on export format from Gmsh

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By lyt7349
  • 2 Post By Andry

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2018, 11:54
Default gmshToFoam error depending on export format from Gmsh
  #1
New Member
 
Cruz Li
Join Date: Nov 2018
Posts: 1
Rep Power: 0
lyt7349 is on a distinguished road
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.
Attached Files
File Type: txt circularCyl .txt (3.3 KB, 18 views)
Akshay_11235 and cjmarinj like this.
lyt7349 is offline   Reply With Quote

Old   December 18, 2018, 23:08
Default
  #2
New Member
 
Weiliang Zhu
Join Date: Apr 2016
Posts: 11
Rep Power: 11
zwlwf is on a distinguished road
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.
zwlwf is offline   Reply With Quote

Old   March 20, 2019, 12:57
Default
  #3
New Member
 
Josh Williams
Join Date: Jun 2018
Location: Scotland
Posts: 8
Rep Power: 8
JoshWilliams1996 is on a distinguished road
Did you solve this? I'm having the same issue
JoshWilliams1996 is offline   Reply With Quote

Old   October 15, 2020, 01:06
Default Decision
  #4
New Member
 
Andrey
Join Date: Oct 2020
Posts: 1
Rep Power: 0
Andry is on a distinguished road
After unchecking the "save all elements" and "save parametric coordinates" when exporting the mesh to the GMSH 2.0 ASCII format, the error disappeared
saidc. and cjmarinj like this.
Andry is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 17:42.