# If Conditional Expression with Multiple Conditions

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 April 6, 2014, 21:27 If Conditional Expression with Multiple Conditions #1 Senior Member   Ashkan Javadzadegan Join Date: Sep 2010 Posts: 255 Rep Power: 16 Dear all, I need to create the following expression in ANSYS CFX; If Z < Z1, Y = 1.5 mm If Z1=Z4, Y = 1.5mm I am familiar with if statement in CFX: If (cond_expr, true_expr, false_expre); however, I do not know how to define the above expression with 5 conditions. Any help is appreciated.

April 6, 2014, 22:43
#2
Senior Member

Join Date: Feb 2011
Posts: 496
Rep Power: 18
Quote:
 Originally Posted by ashtonJ Dear all, I need to create the following expression in ANSYS CFX; If Z < Z1, Y = 1.5 mm If Z1=Z4, Y = 1.5mm I am familiar with if statement in CFX: If (cond_expr, true_expr, false_expre); however, I do not know how to define the above expression with 5 conditions. Any help is appreciated.
It will be nested IF like this: if(z>z4,1.5[mm],if(z>=z3,a*(Z-Z3)^2+c,if(z>z2,0.75,if(z>=z1,a*(Z-Z2)^2+c,1.5[mm]))))

 April 6, 2014, 22:45 #3 Senior Member   Ashkan Javadzadegan Join Date: Sep 2010 Posts: 255 Rep Power: 16 Thanks very much, Antanas. Roil likes this.

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Saturn CFX 60 July 17, 2024 05:45 [swak4Foam] outputTime in Swak function immortality OpenFOAM Community Contributions 20 October 6, 2022 12:08 rglithro CFX 2 December 7, 2011 11:28 Daggemann FLUENT 1 April 17, 2009 15:43 Roued CFX 1 October 2, 2001 16:49

All times are GMT -4. The time now is 21:53.

 Contact Us - CFD Online - Privacy Statement - Top