|
[Sponsors] |
writing Udf for thermal conductivity correlation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 24, 2014, 20:51 |
writing Udf for thermal conductivity correlation
|
#1 |
Member
sarah
Join Date: Aug 2010
Posts: 42
Rep Power: 15 |
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???? |
|
|
|
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 |