|
[Sponsors] |
June 23, 2020, 01:16 |
BOUNDARY_HEAT_FLUX(f,t);
|
#1 |
Senior Member
Arun raj.S
Join Date: Jul 2011
Posts: 194
Rep Power: 14 |
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 } |
|
|
|