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, 09:18
Default [CFX-Post] Unit Conversion in Expression
  #1
Member
 
Marcel Jay
Join Date: Jun 2014
Location: Berlin
Posts: 52
Rep Power: 12
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, 09:49
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
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, 10:05
Default
  #3
Member
 
Marcel Jay
Join Date: Jun 2014
Location: Berlin
Posts: 52
Rep Power: 12
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, 12:28
Default
  #4
Member
 
Join Date: Nov 2011
Location: Germany
Posts: 40
Rep Power: 15
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, 12:17
Default
  #5
Senior Member
 
Edmund Singer P.E.
Join Date: Aug 2010
Location: Minneapolis, MN
Posts: 511
Rep Power: 21
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

Old   July 16, 2024, 10:52
Default
  #6
New Member
 
Marshall McCray
Join Date: Mar 2023
Location: Houston, TX
Posts: 10
Rep Power: 3
marshallmccray is on a distinguished road
Adding to @singer1812 's response. If you just want custom units on the frame, a workaround would be to divide the variable by its own units to make it dimensionless, then manually add a text string of units next to the Auto Annotation. For example, to convert seconds to minutes, create new expression timeminutes = t/(60 [s]) then put text string "minutes" next to the auto annotation. See screenshot.
Attached Images
File Type: png cfd-post-units.png (3.3 KB, 4 views)
marshallmccray 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 07:16
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 18:23
Unit of Expression Fing CFX 2 May 27, 2004 11:17


All times are GMT -4. The time now is 03:59.