CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   How does fluent calculate the temperature when applying constant heat flux? (https://www.cfd-online.com/Forums/fluent/247371-how-does-fluent-calculate-temperature-when-applying-constant-heat-flux.html)

Mars35 January 30, 2023 10:44

How does fluent calculate the temperature when applying constant heat flux?
 
Hi guys,

I was writing a udf to describe the wall temperature under a constant heat flux of 10,000 in 2D.

However, my fluid temperature profile is different from/lower than the one ansys simulated on its own. I was wondering how fluent calculate the temperature based on the heat flux. Here is my code, any help would be greatly appreciated!

#include "udf.h"
#include "sg.h"
#define q 10000.0
#define k 0.6

DEFINE_PROFILE(wall_temperature,t,i)
{
real A[ND_ND];
real ds, A_by_es;
face_t f;
real es[ND_ND];
real dr0[ND_ND];

begin_f_loop(f,t)
{

BOUNDARY_FACE_GEOMETRY(f,t,A,ds,es,A_by_es,dr0);
F_PROFILE(f,t,i)= C_T(F_C0(f,t),THREAD_T0(t))+q/k*ds;
}
end_f_loop(f,t)
}


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