Re: Detection of non-orthogonal and skew faces for OpenFOAM meshes
Re: Detection of non-orthogonal and skew faces for OpenFOAM meshes


Hello together,
I created a script for detecting non-orthogonal and skew faces in Salome meshes for OpenFOAM applications. I find it very handy to already change and improve the mesh before converting it to OpenFOAM. The two attached picture shows the detected faces in the salome viewer (actually it show the element pairs enclosing a detected face) and the 'nonOrthoFaces' set created by OpenFOAM's checkMesh utility in paraView.
The source and an example case can be cloned from this repository:
https://github.com/FynnAschmoneit/nonOrthogonalityCheckSalome.git
I hope this script is of some help I'd be happy for some feed back or suggestions for improvements.
Fynn
Re: Detection of non-orthogonal and skew faces for OpenFOAM meshes

Hi Fynn,
Thanks for your sharing , however, I don't find the right way to use your script. Could you please tell me exactly what we need to do?
I tried with no results to export/import Python script or run directly your script in python consol.
Regards,
Samuel
Re: Detection of non-orthogonal and skew faces for OpenFOAM meshes

Hi Samuel,
You may do the following:
//add the path for the folder that contains the "meshCheckTestCase.py" by writing the following command on the Python Console:
import sys
sys.path.insert( 0, r"/the/path/for/your/folder")
//load the script for "meshCheckTestCase" from the GUI or using the following command:
execfile(r"/the/path/for/your/folder/that/contains/the/test/case/meshCheckTestCase.py")
Saleh