|
[Sponsors] |
November 20, 2012, 07:03 |
thermal conductivity expression
|
#1 |
Member
Thomas Hoffmann
Join Date: Oct 2012
Posts: 67
Rep Power: 14 |
hi all.
I would like to add an expression for thermal conductivity k=-0.000837*T^2-0.030641*T+0.147212 But I get the following error: ' Bad expression value '-0.000837*T[K^2]^2-0.030641*T[K]+0.147212' detected in parameter 'Thermal Conductivity' in object '/LIBRARY/MATERIAL:Ice cream/PROPERTIES/THERMAL CONDUCTIVITY'. CEL error: Error at position 12. Units ([K^2]) are associated with a term that is not dimensionless. ' I also tried to write it like this: k=-0.000837*T[K^2]^2-0.030641*T[K]+0.147212 Does anybody know how to use the expressions in cfx? |
|
November 20, 2012, 07:19 |
|
#2 |
New Member
Talita Possamai
Join Date: Sep 2012
Posts: 23
Rep Power: 14 |
Hello Thomas,
You must indicate the units of each constant. So it should be: k=-0.000837 [W m^-1 K^-3]*T^2-0.030641 [W m^-1 K^-2]*T+0.147212 [W m^-1 K^-1] This will give you thermal conductivity in [W m^-1 K^-1] Regards, Possa |
|
November 20, 2012, 07:27 |
|
#3 |
Member
Thomas Hoffmann
Join Date: Oct 2012
Posts: 67
Rep Power: 14 |
easy
thanks! |
|
December 6, 2012, 04:34 |
|
#4 |
Member
Thomas Hoffmann
Join Date: Oct 2012
Posts: 67
Rep Power: 14 |
Hi Possa.
It worked for me to apply the material with this expression for thermal conductivity, but the solver has problem working with it. I tried to change all the parameters to water one by one, and found out that this expression is the only problem. Do you know if cfx nows that T is temperature? Do I have to define it somewhere? |
|
December 6, 2012, 05:18 |
|
#5 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
The variables and their names is listed in the CFX reference manual, under variables. You should consult it to make sure you use the correct name for variables.
|
|
December 6, 2012, 06:47 |
|
#6 |
New Member
Talita Possamai
Join Date: Sep 2012
Posts: 23
Rep Power: 14 |
Hello Thomas,
Yes, you're right. You must change T for Temperature for this to work. Regards, Possa |
|
December 7, 2012, 08:34 |
|
#7 |
Member
Thomas Hoffmann
Join Date: Oct 2012
Posts: 67
Rep Power: 14 |
I had a look in the reference manual, and it says that the short variable name for temperature is 'T'. But it doesn't work for me.
Do you know where I have to define T in cfx-pre if I want to make my thermal conductivity temperature dependent? |
|
December 7, 2012, 08:53 |
|
#8 |
New Member
Talita Possamai
Join Date: Sep 2012
Posts: 23
Rep Power: 14 |
Hi,
Try putting like this in the expression definition tab: -0.000837 [W m^-1 K^-3]*Temperature^2-0.030641 [W m^-1 K^-2]*Temperature+0.147212 [W m^-1 K^-1] It is Caps sensible (it will recognize Temperature but not temperature). It should work like that. Regards |
|
December 7, 2012, 09:00 |
|
#9 |
Member
Thomas Hoffmann
Join Date: Oct 2012
Posts: 67
Rep Power: 14 |
Great. This worked for me. Thanks!!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
IAPWS water properties + orthotropic thermal conductivity | Chander | CFX | 1 | February 29, 2012 18:26 |
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 |
Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 09:56 |