CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

How to get Inlet Surface Normal Vector

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By me3840
  • 1 Post By phys-zephyr

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2014, 12:47
Default How to get Inlet Surface Normal Vector
  #1
New Member
 
Join Date: Mar 2014
Location: Switzerland
Posts: 10
Rep Power: 12
phys-zephyr is on a distinguished road
Send a message via Skype™ to phys-zephyr
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
phys-zephyr is offline   Reply With Quote

Old   April 28, 2014, 03:40
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by phys-zephyr View Post
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.
The user guide is an okay place to start, but it's easiest just to browse your simulation tree (Tools > Field Functions) to see what's available. Note that the functions available are influenced by your current simulation setup (eg, Lagrangian information etc).

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
olesen is offline   Reply With Quote

Old   April 28, 2014, 13:13
Default
  #3
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25
me3840 is on a distinguished road
Area is a vector quantity. The direction of the area vector is the surface normal. Do $$Area.
DaveyBaby and Chong070940103 like this.
me3840 is offline   Reply With Quote

Old   April 30, 2014, 03:24
Default
  #4
New Member
 
Join Date: Mar 2014
Location: Switzerland
Posts: 10
Rep Power: 12
phys-zephyr is on a distinguished road
Send a message via Skype™ to phys-zephyr
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
Jon Faried likes this.
phys-zephyr is offline   Reply With Quote

Reply

Tags
field functions, key variables, surface normal vector


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
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


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