CFD Online Discussion Forums

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

hfs July 3, 2013 06: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 06:56

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

hfs July 3, 2013 07: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 08:55

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

manju819 August 14, 2015 08: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.


All times are GMT -4. The time now is 17:49.