CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   a question about udf, thank you! (https://www.cfd-online.com/Forums/fluent/68735-question-about-udf-thank-you.html)

hunter September 30, 2009 09:45

a question about udf, thank you!
 
1 Attachment(s)
I am simulating condensation. but lots of problem appeared. for example, I set the heat flux q=h*(tl-tw) using DEFINE_HEAT_FLUX. the c file is below:
#include "udf.h"
real h = 0.;

DEFINE_ADJUST(htc_adjust,domain)
{
h=0.01;
}

DEFINE_HEAT_FLUX(heat_flux, f, t, c0, t0, cid, cir)
{
cid[0] = 0.;
cid[1] = h;
cid[2] = h;
cid[3] = 0.;
}

first: static real h=0., then parse error appeared. but the user's guide has static. i do not know why.
second, the calculated results is not corrected. therefore, i have a question, the solid wall has thickness. where the heat flux is? isn't it between the flow and the solid. who can help me check the cas/dat? thank you!


All times are GMT -4. The time now is 18:46.