|
[Sponsors] |
If Conditional Expression with Multiple Conditions |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#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. |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
Senior Member
Join Date: Feb 2011
Posts: 496
Rep Power: 18 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 17 ![]() |
Thanks very much, Antanas.
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
[swak4Foam] outputTime in Swak function | immortality | OpenFOAM Community Contributions | 20 | October 6, 2022 13:08 |
CEL expression for controlling an energy source with respect to time | rglithro | CFX | 2 | December 7, 2011 12:28 |
How to set multiple boundary conditions? | Daggemann | FLUENT | 1 | April 17, 2009 16:43 |
CFX 5.5 | Roued | CFX | 1 | October 2, 2001 17:49 |