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

[Gmsh] checkmesh errors gmshtofoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 31, 2019, 10:10
Default checkmesh errors gmshtofoam
  #1
New Member
 
mariloo's Avatar
 
Mariya Verkhovodova
Join Date: Dec 2019
Posts: 11
Rep Power: 6
mariloo is on a distinguished road
Hello everybody, I am new to this forum. I am facing some problems when running checkmesh on Openfoam, in fact I get some errors and I've spent days trying to improve my mesh (I use Gmsh), but without any results.
Does anybody have an idea on how to fix this? Thanks id advance.

This is the error I get:

Checking geometry...
Overall domain bounding box (-0.999 -1.665 -0.1) (4.995 1.665 0)
Mesh has 3 geometric (non-empty/wedge) directions (1 1 1)
Mesh has 3 solution (non-empty) directions (1 1 1)
Boundary openness (-4.67483e-18 -3.16565e-18 9.91875e-17) OK.
***Open cells found, max cell openness: 1, number of open cells 43
<<Writing 43 non closed cells to set nonClosedCells
<<Writing 3 cells with high aspect ratio to set highAspectRatioCells
Minimum face area = 4.99645e-09. Maximum face area = 0.164094. Face area magnitudes OK.
***Zero or negative cell volume detected. Minimum negative volume: -8.26824e-11, Number of negative volume cells: 2
<<Writing 2 zero volume cells to set zeroVolumeCells
Mesh non-orthogonality Max: 161.036 average: 23.3116
*Number of severely non-orthogonal (> 70 degrees) faces: 279.
***Number of non-orthogonality errors: 38.
<<Writing 317 non-orthogonal faces to set nonOrthoFaces
***Error in face pyramids: 50 faces are incorrectly oriented.
<<Writing 48 faces with incorrect orientation to set wrongOrientedFaces
Max skewness = 3.12096 OK.
Coupled point location match (average 0) OK.

Failed 4 mesh checks.
Attached Files
File Type: zip NACA0012.zip (12.4 KB, 8 views)
mariloo is offline   Reply With Quote

Old   December 31, 2019, 15:35
Default
  #2
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
The problem is not the checkMesh but the script. The script is indeed an interesting effort for boundary layer meshing but the quality of the mesh produced, specially in the bl is no good.


So I can advise two options for this kind of problem:


1. Use the native boundary layer function (field actually) of the gmsh. It is more effective, fast and easy.


2. Install and use the open-source tool Construct2D for meshing fully hex, probably the best option at all.
mzzmrt is offline   Reply With Quote

Old   January 3, 2020, 04:00
Default
  #3
New Member
 
mariloo's Avatar
 
Mariya Verkhovodova
Join Date: Dec 2019
Posts: 11
Rep Power: 6
mariloo is on a distinguished road
Thank you very much for your advices. The problem is that I wanted to do a 3D mesh but Gmsh supports only a 2D boundary layer mesh.
mariloo is offline   Reply With Quote

Old   January 3, 2020, 12:24
Default
  #4
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
You can always extrude this 2D boundary layer mesh to get 3D for simple wing geometries easily if you are looking for a pseudo-3D mesh for OpenFOAM.



On the other hand, if your 3D wing geometry is too complex this will be a different story.
mzzmrt is offline   Reply With Quote

Old   November 18, 2021, 08:39
Default number of cells in BL
  #5
Member
 
Arthur
Join Date: Aug 2014
Location: Italy
Posts: 47
Rep Power: 11
Artur.Ant is on a distinguished road
Recently I had the same problem and I solved it decreasing a little the number of cells within BL keeping y+<1
Artur.Ant is offline   Reply With Quote

Old   December 20, 2021, 04:47
Default
  #6
Member
 
Arthur
Join Date: Aug 2014
Location: Italy
Posts: 47
Rep Power: 11
Artur.Ant is on a distinguished road
Some ubdate on this:

After some other manipulation of the mesh I concluded that creating manually the boundary layer is not possible because of how the geometry is treated by Gmsh (especially in zones with curvature).

What I usually do is to create a structured mesh (especcially near walls) and to generate the BL with snappyHexMesh in OpenFoam.

Otherwise maybe one sould use the boundary layer function implemented in GMSH and not creating by hand the boundary layer.
Artur.Ant 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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 05:28
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 16:56.