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/)
-   -   [snappyHexMesh] Snappy: cell normal orientation on open surface (https://www.cfd-online.com/Forums/openfoam-meshing/86236-snappy-cell-normal-orientation-open-surface.html)

Nolwenn March 17, 2011 09:34

Snappy: cell normal orientation on open surface
 
Hello everybody,

When i use snappyHexMesh on a surface which isn't a closed one I have a problem with cell normals orientation: it isn't uniform on the surface (kind of random between 1 or -1). Normals are well oriented on my .stl file.

Do you know a way to harmonize cell normals orientation after meshing ?

Or maybe SnappyHexMesh isn't confortable with open surface?

andrea.pasquali August 25, 2011 16:39

Hi Nolwenn,
I have the same problem, I'd like to have uniform cellNormal in some faceZones inside my volume.
I tried renumberMesh but without complete success.
Did you found a solution for your problem?

Andrea

Nolwenn August 26, 2011 03:08

Hello Andrea,

No, for the moment I didn't make any progress with this.
Can you tell me if you find something interesting ?

Cheers

Nolwenn

andrea.pasquali August 26, 2011 03:16

1 Attachment(s)
You can see my problem in attached picture,
I'd like to calculate the mass flow rater throgh a faceZone.
The problem is the cellNormal in Z direction are random! (In my starting .stl the normals are uniform).
So if I calculate the mass flow rate with OF function sum(phi) I got error.
I'm thinking to calculate it like sum(phi*sign(normal)).
Do you know if the normal is exportable like a field? I can see it in paraview but I don't see anything in my time or constant directory (I think paraview elaborate it depending on nodes numbering)

Andrea

StSchiff June 29, 2012 06:20

Hi,
I have the same problem. Did you ever find out how to reset the surface normals?
Regards
Stefanie

Nolwenn July 5, 2012 04:40

Hi,
Nothing new ... I extract the values from neighbours cells during post processing.

Nolwenn

prodo June 3, 2015 04:54

Also, I have same problem.

So, Does anyone know how to use surfaceOrient utility?

prodo June 4, 2015 08:41

I solved this problem from surfaceOrient utility
surfaceOrient <surfaceFile> <visiblePoint> <output surface file>

prodo June 4, 2015 08:46

I solved this problem from surfaceOrient utility

chandra shekhar pant December 27, 2021 05:02

Hello,

Could you please help, what is the meaning of <visiblePoint> in your post, I am really finding it hard to use this utility. Any comment/suggestion would be a great help, thanks in advance.

Yann December 27, 2021 13:45

Hi,


Does the documentation helps?
https://www.openfoam.com/documentati...aceOrient.html


Cheers,
Yann

chandra shekhar pant December 28, 2021 05:21

Thanks Yann for your help, but could not figure out the
Code:

point The visible 'outside' point
, what is this referring to ? Could you please explain what that is, any further comment will help me a lot, thanks in advance.

Yann December 28, 2021 07:29

Hi,

It's just a point outside of your geometry, used by the utility do define what is "outside" the geometry and orient the normals accordingly.

So pretty much any coordinate not located inside your geometry will do. (You can set a point very far and that's it).

Of course surfaceOrient will not work if your surface is not closed.

Cheers,
Yann

chandra shekhar pant December 28, 2021 08:01

Thanks a lot Yann for your help, so this point should be outside the "bounding box" or "geometry" without considering any orientation etc ? Sorry for the multiple posts and for being so naive. Thank you very much for your help.

Yann December 28, 2021 09:36

It should be anywhere outside the volume of your surface file. It's just a point coordinates so there is not any notion of orientation.

Once you give this point, surfaceOrient knows which side of the surface is "outside" and which is "inside" and it will set the face normals accordingly.

Cheers,
Yann

chandra shekhar pant December 29, 2021 01:26

Thanks a lot Yann, using your help and guidance I am able to use this utility and achieved the desired goal of proper orientation.


All times are GMT -4. The time now is 08:37.