CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Visualization & Post-Processing

If and ElseIf in CFD Post Expression

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2023, 14:19
Wink If and ElseIf in CFD Post Expression
  #1
New Member
 
Farsheedd
Join Date: Dec 2020
Posts: 1
Rep Power: 0
Farsheedd is on a distinguished road
Hello.
Today I solved a problem of mine with Else and Else If expression in cfd post. so I want to share it with you. The If ElseIf statement in CFD Post is:
if(condition, if(condition, true statement, false statement))
as you know the simple If is:
if(condition, true statement, false statement)
so, you can make loops. Here is a sample:

if(X>0[m],atan(Y/X),if(X<0[m],atan(Y/X)+180[deg],90[deg]))

Hope it will be useful
Farsheedd is offline   Reply With Quote

Reply

Tags
ansys, cfd, cfdpost, fluent, ifelseif

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:38.