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

heat transfer coefficient for the fluid / solid interface

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sarah l

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 7, 2014, 23:38
Default heat transfer coefficient for the fluid / solid interface
  #1
Member
 
sarah
Join Date: Aug 2010
Posts: 42
Rep Power: 15
sarah l is on a distinguished road
Hi,
I am using non-equilibrium model in porous zone in Ansys Fluent 14.5. for specifying heat transfer coefficient for the fluid / solid interface, I have written the following udf

#include "udf.h"
DEFINE_PROFILE(Heat_trans_coeff,t,i)
{
cell_t c;
real Nu,Re,Pr;
real dens, visc; /*Fluid*/
real cond, cp; /* Fluid*/
real d_p;
real por;/*Porosity of the bed*/
d_p=0.06;
por=0.36

begin_c_loop(c,t)
{
dens = C_R(c,t); /*Density of fluid*/
visc = C_MU_L(c,t); /*Viscosity fluid*/
cond = C_K_L(c,t); /*Conductivity fluid*/
cp = C_CP(c,t); /*Specific heat fluid*/
Re = ND_MAG(C_U(c,t),C_V(c,t),C_W(c,t))*d_p*dens*por/visc ; /*Reynolds number has been calculated based on pore velocity*/
Pr = cp*visc/cond ;
Nu = 2.+ 1.1 * pow(Re,0.6) * pow(Pr,1./3.);
F_PROFILE(c,t,i) = Nu*cond/d_p ;
}
end_c_loop(c,t)
}
However this code cannot be interpreted in FLUENT. The error message is "c_loop_last: undeclared variable"
I would be grateful if somebody help me!
guilbemloco likes this.
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
Help needed in meshing for Solid to Fluid Heat Transfer niazaliahmed FLUENT 2 February 22, 2020 15:47
Simulation of a single bubble with a VOF-method Suzzn CFX 21 January 29, 2018 00:58
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
goddamnit: how to set up heat transfer from fluid to solid macfly FLUENT 7 June 16, 2012 11:50
error message cuteapathy CFX 14 March 20, 2012 06:45


All times are GMT -4. The time now is 12:26.