# thermal conductivity expression

 Register Blogs Members List Search Today's Posts Mark Forums Read

November 20, 2012, 07:03
thermal conductivity expression
#1
Member

Thomas Hoffmann
Join Date: Oct 2012
Posts: 67
Rep Power: 6
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?
Attached Images
 Capture7.jpg (8.7 KB, 19 views)

 November 20, 2012, 07:19 #2 New Member   Talita Possamai Join Date: Sep 2012 Posts: 23 Rep Power: 6 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: 6 easy thanks!

 December 6, 2012, 04:34 #4 Member   Thomas Hoffmann Join Date: Oct 2012 Posts: 67 Rep Power: 6 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: 12,714 Rep Power: 99 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: 6 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: 6 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: 6 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: 6 Great. This worked for me. Thanks!!

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Chander CFX 1 February 29, 2012 18:26 lzgwhy Main CFD Forum 1 January 11, 2011 19:44 manaliac Main CFD Forum 2 November 29, 2010 07:25 Sas CFX 15 July 13, 2010 08:56 saii CFX 2 September 18, 2009 08:07

All times are GMT -4. The time now is 21:48.