CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

thermal conductivity expression

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 20, 2012, 07:03
Default thermal conductivity expression
  #1
Member
 
Thomas Hoffmann
Join Date: Oct 2012
Posts: 67
Rep Power: 14
Thomashoffmann is on a distinguished road
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
File Type: jpg Capture7.jpg (8.7 KB, 35 views)
Thomashoffmann is offline   Reply With Quote

Old   November 20, 2012, 07:19
Default
  #2
New Member
 
Talita Possamai
Join Date: Sep 2012
Posts: 23
Rep Power: 14
Possa is on a distinguished road
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
Possa is offline   Reply With Quote

Old   November 20, 2012, 07:27
Default
  #3
Member
 
Thomas Hoffmann
Join Date: Oct 2012
Posts: 67
Rep Power: 14
Thomashoffmann is on a distinguished road
easy
thanks!
Thomashoffmann is offline   Reply With Quote

Old   December 6, 2012, 04:34
Default
  #4
Member
 
Thomas Hoffmann
Join Date: Oct 2012
Posts: 67
Rep Power: 14
Thomashoffmann is on a distinguished road
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?
Thomashoffmann is offline   Reply With Quote

Old   December 6, 2012, 05:18
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
Goenitz likes this.
ghorrocks is offline   Reply With Quote

Old   December 6, 2012, 06:47
Default
  #6
New Member
 
Talita Possamai
Join Date: Sep 2012
Posts: 23
Rep Power: 14
Possa is on a distinguished road
Hello Thomas,

Yes, you're right. You must change T for Temperature for this to work.

Regards,
Possa
Possa is offline   Reply With Quote

Old   December 7, 2012, 08:34
Default
  #7
Member
 
Thomas Hoffmann
Join Date: Oct 2012
Posts: 67
Rep Power: 14
Thomashoffmann is on a distinguished road
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?
Thomashoffmann is offline   Reply With Quote

Old   December 7, 2012, 08:53
Default
  #8
New Member
 
Talita Possamai
Join Date: Sep 2012
Posts: 23
Rep Power: 14
Possa is on a distinguished road
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
Possa is offline   Reply With Quote

Old   December 7, 2012, 09:00
Default
  #9
Member
 
Thomas Hoffmann
Join Date: Oct 2012
Posts: 67
Rep Power: 14
Thomashoffmann is on a distinguished road
Great. This worked for me. Thanks!!
Thomashoffmann is offline   Reply With Quote

Reply


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:47.