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

Specific Heat and Conductivity UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2014, 00:32
Post Specific Heat and Conductivity UDF
  #1
New Member
 
Rusthi
Join Date: Oct 2014
Posts: 6
Rep Power: 11
rusthimim is on a distinguished road
Hi there,

Please check this UDF for specific heat and conductivity and tell me this is right or wrong.. I am using a transient analysis profile for Temperature Vs Time variation on one surface. I am modeling a air cavity wall with outer and inner surface. the outer surface boundary condition is set to the Profile temperature variation.

#include "udf.h"
DEFINE_SPECIFIC_HEAT(my_user_cp, T, Tref, h, yi)
{
real cp;
if (T < 373.15)
{
cp = 950;
}
else if (T >= 373.15 && T <= 473.15)
{
cp = 17500;
}
else
{
cp = 950;
}
*h = cp*(T-Tref);
return cp;
}
#include "udf.h"
DEFINE_PROPERTY(my_user_Conductivity,c,t)
{
real k;
real T = C_T(c,t);
if (T < 413.15)
{
k = 0.25;
}
else if (T >= 413.15 && T <= 1073.15)
{
k = 0.15;
}
else if (T > 1073.15 && T <= 1273.15)
{
k = 0.4;
}
else
{
k = 0.8;
}
return k;
}
rusthimim is offline   Reply With Quote

Reply

Tags
specific heat, udf code


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 05:21
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 00:58
error message cuteapathy CFX 14 March 20, 2012 06:45
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02


All times are GMT -4. The time now is 10:11.