|
[Sponsors] |
3 functions for specific heat capacity in solid material |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 2, 2016, 19:46 |
3 functions for specific heat capacity in solid material
|
#1 |
New Member
Join Date: Oct 2016
Posts: 12
Rep Power: 10 |
Hi everyone,
I need to insert 3 functions for Specific Heat Capacity related to 3 different temperature ranges in a solid material. Here are the functions: 5.81E+2[J kg^-1 K^-1], for Temperature < 533.3[K] -2.96E+3[J kg^-1 K^-1]+1.50E+1[J kg^-1 K^-2]*Temperature-2.33E-2[J kg^-1 K^-3]*Temperature^2+,1.64E-5[J kg^-1 K^-4]*Temperature^3-4.40E-9[J kg^-1 K^-5]*Temperature^4, for 533.3[K] <=Temperature < 1088.9[K] 4.14E+2[J kg^-1 K^-1]+8.63E-1[J kg^-1 K^-2]*Temperature-6.14E-4[J kg^-1 K^-3]*Temperature^2+2.09E-7[J kg^-1 K^-4]*Temperature^3-2.70E-11[J kg^-1 K^-5]*Temperature^4, for 1088.9[K] <= Temperature < 2200[K] Is it possible? If so, how? Thanks! |
|
November 3, 2016, 03:03 |
|
#2 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
Have you tried nested if statements?
if(T< 533[K],first expression,if(T<1088[K], second expression, if(T<2200[k], third expression,#))) where # is the value for Cp above 2200 [K] |
|
November 3, 2016, 03:04 |
|
#3 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12 |
Yes, this can be simply done by expressions.
I would first make an (if) sentence that would chose in what sector the temperature is either(S1,S2,S3) like this: sector selector=...if(T<533[K],S1,if(T<1088[K],S2,S3)) [J kg^-1 K^-1] than write three expresions for sectors: S1=....your equation dependant on (T) S2=....-ll- S3=....-ll- Than you set the, here called sector selector expression as a material property for heat capacity. hehe it seems that lance and I were both tiping the same thing at the same time |
|
November 3, 2016, 21:45 |
|
#4 |
New Member
Join Date: Oct 2016
Posts: 12
Rep Power: 10 |
Lance and urosgrivc, thank you very much!
|
|
November 9, 2016, 17:53 |
|
#5 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23 |
First of all, you will most likely need to include more significant digits when using higher polynomial expressions like that.
Second, another way to do this would be just using a user interpolation function, like a table of temperatures and values for specific heat. |
|
November 14, 2016, 06:23 |
|
#6 |
New Member
Join Date: Oct 2016
Posts: 12
Rep Power: 10 |
Thank you, evcelica
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 02:27 |
Error - Solar absorber - Solar Thermal Radiation | MichaelK | CFX | 12 | September 1, 2016 06:15 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |
No results for solid domain | Gary Holland | CFX | 10 | March 13, 2009 04:30 |
Concentric tube heat exchanger (Air-Water) | Young | CFX | 5 | October 7, 2008 00:17 |