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

[mesh manipulation] Incorrect (as I suppose) calculation of skewness by checkMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2018, 07:36
Question Incorrect (as I suppose) calculation of skewness by checkMesh
  #1
New Member
 
Kirils Surovovs
Join Date: Jul 2013
Posts: 3
Rep Power: 12
Kirils is on a distinguished road
Hello! Short summary of the problem: it seems that checkMesh utility calculates cell skewness incorrectly.

The more detailed description. I create a 2D mesh using the blockMeshDict from the attachment. Regular non-orthogonal mesh is created. I show an example in the attachment, but the mesh looks the same everywhere. When I run checkMesh, it says:
Code:
Max skewness = 1.825084 OK.
However, according to the code in the file OpenFOAM-2.1.1/src/meshTools/cellQuality
Code:
        scalar dOwn = mag
        (
            (faceCtrs[faceI] - cellCtrs[own[faceI]]) & areas[faceI]
        )/mag(areas[faceI]);

        scalar dNei = mag
        (
            (cellCtrs[nei[faceI]] - faceCtrs[faceI]) & areas[faceI]
        )/mag(areas[faceI]);

        point faceIntersection =
            cellCtrs[own[faceI]]
          + (dOwn/(dOwn+dNei))*(cellCtrs[nei[faceI]] - cellCtrs[own[faceI]]);

        scalar skewness =
            mag(faceCtrs[faceI] - faceIntersection)
           /(mag(cellCtrs[nei[faceI]] - cellCtrs[own[faceI]]) + VSMALL);
and to the definition of skewness in this Wiki page (https://openfoamwiki.net/index.php/CheckMesh), the skewness value should be exactly zero, because every line that connects two cell centers goes exactly through the face center!

The same problem happens in all OpenFOAM versions. Does anyone have any idea why does it happen? I append also the whole case folder in the attachments, for easier replication. Just unzip it and run blockMesh and checkMesh.
Attached Images
File Type: png mesh-zoom.png (1.6 KB, 13 views)
Attached Files
File Type: txt blockMeshDict.txt (1.5 KB, 2 views)
File Type: zip test.zip (5.1 KB, 3 views)
Kirils is offline   Reply With Quote

Reply

Tags
checkmesh, skewness


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
Questions on Boundary Layer Spring Method for 3D Calculation didiean FLUENT 15 December 18, 2014 21:09
[Netgen] Import netgen mesh to OpenFOAM hsieh OpenFOAM Meshing & Mesh Conversion 32 September 13, 2011 05:50
MRF and Heat transfer calculation Susan YU FLUENT 0 June 2, 2010 08:46
Unsteady Statistics- incorrect calculation, etc. John FLUENT 0 June 27, 2007 19:04
Warning 097- AB Siemens 6 November 15, 2004 04:41


All times are GMT -4. The time now is 10:03.