|
[Sponsors] |
If Conditional Expression with Multiple Conditions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 6, 2014, 21:27 |
If Conditional Expression with Multiple Conditions
|
#1 |
Senior Member
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 17 |
Dear all,
I need to create the following expression in ANSYS CFX; If Z < Z1, Y = 1.5 mm If Z1=<Z<=Z2, Y= a*(Z-Z2)^2+c If Z2<Z<Z3, Y = 0.75 If Z3=<Z<=Z4, Y= a*(Z-Z3)^2+c If Z>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:
|
||
April 6, 2014, 22:45 |
|
#3 |
Senior Member
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 17 |
Thanks very much, Antanas.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 05:45 |
[swak4Foam] outputTime in Swak function | immortality | OpenFOAM Community Contributions | 20 | October 6, 2022 12:08 |
CEL expression for controlling an energy source with respect to time | rglithro | CFX | 2 | December 7, 2011 11:28 |
How to set multiple boundary conditions? | Daggemann | FLUENT | 1 | April 17, 2009 15:43 |
CFX 5.5 | Roued | CFX | 1 | October 2, 2001 16:49 |