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

How To Get A value in C In An Output Parameter Based On An Expression In CFD-Post

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Shomaz ul Haq

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2016, 06:08
Default How To Get A value in C In An Output Parameter Based On An Expression In CFD-Post
  #1
Senior Member
 
Shomaz ul Haq
Join Date: Aug 2015
Location: Islamabad, Pakistan
Posts: 205
Rep Power: 12
Shomaz ul Haq is on a distinguished road
Send a message via Skype™ to Shomaz ul Haq
Dear all,

Hi. Hope all are well. I wanted to ask how can I get a workbench output parameter to display a value of an expression of name OutTempRange having a value of maxVal(Temperature)@out - minVal(Temperature)@out It gives a value in K instead of C in workbench parameters tab. The thing is it calculates the difference value first and then subtracts 273.15 to convert it into C. But this gives wrong value obviously in C. I tried subtracting 273.15 from both terms in CFD-Post but it gives error of inconsistent units for subtraction. Would be grateful for help. Thank you.
Shomaz ul Haq is offline   Reply With Quote

Old   April 25, 2016, 07:40
Default
  #2
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12
urosgrivc is on a distinguished road
((maxVal(Temperature)@out - minVal(Temperature)@out)/(1[K]))-273.15

Substract -> divide by 1[K] (so it is dimentionless) -> substract (dimentionless 273.15)

If you divide by 1[unit] units can go away, as you canot substract x[unit]-y[without unit]
even if you would multiply instead substract your expression you would get K^2


if you want you can than also multiply by (1[C]) in the end to get the [C]in the end, but it is problably not necesery. expresion abbove now doesent have units it is just a number.
urosgrivc is offline   Reply With Quote

Old   April 25, 2016, 14:17
Default
  #3
Senior Member
 
Shomaz ul Haq
Join Date: Aug 2015
Location: Islamabad, Pakistan
Posts: 205
Rep Power: 12
Shomaz ul Haq is on a distinguished road
Send a message via Skype™ to Shomaz ul Haq
Thanks a lot urosgrivc! How couldn't I think of that? Thanks brother.
urosgrivc likes this.
Shomaz ul Haq 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
Post processing in CFD Post or Fluent. Blobs OpenFOAM Post-Processing 2 June 26, 2016 08:23
Problem regarding producing streamlines from surfaces in Ansys CFD post gauthamnarayan Visualization & Post-Processing 0 April 23, 2015 17:07
CFD Online Celebrates 20 Years Online jola Site News & Announcements 22 January 31, 2015 01:30
CFD Post - How to check for case in an expression pilakin ANSYS 0 September 26, 2014 05:44
CFD Post Expression over time chart (without monitor point) Badi CFX 1 July 17, 2013 18:22


All times are GMT -4. The time now is 20:08.