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

CFD Post - How to check for case in an expression

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2014, 04:44
Default CFD Post - How to check for case in an expression
  #1
New Member
 
Join Date: Sep 2014
Posts: 12
Rep Power: 11
pilakin is on a distinguished road
I've loaded two cases into cfd post and defined expressions. I need to check the case in one expression to set an appropriate value for each case. e.g. I've got the expression "T 10" for a temperature. If it's case 1 it's supposed to be 10K and if it's case 2 20K.
I've tried
Code:
if(CASE == solution2 1 0, 10 [K], 20[K])
(solution2 1 0 being the name of the first case) but it doesn't work like this. so how do I check for the case in an if conditon?

edit: I worked around it by checking for another constant expression I know the value of for each case. still I'd like to be able to check for the acutal case name though.
pilakin is offline   Reply With Quote

Reply


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
[ANSYS Meshing] Displaying solid domains in CFD Post without meshing them. hda ANSYS Meshing & Geometry 5 October 24, 2016 09:26
calculating output parameter in cfd post markus67 CFX 3 August 26, 2015 09:28
Plotting Radial Velocity and Tangential Velocity in CFD Post ashtonJ CFX 5 July 13, 2015 02:49
static enthalpy calculation in CFD Post newbie384 CFX 2 March 22, 2014 07:28
User CEL Function and CFD Post chastain CFX 4 September 24, 2013 13:58


All times are GMT -4. The time now is 23:10.