CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

"If" Statement in Fluent CFD Post Expressions?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2019, 00:10
Default "If" Statement in Fluent CFD Post Expressions?
  #1
New Member
 
Join Date: Jan 2019
Location: Jakarta, Indonesia
Posts: 7
Rep Power: 7
danisnug is on a distinguished road
I read many discussions in this forum on using if statement by expressing if(condition, true, false), but I have no idea whether it can be used on Fluent or not.

Can I also use this if statement in Fluent CFD Post Expressions?

------edit:

It turns out that the statement works in Fluent CFD Post.

However, I have difficulties in expressing the statement:

Quote:
if(2.38*(Clothing Temperature-Temperature/(1[K]))^.25 > 12.1*sqrt(Velocity/(1[m s^-1])), 2.38*(Clothing Temperature-Temperature/(1[K]))^.25, 12.1*sqrt(Velocity)/(1[m s^-1]))
The expression above has error:

Quote:
ERROR
Error in 'if' statement at position 1. The 'true' and 'false' expressions have inconsistent dimensions.
I have deleted both the dimension for temperature and velocity on the expression above but the error said that it still has inconsistent dimension. The expression 'Clothing Temperature' is dimensionless.

Can anyone help?
danisnug is offline   Reply With Quote

Reply

Tags
cfd post, expressions, fluent


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW TO SHOW TIME IN ANIMATION IN Fluent CFD POST niazgdc FLUENT 0 October 12, 2017 03:58
Kinetic energy in Fluent of CFD Post s.petley FLUENT 0 September 21, 2017 15:32
Post processing in CFD Post or Fluent. Blobs OpenFOAM Post-Processing 2 June 26, 2016 08:23
Create animation from FLUENT data in CFD Post? ptstorey FLUENT 2 January 30, 2015 10:41
CFD post, expressions help robcowlam FLUENT 0 February 21, 2012 15:14


All times are GMT -4. The time now is 15:45.