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

[Gmsh] GmshToFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2021, 14:20
Default GmshToFoam
  #1
New Member
 
Zivota Lazarevic
Join Date: Mar 2021
Posts: 4
Rep Power: 5
zile96 is on a distinguished road
Hi everyone
I have a problem with conversion of Gmsh mesh to OpenFoam. GmshToFoam utility read physical names, points and cells form .msh file, but when generate "constant folder", there is no patches generated for every physical surface. There is only default patch0.
zile96 is offline   Reply With Quote

Old   March 25, 2021, 06:43
Default
  #2
New Member
 
Join Date: Jul 2011
Posts: 15
Rep Power: 15
nasa55 is on a distinguished road
Quote:
Originally Posted by zile96 View Post
Hi everyone
I have a problem with conversion of Gmsh mesh to OpenFoam. GmshToFoam utility read physical names, points and cells form .msh file, but when generate "constant folder", there is no patches generated for every physical surface. There is only default patch0.

Have you specified both Physical Surface and Physical Volume for your geometry?
nasa55 is offline   Reply With Quote

Old   March 25, 2021, 06:52
Default
  #3
New Member
 
Join Date: Jul 2011
Posts: 15
Rep Power: 15
nasa55 is on a distinguished road
Quote:
Originally Posted by zile96 View Post
Hi everyone
I have a problem with conversion of Gmsh mesh to OpenFoam. GmshToFoam utility read physical names, points and cells form .msh file, but when generate "constant folder", there is no patches generated for every physical surface. There is only default patch0.

Have you tried with a different version of Gmsh? My experience is different from version to version and I suggest follow the tutorials in each version and don't mix them up.
nasa55 is offline   Reply With Quote

Old   March 25, 2021, 06:54
Default
  #4
New Member
 
Zivota Lazarevic
Join Date: Mar 2021
Posts: 4
Rep Power: 5
zile96 is on a distinguished road
Yes, I did. I found the problem. For some reason, when I export .msh file, every element is assigned to physical group 0. That is why gmshToFoam makes one boundary condition.
Anyway, i found solution in exporting to .neu format from Gmsh, and then, with gambitToFoam conversion is done perfectly
zile96 is offline   Reply With Quote

Old   March 27, 2021, 06:58
Default
  #5
New Member
 
Wassim Abdel Nour
Join Date: Feb 2021
Location: France
Posts: 16
Blog Entries: 1
Rep Power: 5
wa$$im is on a distinguished road
I am glad you solved your problem.
But there is a much straighfoward way to do it.

Try specifying the physical groupements as nasa55 said. But verify you specified them well in tools->visibility before exporting the mesh.

This will certainly do it.

Regards.
wa$$im is offline   Reply With Quote

Reply

Tags
gmsh msh format converter, patch surface


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
[Gmsh] gmshToFoam problem. nilashansen OpenFOAM Meshing & Mesh Conversion 11 June 5, 2016 11:45
[Gmsh] Cell to node connectivity after 'gmshToFoam' Jibran OpenFOAM Meshing & Mesh Conversion 1 June 8, 2015 10:09
[Gmsh] gmshTofoam pbm with cyclicAMI acahuzac OpenFOAM Meshing & Mesh Conversion 2 October 20, 2014 04:53
[Gmsh] gmshToFoam command mvinassa OpenFOAM Meshing & Mesh Conversion 1 April 25, 2014 08:36


All times are GMT -4. The time now is 19:02.