CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   using dimensional variables as dimentionless (https://www.cfd-online.com/Forums/cfx/156724-using-dimensional-variables-dimentionless.html)

h.mortezaee July 11, 2015 12:02

using dimensional variables as dimentionless
 
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 July 11, 2015 12:08

for information , im modeling the energy deposition of proton beam from cyclotron in the compressed N2 gas ,

ghorrocks July 12, 2015 06:02

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?

h.mortezaee July 12, 2015 07:22

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/DOMAIN:Default 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 July 12, 2015 07:27

my bad , it just needed parenthesis , :D , so stupid ,
thankyou Glenn


All times are GMT -4. The time now is 02:40.