CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF access wall heat fluxes cid[] (https://www.cfd-online.com/Forums/fluent/70744-udf-access-wall-heat-fluxes-cid.html)

icaro December 4, 2009 04:42

UDF access wall heat fluxes cid[]
 
Hallo,

I try to compute the total heat flux [W] from a wall to fluid inside a DEFINE_HEAT_FLUX macro. Is this the right way to do it?

begin_f_loop

q_solid2fluid += area*(cid[0]+cid[1]*C_T(c0,t0)-cid[2]*F_T(f,t)-cid[3]*pow(F_T(f,t),4));

end_f_loop

In principle this q_solid2fluid should be the same value than the one under Report/Fluxes/Total Heat Transfer Rate, that it is the value I am looking for, but i don't get it.

I appreaciate any comment. Thanks.

icaro


All times are GMT -4. The time now is 11:37.