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

UDF for heat transfer coefficient in porous medien in Flunt

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2017, 20:58
Default UDF for heat transfer coefficient in porous medien in Flunt
  #1
New Member
 
gao
Join Date: Apr 2017
Posts: 1
Rep Power: 0
GAOXL is on a distinguished road
hello, everyone, Im trying to write a UDF for heat transfer coefficient(htc) in porous medien in Fluent, the htc is dependent in Re and Pr. I'v read the User guide, but im a little confused. Iv used the function DEFINE_PROPERTY, but there is a error: chip-exac: htc: wrong return type:void udf function expected
i think maybe iv used the wrong function type DEFINE_PROPERTY. would someone tell me, which function type should i use? and if you have done this before, i will be grateful if you put your code here. Thank you so much!!!

DEFINE_PROPERTY(htc,c,t)
{
real h;
real Rep;
real dp;
real Cp;
real k;
real vi;
real Pr;
real nu;
k= C_K_L(c,t);
dp=0.000141258;
vi=sqrt(C_U(c,t)*C_U(c,t)+C_W(c,t)*C_W(c,t)+C_V(c, t)*C_V(c,t));
Pr=C_CP(c,t)*C_MU_L(c,t)/ k;
Rep=C_R(c,t) * vi * dp / C_MU_L(c,t);
nu = 2. + 1.1*pow(Rep,0.6)*pow(Pr,1./3.);
h=k * nu / dp;
return h;
}
GAOXL is offline   Reply With Quote

Old   July 1, 2017, 11:05
Default did you reach to a solution for this error
  #2
New Member
 
shreehan Abd El-Ghafour
Join Date: Apr 2015
Posts: 12
Rep Power: 11
sh.a.ghafour is on a distinguished road
Dear GAOXL,
i encountered the same error when i used the TRANSIRNT_PROFILE to define the heat transfer coefficient in the porous media.
did you reach to a solution for this error??????
sh.a.ghafour is offline   Reply With Quote

Reply

Tags
23.04


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
Heat transfer coefficient - what is waht Stan FLUENT 28 December 29, 2021 17:29
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 18:00
temperature dependent Heat transfer coefficient using UDF Koham Fluent UDF and Scheme Programming 0 January 5, 2016 09:50
UDF for heat transfer coefficient in porous media anon_m Fluent UDF and Scheme Programming 1 July 29, 2014 11:32
UDF for heat transfer coefficient in porous media anon_m FLUENT 0 July 24, 2014 19:37


All times are GMT -4. The time now is 18:56.