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 |
I have got the internal patch after using snappyHexMesh .. and then createBuffles ..
|
3 Attachment(s)
Quote:
|
Detailed description of the problem is posted here:
http://www.cfd-online.com/Forums/ope...tml#post437560 |
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. |
how can you tell if your normals have been flipped or wrong orientation in openfoam/paraview.
|
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. |