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

using dimensional variables as dimentionless

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2015, 12:02
Default using dimensional variables as dimentionless
  #1
Member
 
hani mortezaee
Join Date: Sep 2014
Posts: 30
Rep Power: 11
h.mortezaee is on a distinguished road
hi everyone , im trying to define an expression for my subdomain energy source that is function of coordinates but i cant because coordinates like x,y or xGlobal,yGlobal have [m] dimension , How can i fix this problem , i tried to do this ( x/1[m] ) but it didnt work ,
please help me
h.mortezaee is offline   Reply With Quote

Old   July 11, 2015, 12:08
Default
  #2
Member
 
hani mortezaee
Join Date: Sep 2014
Posts: 30
Rep Power: 11
h.mortezaee is on a distinguished road
for information , im modeling the energy deposition of proton beam from cyclotron in the compressed N2 gas ,
h.mortezaee is offline   Reply With Quote

Old   July 12, 2015, 06:02
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Why is having the x,y,z variables in metres a problem? You can change to other units systems if you like.

The expression x/1[m] will return a unitless value - so what did not work about it?
ghorrocks is offline   Reply With Quote

Old   July 12, 2015, 07:22
Default
  #4
Member
 
hani mortezaee
Join Date: Sep 2014
Posts: 30
Rep Power: 11
h.mortezaee is on a distinguished road
no it didnt return unitless value , for example if this is my expression " (x/1[m])^2 [kg m^2 s^-3] "
the error given is " Bad expression value 'energy' detected in parameter 'Total Source' in object '/FLOW:Flow Analysis 1/DOMAINefault Domain/SUBDOMAIN:Subdomain 1/SOURCES/EQUATION SOURCE:energy'.
CEL error:
Exponent must be dimensionless to right of '^' operator at position 9.
Actual dimensions: 'kg m^2 s^-3'."
h.mortezaee is offline   Reply With Quote

Old   July 12, 2015, 07:27
Default
  #5
Member
 
hani mortezaee
Join Date: Sep 2014
Posts: 30
Rep Power: 11
h.mortezaee is on a distinguished road
my bad , it just needed parenthesis , , so stupid ,
thankyou Glenn
h.mortezaee 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
Restarting a run from .trn files What variables do I need?) Badi CFX 2 December 29, 2017 22:13
[General] IntergateVariables filter. How to select variables to integrate? Antech ParaView 0 June 4, 2015 02:38
ADDITIONAL VARIABLES LIMITERS N.P CFX 5 December 1, 2011 07:47
$FOAM_USER_APPBIN & LIBBIN variables not set rassilon OpenFOAM Installation 2 February 16, 2010 20:54
PHI file structure Eugene Phoenics 9 November 2, 2001 22:00


All times are GMT -4. The time now is 13:09.