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

writing Udf for thermal conductivity correlation

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 24, 2014, 20:51
Default writing Udf for thermal conductivity correlation
  #1
Member
 
sarah
Join Date: Aug 2010
Posts: 42
Rep Power: 15
sarah l is on a distinguished road
Hi,
i want to define thermal conductivity according to Zehner and Schluender correlation;




I wrote the following Udf but it doesn't work!
#include "udf.h"
DEFINE_PROPERTY(ksolid,c,t)
{
real ktc;
real temp= C_T(c,t);
real por;
real e_r;
real k_g;
real a;
real b_z;
real sigma;
por=0.36;
e_r=0.8;
sigma=0.0000000567;
b_z=1.25*pow(((1.-por)/por),1.11);
k_g=156.97-0.0988*temp+2.083e-05*pow(temp,3);
a=k_g/0.24*sigma*pow(temp,3.);
ktc=0.24*sigma*pow(temp,3.)*((1.-pow((1-por),0.5)+(((pow((1-por),0.5)/(2.*pow(e_r,-1.)-1.))*((b_z+1.)/b_z)*pow((1+(1/((2.*pow(e_r,-1.)-1)*a))),-1.),
return ktc;
}

is there any one to help me????
Attached Files
File Type: docx Figure 1.docx (12.9 KB, 24 views)
sarah l is offline   Reply With Quote

 


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
I need one simple udf code for effective thermal conductivity of nanofluid mvf Fluent UDF and Scheme Programming 1 February 10, 2017 19:05
Anisotropic thermal conductivity UDF Kwiaci Fluent UDF and Scheme Programming 2 January 20, 2017 08:42
UDF for effective thermal conductivity Rashmi FLUENT 1 November 6, 2007 20:08
Writing UDF for Robbins Bounday Condition KKLAU FLUENT 1 April 6, 2004 23:58
Macros for writing UDF for porosity umesh FLUENT 1 June 13, 2003 04:20


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