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

[Technical] How does checkMesh calculate wrongOrientedFaces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2024, 18:02
Default How does checkMesh calculate wrongOrientedFaces
  #1
New Member
 
Paul Yang
Join Date: Jun 2022
Posts: 2
Rep Power: 0
yjhp1016 is on a distinguished road
Hello, I often get error:" Error in face pyramids: 2 faces are incorrectly oriented." when I do checkMesh. I'm wondering how does checkMesh calculate this? I tried hard in reading source code, but didn't get the idea. Thanks for your help
yjhp1016 is offline   Reply With Quote

Old   March 7, 2024, 03:24
Default
  #2
New Member
 
Cristóbal
Join Date: Jan 2022
Location: Sweden
Posts: 14
Rep Power: 4
cibanez is on a distinguished road
Hi,

To check how those faces look like I recommend you to run checkMesh -writeAllFields to write the faceSet with wrongOrientedFaces and then foamToVTK -faceSet wrongOrientedFaces to generate a file in VTK/faceSet that you can open in Paraview.

A face is categorized as wrongly oriented when the facePyramidVolume becomes negative

Here you can see how a face is categorized as wrongly oriented when its face pyramid volume becames negative:
https://develop.openfoam.com/Develop...shCheck.C#L468

Here you can see how the pyramid volumes are being called. The signs make the volumes positive because the normal face vector points away from the owner cell:
https://develop.openfoam.com/Develop...shTools.C#L582

Here you can check the equation that is used to calculate the pyramid volume. This volume becomes negative when the angle between the height and the face normal is more than 90 degrees. The height vector goes from the face center to the cell center (apex) of either the neighbour or the owner cell.
https://develop.openfoam.com/Develop...pyramidI.H#L80

This means that you will get a wrongly oriented face when the normal of a face points in the opposite direction is supposed to. For a boundary face this means the face is so warped that the normal of the face points inwards to the computational domain instead of outwards.
cibanez 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
How to calculate centerbody thrust of an aerospike nozzle in Fluent Roh FLUENT 5 February 21, 2022 11:30
Is there a way to the same aspect ratio from checkMesh using Paraview? MazenDraw OpenFOAM Pre-Processing 1 January 30, 2020 09:03
How to calculate Turbulent Intensity and Hydraulic Diameter for my problem? Roh FLUENT 1 June 17, 2018 03:12
calculate friction factor & nusselt number soheil1991 FLUENT 3 March 11, 2017 09:30
How to calculate Torque for francis turbine manish CFX 4 March 15, 2007 02:57


All times are GMT -4. The time now is 12:50.