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

[CFX-Post] Unit Conversion in Expression

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2014, 08:18
Default [CFX-Post] Unit Conversion in Expression
  #1
Member
 
Marcel Jay
Join Date: Jun 2014
Location: Berlin
Posts: 52
Rep Power: 11
marcel_jay is on a distinguished road
Hello CFD Online Community,

I have an issue with changing the unit of an expression in CFD Post.

Quote:
area()@Outlet
would get me
Quote:
0.000199688 [m^2]
I want the result to be in mm^2 though. Multiplying by 1000^2 works, but it's still in m^2.

Quote:
area()@Auslass * (1000^2) * 1[mm/m]
Something like this even changes the result.

Would be glad if somebody ever solved that issue.

Marcel
marcel_jay is offline   Reply With Quote

Old   July 30, 2014, 08:49
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
Why not just change your unit system to custom in the options? Then change length and area to the units you want.
evcelica is offline   Reply With Quote

Old   July 30, 2014, 09:05
Default
  #3
Member
 
Marcel Jay
Join Date: Jun 2014
Location: Berlin
Posts: 52
Rep Power: 11
marcel_jay is on a distinguished road
Thanks for the advice, but it won't work for Custom.
If I set Newton Millimeter as the system, it would display them in mm, but not for custom. What do i do wrong?
marcel_jay is offline   Reply With Quote

Old   July 31, 2014, 11:28
Default
  #4
Member
 
Join Date: Nov 2011
Location: Germany
Posts: 40
Rep Power: 14
TrII4d is on a distinguished road
Try to change the "Solution Units" under "Solver" in CFX-Pre and run CFX-solve again
TrII4d is offline   Reply With Quote

Old   August 4, 2014, 11:17
Default
  #5
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 20
singer1812 is on a distinguished road
Keep it unitless. What are you using this for? Just output to something else? If so just call the expression something like this so you know what it is:

area Auslass mm = area()@Auslass * (1000^2) *1[m^-2]
singer1812 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
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 06:16
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 17:23
Unit of Expression Fing CFX 2 May 27, 2004 10:17


All times are GMT -4. The time now is 01:41.