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

BOUNDARY_HEAT_FLUX(f,t);

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 23, 2020, 01:16
Default BOUNDARY_HEAT_FLUX(f,t);
  #1
Senior Member
 
Arun raj.S
Join Date: Jul 2011
Posts: 194
Rep Power: 14
arunraj is on a distinguished road
Hello everyone,

I am trying to estimate the velocity of fluid at the liquid-vapor interface in heat pipe. I used BOUNDARY_HEAT_FLUX(f,t); macro to get the flux and from there I calculated vel. However, ANSYS Fluent automatically turns off continuity and momentum. I am using parallel mode to operate fluent. I know this macro is not official but i want to give it a go.


#include "udf.h"

DEFINE_PROFILE(condenserliq, t, i)
{
#if RP_HOST
face_t f;
real NV_VEC(farea);
real hfg = 2360000.0;
real den = 998.2;
real heat = 0;
real area = 0;
real vel;

begin_f_loop(f, t)
{
F_AREA(farea, f, t);
area += NV_MAG(farea);
heat += BOUNDARY_HEAT_FLUX(f,t);
Message("heat = %g\n", heat);
vel = heat/(area * hfg * den);
Message("vel = %g\n", vel);
F_PROFILE(f,t,i) = vel;
}
end_f_loop(f, t)
#endif
}
arunraj 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



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