|
[Sponsors] |
January 11, 2022, 02:37 |
thermal conductivity of melting material
|
#1 |
New Member
mohammad
Join Date: Jan 2022
Posts: 4
Rep Power: 4 |
Hi everyone
I am supposed to model a material that its phase changes with temperature; its thermal conductivity behaves as a function of temperature for three temperature ranges. I write a UDF but it is not working as expected. Can anyone help me with this problem? the functions are attached and there is my code: #include "udf.h" #define A 0.23152914 #define B 2.4105618 #define C 0.0014546952 #define D 0.21946513 #define E 0.0000168736358 #define F 0.005086847 DEFINE_PROPERTY(thermal_npcm,c,t) { real k; real temp = C_T(c,t); if(temp<302.) k = A; else if (temp>309.) k = A+E*pow(temp,1.5)-F*pow(temp,0.5); else k = A+(B*pow(temp,2.5))-C*pow(temp,1.5)+D*pow(temp,0.5); return k; } |
|
January 12, 2022, 10:30 |
|
#2 |
Member
Join Date: Jul 2020
Location: India
Posts: 66
Rep Power: 6 |
What is the error you are receiving??
|
|
January 12, 2022, 13:57 |
|
#3 |
New Member
mohammad
Join Date: Jan 2022
Posts: 4
Rep Power: 4 |
Dear Cooper24,
The solving proceeds without any error but the problem is the outputs that are so wrong. By constant thermal conductivity, the material melts very well, while by UDF thermal conductivity the material state remains unchanged. |
|
Tags |
thermal conductivity, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting the height of the stream in the free channel | kevinmccartin | CFX | 12 | October 13, 2022 22:43 |
Domain Reference Pressure and mass flow inlet boundary | AdidaKK | CFX | 75 | August 20, 2018 06:37 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
error message | cuteapathy | CFX | 14 | March 20, 2012 07:45 |
Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 09:56 |