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 |
for information , im modeling the energy deposition of proton beam from cyclotron in the compressed N2 gas ,
|
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? |
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'." |
my bad , it just needed parenthesis , :D , so stupid ,
thankyou Glenn |
All times are GMT -4. The time now is 02:40. |