CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for thermophysical propreties of nanofluid

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   January 26, 2021, 10:38
Question UDF for thermophysical propreties of nanofluid
New Member
Maroua Mekcem
Join Date: Jan 2021
Posts: 1
Rep Power: 0
MarouaO is on a distinguished road
HI , I'm not too familiar with UDF ,i'm a begginer. I searched a lot and i didn't understand from where the equations dependent to temperature come ??(conductivity,viscosity,Cp,Density of base fluid)- i mentionned the equations with bold please help me.

Here an exemple:

Brinkman model

#include "udf.h"
#define fi 0.02
#define ro_s 3950
/*#define cp_f 1845*/
DEFINE_PROPERTY(cell_density, cell, thread)
real ro_nf;
real ro_f;
real tt= C_T(cell, thread);
return ro_nf;
DEFINE_SPECIFIC_HEAT(cell_specific_heat, T, Tref, h, yi)
real cp;
real cp_f;
real cp_s;
real ro_f;
cp_s= 765;
cp_f=9616.873445-48.73648329*T+0.1444662*((pow((T) ,2)))-0.000141414*((pow((T) ,3)));
*h = cp*(T-Tref);
return cp;
DEFINE_PROPERTY(thermal_conductivity, cell, thread)
real tt= C_T(cell, thread);
real mu_f;
real ro_f;
real k_eff;
real ks;
real kf;
real Re;
real Pr;
real cp_f;
cp_f =9616.873445-48.73648329*tt+0.1444662*((pow((tt) ,2)))-0.000141414*((pow((tt)
Re= (2*ro_f*tt*1.3806488e-23)/((22/7)*25e-9*(mu_f*mu_f));
Pr= (mu_f*cp_f)/(kf);
k_eff=kf*(1+(4.4*(pow((Re) ,0.4)))*(pow((Pr) ,0.66))*(pow((tt/273.15)
,10))*(pow((ks/kf) ,0.03))*(pow((fi) ,0.66)));
return k_eff;
DEFINE_PROPERTY(viscosity, cell, thread)
real mu_f;
real mu_eff;
real tt= C_T(cell, thread);
mu_eff =mu_f/(pow((1-fi) ,2.5));
return mu_eff;
MarouaO is offline   Reply With Quote


cfd code, model equation, nano fluid, thermophysicalproperties, udf code

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Save output of udf in another udf! JuanJoMex FLUENT 0 February 8, 2018 13:43
UDF for inlet velocity alongwith UDF for properties akshayy224 FLUENT 0 February 1, 2018 10:17
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 01:53
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01

All times are GMT -4. The time now is 15:24.