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

Conditional expression

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 27, 2014, 12:28
Default Conditional expression
  #1
New Member
 
Djordje
Join Date: Jul 2014
Location: Canada
Posts: 12
Rep Power: 4
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, 12:33
Default
  #2
New Member
 
Djordje
Join Date: Jul 2014
Location: Canada
Posts: 12
Rep Power: 4
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, 20:44
Default
  #3
cwl
Member
 
Chaotic Water
Join Date: Jul 2012
Posts: 72
Rep Power: 6
cwl is on a distinguished road
Send a message via Skype™ to cwl
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, 09:55
Default
  #4
New Member
 
Djordje
Join Date: Jul 2014
Location: Canada
Posts: 12
Rep Power: 4
djordje8 is on a distinguished road
Thanks very much.
djordje8 is offline   Reply With Quote

Reply

Thread Tools
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 On
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 06:16
Conditional Expression in CFX Pre ashtonJ CFX 83 May 28, 2012 03: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 08:13.