|
[Sponsors] |
How to define multipy conditions in Fluent named expression? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Oscar Shen
Join Date: Jan 2020
Posts: 4
Rep Power: 6 ![]() |
Hi,
I know how to use basic conditional function for single conditon in Fluent, for exemple: IF(x>0,1,0). However, I don't know how to define multiple conditions. For exemple, I want IF(x>0 && y>0 && z>0,1,0) but "&&" doesn't work in Fluent expression language. Do you guys have an idea about how to solve that? Does anyone know how "AND" , "OR" and "NOT" function work in Fluent named expression? I can't find any information about these founctions online. Thanks! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
|
In Fluent's expression language, you have to do it like this
AND(expr1, expr2) Since the output is true or false, IF is not required. You can nest these.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
![]() |
![]() |
![]() |
Tags |
expression editor, expressions |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Near wall treatment in k-omega SST | Arnoldinho | OpenFOAM Running, Solving & CFD | 38 | March 8, 2017 13:48 |
How to define parameters for multi periodic boundary conditions in Fluent | uuusheng | FLUENT | 1 | October 14, 2014 06:48 |
Fluent boundary conditions problem | bobo | FLUENT | 2 | July 3, 2009 06:28 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 11:48 |
REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 08:23 |