CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Other] orient and/or flip face normals (https://www.cfd-online.com/Forums/openfoam-meshing/120255-orient-flip-face-normals.html)

hfs July 3, 2013 07:54

orient and/or flip face normals
 
Hi,

How can we orient or flip face normals? I have an internal patch .. some of its faces have reverse normals so I have to flip them. Any ideas?

Regards

hfs July 3, 2013 07:56

I have got the internal patch after using snappyHexMesh .. and then createBuffles ..

hfs July 3, 2013 08:05

3 Attachment(s)
Quote:

Originally Posted by hfs (Post 437532)
Hi,

How can we orient or flip face normals? I have an internal patch .. some of its faces have reverse normals so I have to flip them. Any ideas?

Regards

ScreenShots:

hfs July 3, 2013 09:55

Detailed description of the problem is posted here:
http://www.cfd-online.com/Forums/ope...tml#post437560

manju819 August 14, 2015 09:46

Hi hfs
 
You can use the flip option to revert the normals.

for example this is my cyclic patch

cyclicFaces1
{
type faceZone;
zoneName jetFan1;
patches
{
master
{
name jetFan1_half0;
type cyclic;
featureCos 0.9;
neighbourPatch jetFan1_half1;
}
slave
{
name jetFan1_half1;
type cyclic;
featureCos 0.9;
neighbourPatch jetFan1_half0;
}
}
}


which get the directions by default from the mesh orientation. Now If want to revert I put the option flip true; as shown below



cyclicFaces1
{
type faceZone;
zoneName jetFan1;
flip true;
patches
{
master
{
name jetFan1_half0;
type cyclic;
featureCos 0.9;
neighbourPatch jetFan1_half1;
}
slave
{
name jetFan1_half1;
type cyclic;
featureCos 0.9;
neighbourPatch jetFan1_half0;
}
}
}

and then if you run createBaffles it will revert the normals.

anufagbemi February 15, 2018 05:33

how can you tell if your normals have been flipped or wrong orientation in openfoam/paraview.

jaydeep May 24, 2018 15:34

Open your stl/surface in paraview -
sources >> search >> generate surface normals
then
sources >> glyph >> select normals under vectors


All times are GMT -4. The time now is 20:00.