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

Conditional expression

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2014, 13:28
Default Conditional expression
  #1
New Member
 
Djordje
Join Date: Jul 2014
Location: Canada
Posts: 12
Rep Power: 11
djordje8 is on a distinguished road
Hi,

I am trying to set up the inlet turbulence intensity profile. Namely, I want to have one profile up to a certain height and then a different profile after that height. So, this is how I set it up:

(($$Position[2]>0) && ($$Position[2]<0.97)) ? (TI_sub) : (($$Position[2]>=0.97) && ($$Position[2]<=1.5)) ? (TI_water) : 0

TI_sub and TI_water are the turbulence intensities that I defined as another Field functions.

So, I want the following: If the height is in between 0 and 0.97, then use TI_sub; if the height is in between 0.97 and 1.5, then use TI_water; and for any other height use 0.

However, the problem is that StarCCM+ does not see the first profile (the one between 0 and 0.97).

Please could you help me with this?

Thanks,
Djordje
djordje8 is offline   Reply With Quote

Old   July 27, 2014, 13:33
Default
  #2
New Member
 
Djordje
Join Date: Jul 2014
Location: Canada
Posts: 12
Rep Power: 11
djordje8 is on a distinguished road
It looks like it uses only the TI_water profile.
djordje8 is offline   Reply With Quote

Old   July 30, 2014, 21:44
Default
  #3
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 433
Rep Power: 17
cwl is on a distinguished road
Should be

(($$Position[2]>0) && ($$Position[2]<0.97))
?
(TI_sub)
:
( (($$Position[2]>=0.97) && ($$Position[2]<=1.5)) ? (TI_water) : 0 )
cwl is offline   Reply With Quote

Old   July 31, 2014, 10:55
Default
  #4
New Member
 
Djordje
Join Date: Jul 2014
Location: Canada
Posts: 12
Rep Power: 11
djordje8 is on a distinguished road
Thanks very much.
djordje8 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 07:16
Conditional Expression in CFX Pre ashtonJ CFX 83 May 28, 2012 04:49
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 18:23


All times are GMT -4. The time now is 11:59.