|
[Sponsors] |
[Gmsh] Trying to convert an already generated gmsh to OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 7, 2019, 02:08 |
Trying to convert an already generated gmsh to OpenFOAM
|
#1 |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Dear mates,
I am new to Gmsh. I have tried to convert an existing 3-D gmsh file to OpenFOAM format using gmshToFoam utility. I was successful in opening the grid file and I have assigned names to the 2-D surfaces using Physical Groups-->Add. Also, I specified name to the volume. I have attached the geo file for more information (I have renamed it to txt so I can upload it!). However, when I try to convert the modified gmsh file using gmshToFoam utility, I get messages like the following: Code:
Unhandled element 12 at line ... Code:
No cells read from file "test4" Does your file specify any 3D elements (hex=5, prism=6, pyramid=7, tet=4)? Perhaps you have not exported the 3D elements? file: test4 at line 620821. From function readCells(..) in file gmshToFoam.C at line 726. FOAM exiting http://www.as.dlr.de/hiocfd/c3.6_gri...x32_p2.msh.bz2 The question is what I am doing wrong? Could anyone please tell me where the problem lies? Regards, Syavash |
|
May 7, 2019, 04:16 |
|
#2 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 12 |
This may be a solution unless you don't have the original *.geo script of this mesh;
1. Open the file (phill_64x32x32_p2_gmsh) with gmsh 2. Create a 3D mesh with it (on the left menu: mesh>3D) 3. File>export test.mesh (as version 2 ascii format) 4. put this *.msh in the OpenFOAM case directory 5. run gmshToFoam test.msh 6. run autoPatch 80 - overwrite 7. run paraFoam to check the pacth names 8. configure the boundary, nut, U, P, etc. files according to this patch names (or change them in the boundary file) and types... Last edited by mzzmrt; May 7, 2019 at 06:34. Reason: image upload |
|
May 7, 2019, 07:46 |
|
#3 |
Senior Member
Syavash Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 |
Quote:
Wow! Thank you. The creation of the 3-D mesh did the trick. Kind Regards, Syavash |
|
March 11, 2020, 10:15 |
|
#4 |
New Member
Arash
Join Date: May 2017
Posts: 17
Rep Power: 8 |
Quote:
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 11:58 |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 25 | August 14, 2022 13:55 |
Can't convert my mesh created in Gmsh to OpenFOAM | Crystal 95 | OpenFOAM | 1 | May 2, 2018 10:42 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 13:36 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 09:04 |