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

[snappyHexMesh] boundary layer step checkmesh vs stand-alone checkmesh discrepancy

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2025, 07:21
Default boundary layer step checkmesh vs stand-alone checkmesh discrepancy
  #1
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 377
Rep Power: 10
geth03 is on a distinguished road
hi all,

i was playing around with shm for a very basic case, just a cube inside a background mesh (see attachment).

my mesh is rather coarse, i was testing the limits of boundary layer extrusion compared with the rather coarse background mesh.

during the boundary layer addition steps the mesh control does not complain about quality:

Code:
Checking mesh with layer ...
Checking faces in error :
    non-orthogonality > 70  degrees                        : 0
    faces with skewness > 4   (internal) or 20  (boundary) : 0
Detected 0 illegal faces (concave, zero area or negative cell pyramid volume)
Extruding 24 out of 24 faces (100%). Removed extrusion at 0 faces.
Added 792 out of 792 cells (100%).
Edge intersection testing:
    Number of edges             : 35760
    Number of edges to retest   : 0
    Number of intersected edges : 816
Writing 792 added cells to cellSet addedCells
Writing 768 faces inside added layer to faceSet layerFaces

Writing fields with layer information:
    nSurfaceLayers    : actual number of layers
    thickness         : overall layer thickness
    thicknessFraction : overall layer thickness (fraction of desired thickness)


patch faces    layers   overall thickness
                      [m]       [%]
----- -----    ------   ---       ---
Box 24       33       6.12      50

Layer mesh : cells:11432  faces:35760  points:13024
Cells per refinement level:
    0   11432
Writing mesh to time constant
Wrote mesh in = 0.121854 s.
Layers added in = 0.12185 s.
Checking final mesh ...
Checking faces in error :
    non-orthogonality > 70  degrees                        : 0
    faces with skewness > 4   (internal) or 20  (boundary) : 0
Finished meshing without any errors
Finished meshing in = 1.01829 s.
End

however, when i execute checkmesh in stand-alone mode, i get this:

Code:
Checking geometry...
    Overall domain bounding box (-40 -40 -40) (50 50 50)
    Mesh has 3 geometric (non-empty/wedge) directions (1 1 1)
    Mesh has 3 solution (non-empty) directions (1 1 1)
 ***High aspect ratio cells found, Max aspect ratio: 1967.29, number of cells 48
    Minimum face area = 0.0126368. Maximum face area = 81.8758.  Face area magnitudes OK.
    Min volume = 0.0552352. Max volume = 349.537.  Total volume = 728000.  Cell volumes OK.
    Mesh non-orthogonality Max: 81.2485 average: 7.0263
   *Number of severely non-orthogonal (> 70 degrees) faces: 27.
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 2.50041 OK.
    Coupled point location match (average 0) OK.

Failed 1 mesh checks.

End
that is a very strange behaviour.

when i increase the layer count further, i get the same outcome, but a worse quality value in checkmesh, nearly 90 max value for non-ortho..
Attached Images
File Type: jpg cubeMesh.jpg (74.4 KB, 8 views)
geth03 is offline   Reply With Quote

Old   November 11, 2025, 08:56
Default
  #2
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 377
Rep Power: 10
geth03 is on a distinguished road
oh crap, i found it.
i was saving in ascii with limited precision,
when i changed to binary the discrepancy disappeared.
my bad.
geth03 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 19:02
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
Prismatic boundary layer KateEisenhower enGrid 5 September 15, 2015 08:48
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
Validity & transformation of boundary layer equations Obad Main CFD Forum 2 April 27, 2015 03:59


All times are GMT -4. The time now is 01:31.