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

OpenFOAM skewness calculation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2024, 04:14
Default OpenFOAM skewness calculation
  #1
New Member
 
Petros Lazaris
Join Date: Dec 2020
Posts: 6
Rep Power: 5
PetrosLazaris is on a distinguished road
Hello to everyone.

I have used the checkMesh utility and it reported that I have some highly skewed faces and some severely non-orthogonal faces in my mesh.

This information is useful to me, however I want to know what is the face with the maximum skewness and the maximum non-orthogonality in my mesh. So is there any way to print the skewness/non-orthogonality field in my mesh or print the skewness/non-orthogonality of the problematic faces ?

Thank you very much in advance.
PetrosLazaris is offline   Reply With Quote

Old   March 22, 2024, 04:38
Default
  #2
Member
 
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 59
Rep Power: 3
unilord is on a distinguished road
Quote:
Originally Posted by PetrosLazaris View Post
Hello to everyone.

I have used the checkMesh utility and it reported that I have some highly skewed faces and some severely non-orthogonal faces in my mesh.

This information is useful to me, however I want to know what is the face with the maximum skewness and the maximum non-orthogonality in my mesh. So is there any way to print the skewness/non-orthogonality field in my mesh or print the skewness/non-orthogonality of the problematic faces ?

Thank you very much in advance.
Hey

The command you should use is:

Code:
checkMesh -writeSets vtk
This will write the cell sets with nonOrthogonality or skewness higher than the defined in the meshQualityDict directory. It is written in a /postProcessing folder. You can then open paraview and open the .vtk files. Usually what I do to have a better visualisation is to have the whole geometry with a reduced opacity, and open the .vtk sets with "surface and edges".

Best Regards,
Pedro

P.S. - I recommend you to use the command
Code:
 checkMesh -allGeometry -allTopology
since it gives you more insights regarding the mesh.
unilord is offline   Reply With Quote

Old   March 22, 2024, 04:45
Default
  #3
New Member
 
Petros Lazaris
Join Date: Dec 2020
Posts: 6
Rep Power: 5
PetrosLazaris is on a distinguished road
Thank you very much for your answer.

However, the utility you just told me to use does not print the skewness values, but only the id numbers of the highly skewed faces. I want the values of skewness of each face.
PetrosLazaris is offline   Reply With Quote

Old   March 22, 2024, 04:54
Default
  #4
Member
 
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 59
Rep Power: 3
unilord is on a distinguished road
Quote:
Originally Posted by PetrosLazaris View Post
Thank you very much for your answer.

However, the utility you just told me to use does not print the skewness values, but only the id numbers of the highly skewed faces. I want the values of skewness of each face.
Ok I understand what you want now. I know that is possible to do, since I already did it. However, I believe only with ESI versions. Since I stopped using that function a long time ago since I do my pre processing in SALOME, I can't really help you. I remember I saw it in a video of József Nagy in youtube.

Let's hope someone else knows how to do this.
unilord is offline   Reply With Quote

Old   March 22, 2024, 04:56
Default
  #5
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,068
Rep Power: 26
Yann will become famous soon enough
In the OpenCFD branch (openfoam.com) you can use the -writeAllFields and -writeAllSurfaceFields options when running checkMesh.
https://www.openfoam.com/news/main-n...sing#checkmesh

This is not available in the foundation branch (openfoam.org)
unilord likes this.
Yann is offline   Reply With Quote

Old   March 26, 2024, 04:12
Default
  #6
New Member
 
Petros Lazaris
Join Date: Dec 2020
Posts: 6
Rep Power: 5
PetrosLazaris is on a distinguished road
Thak you very much for your answer.

Is there any way to do this in OpenFOAM.org too, by writing a custom c++ script ?
PetrosLazaris 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
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 14, 2016 10:19
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
Molecular viscosity calculation in LES on OpenFOAM babakflame OpenFOAM 0 January 26, 2014 04:13
The calculation efficiency of OpenFOAM chiven OpenFOAM Running, Solving & CFD 4 September 14, 2009 04:44
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56


All times are GMT -4. The time now is 05:32.