|
[Sponsors] |
April 25, 2014, 12:47 |
How to get Inlet Surface Normal Vector
|
#1 |
New Member
|
Dear all,
I am new in Star-CCM+ and thus I am not sure whether I simply did not find the answer in the tutorials or the user guide, but I can not believe that this is not accessible: How can I get the normal vector of my inlet surface? As My geometry is rather complex and not of special orientation, the derivation of the surface normal vector is not straightforward. But as in the view options of the geometry scene one can select "Align View to Surface Normal", this has to be accessible somehow. I imagine something like $SurfaceNormal(Inlet)... I need this variable to set the inlet velocity vector, which has to be perpendicular to the inlet surface. This immediately leads me to the second question: Where can I look up how any variables/quantities can be accessed? Is there somewhere a lookup table for $Position, $Centroid, etc.? I only found those from the "Volume Meshing Field Functions Reference"-part in the Star-CCM+ user guide. Or where do you get all the necessary key variables from? Many thanks for any suggestions/ideas in advance. Cheers |
|
April 28, 2014, 03:40 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
To figure out something like a surface-normal of your inlet, you'll need to jump through a few extra hoops and probably need to write it as your own type of StarMacro. Unless you need full automationm however, the simplest is to simply define a local coordinate system on your inlet region by picking three points in the geometry scene. You can either use this coordinate system when defining/using field functions. Or, if you query the three basis vectors from the coordinate system. Of course, if you are just trying to define a surface-normal velocity, it is all even easier: "Boundary-Normal" is one of the standard STARCCM methods that can be used as the "Flow Direction Specification" for velocity and mass-flow boundaries. /mark |
||
April 28, 2014, 13:13 |
|
#3 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
Area is a vector quantity. The direction of the area vector is the surface normal. Do $$Area.
|
|
April 30, 2014, 03:24 |
|
#4 |
New Member
|
Many thanks for your help! I already managed to solve the problem. Indeed, $$Area gives you the surface vector, to get the surface normal, use $$Area/$$Area.mag()
Cheers |
|
Tags |
field functions, key variables, surface normal vector |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Surface tension - normal or tangential ? | manxu | Main CFD Forum | 5 | October 23, 2013 13:39 |
[ICEM] Automatic mesh generation script surface intersection problem | stuart23 | ANSYS Meshing & Geometry | 0 | May 13, 2011 02:10 |
[Gmsh] boundaries with gmshToFoam | ouafa | OpenFOAM Meshing & Mesh Conversion | 7 | May 21, 2010 13:43 |
ATTENTION! Reliability problems in CFX 5.7 | Joseph | CFX | 14 | April 20, 2010 16:45 |
what the result is negatif pressure at inlet | chong chee nan | FLUENT | 0 | December 29, 2001 06:13 |