CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Setting a Variable Temperature Profile (https://www.cfd-online.com/Forums/cfx/103022-setting-variable-temperature-profile.html)

kerbelian June 8, 2012 12:45

Setting a Variable Temperature Profile
 
Hello,

I need to set a temperature at a boundary condition that varies or reduces as the height of the boundary grows. I tried creating an expression of the form:

Temp=0.008*z+300 [K]

Where z is the z coordinate, but it gave me an error message telling me that I can't assign a dimension to a non-dimension variable as distance. In other words, I can't tell CFX that z is Kelvin and not m. And besides since there is an addition in the formula, it also showed that the dimensions wouldn't match since there is temperature and distance in it.

Any advise for what can I do about this?

PD: The boundary condition has a semi-cylindrical shape with a variable height between -3 and 73 m

lffabiani June 8, 2012 15:49

Have you tried

Temp=0.008 [K m^-1]*z+300 [K]

The last [K] is assigned only to the "300" part, not the whole eq.

On the same window where you set the variable, there is an "Evaluate" option, where you can see what will happen to the variable (in your case Temp) changing the inputs (in your case Z)

Best regards


All times are GMT -4. The time now is 05:52.