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

[Other] orient and/or flip face normals

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2013, 07:54
Default orient and/or flip face normals
  #1
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 14
hfs is on a distinguished road
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 is offline   Reply With Quote

Old   July 3, 2013, 07:56
Default
  #2
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 14
hfs is on a distinguished road
I have got the internal patch after using snappyHexMesh .. and then createBuffles ..
hfs is offline   Reply With Quote

Old   July 3, 2013, 08:05
Default
  #3
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 14
hfs is on a distinguished road
Quote:
Originally Posted by hfs View Post
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:
Attached Images
File Type: jpg pic_1.png;.jpg (20.6 KB, 162 views)
File Type: jpg pic_2.jpg (32.5 KB, 148 views)
File Type: jpg pic_3.jpg (23.9 KB, 124 views)
hfs is offline   Reply With Quote

Old   July 3, 2013, 09:55
Default
  #4
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 14
hfs is on a distinguished road
Detailed description of the problem is posted here:
http://www.cfd-online.com/Forums/ope...tml#post437560
hfs is offline   Reply With Quote

Old   August 14, 2015, 09:46
Default Hi hfs
  #5
Member
 
Manjunath Reddy
Join Date: Jun 2013
Posts: 47
Rep Power: 13
manju819 is on a distinguished road
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.
manju819 is offline   Reply With Quote

Old   February 15, 2018, 05:33
Default
  #6
New Member
 
Sam
Join Date: Nov 2017
Posts: 24
Rep Power: 8
anufagbemi is on a distinguished road
how can you tell if your normals have been flipped or wrong orientation in openfoam/paraview.
anufagbemi is offline   Reply With Quote

Old   May 24, 2018, 15:34
Default
  #7
Member
 
Jaydeep
Join Date: Jun 2015
Posts: 34
Rep Power: 11
jaydeep is on a distinguished road
Open your stl/surface in paraview -
sources >> search >> generate surface normals
then
sources >> glyph >> select normals under vectors
jaydeep 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
Simulating fire in a tunnel luca1992 OpenFOAM 14 August 16, 2017 14:50
Error message: 8 face(s) not in face lists of adjacent cells jyoung79 FLUENT 0 November 10, 2012 17:09
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
Error Orient Face incorrect MK Siemens 5 January 19, 2009 09:46
WARNING: non-positive face area exist. Alan Main CFD Forum 4 August 17, 2006 08:33


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