CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

thermal conductivity of melting material

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2022, 01:37
Default thermal conductivity of melting material
  #1
New Member
 
mohammad
Join Date: Jan 2022
Posts: 4
Rep Power: 4
mabdolahim is on a distinguished road
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;
}
Attached Images
File Type: jpg photo_2022-01-11_10-04-46.jpg (29.5 KB, 8 views)
mabdolahim is offline   Reply With Quote

Old   January 12, 2022, 09:30
Default
  #2
Member
 
Join Date: Jul 2020
Location: India
Posts: 63
Rep Power: 5
Cooper24 is on a distinguished road
What is the error you are receiving??
Cooper24 is offline   Reply With Quote

Old   January 12, 2022, 12:57
Default
  #3
New Member
 
mohammad
Join Date: Jan 2022
Posts: 4
Rep Power: 4
mabdolahim is on a distinguished road
Quote:
Originally Posted by Cooper24 View Post
What is the error you are receiving??
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.
mabdolahim is offline   Reply With Quote

Reply

Tags
thermal conductivity, udf


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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 21:43
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 05:37
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
error message cuteapathy CFX 14 March 20, 2012 06:45
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56


All times are GMT -4. The time now is 06:52.