|
[Sponsors] |
October 26, 2020, 18:58 |
Mesh Conversion Error (gmshToFoam)
|
#1 |
Member
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7 |
Hi All,
Hope everyone is doing well. I was trying to convert my mesh (unstructured) from Gmsh to OpenFoam. The mesh conversion looks ok but in checkMesh shows an error (high aspect ratio cell). I can not understand why the error occurs as there wasn't any error while meshing in Gmsh. I noticed as the mesh refinement increases the number of errors also increase after conversion. For a better understanding of my question, I attached the *.geo and error file with this post. Feel free to check it. Can anyone explain to me what causes this error? How can I overcome this issue? I will appreciate any little suggestions. Thank you very much in advance. Cheers Razon |
|
November 1, 2020, 07:58 |
|
#2 | |
Member
Rohit George Sebastian
Join Date: May 2017
Posts: 41
Rep Power: 9 |
Quote:
I am not an expert in meshing, but I can try to help with what little I do know. Gmsh and checkMesh probably check for different mesh criteria. I have very little experience with Gmsh, and so I am not even sure what kind of mesh checks Gmsh does, or if it even does any by default. But Gmsh is a general purpose meshing tool, and the quality criteria for meshes used in FEM and FVM are different. For instance, at my previous job, a mesh that was generated in Gmsh and worked fine in Abaqus caused the simulation to crash in OpenFOAM. This is not because OpenFOAM is inferior or has stricter requirements - just different requirements. I haven't seen your geometry, or your geo file, but I am guessing that there are some regions that Gmsh is finding difficult to mesh. And the finer the mesh resolution, the more bad elements there are because the more elements are generated in this region. One thing you can try is to scale up your model (make it for instance 100 times bigger than what it should be), and then scale the results you get from your simulation. Working with a bigger geometry means that Gmsh has more room to make elements while sticking to the defined tolerances, and you should get a better quality mesh. You can also try to set some quality criteria in Gmsh. With my very limited experience with Gmsh, I cannot guide you here other than to suggest reading the Gmsh manual. You can still try to run the simulation with your mesh, and depending on what kind of simulation case it is, where these bad elements are, and what settings you use, you may get your simulation to converge. |
||
November 1, 2020, 21:00 |
|
#3 | |
Member
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7 |
Quote:
Hi Rohit, Thank you for your useful suggestions. This will be really helpful for me. BTW, I am also not an expert in Gmsh. I have a rudimentary knowledge in Gmsh. Though I haven't ran the simulation yet with this mesh, it has to be checked first. If that crush, I will go through the other suggestions that you made here. Cheers Razon |
||
November 8, 2020, 21:45 |
|
#4 | |
Member
Mondal
Join Date: Sep 2018
Location: Canberra ACT
Posts: 68
Rep Power: 7 |
Quote:
The issue has been resolved.. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GeometricField -> mesh() Function | Tobi | OpenFOAM Programming & Development | 10 | November 19, 2020 11:33 |
[Commercial meshers] Thin Walls Conversion from Fluent Mesh | Isaac | OpenFOAM Meshing & Mesh Conversion | 1 | March 4, 2016 12:08 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 09:38 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 21:11 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 11:55 |