CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   udf problem of premixed combustion (https://www.cfd-online.com/Forums/fluent/47639-udf-problem-premixed-combustion.html)

wuyu March 17, 2008 06:31

udf problem of premixed combustion
 
I try to use udf to define the resource term of premixed combustion, and I just follow the example of the tutorials, however when I interpreted the .c file, I got the problem as follow;

line21: function "Compute_Trb_Vscal" not found(pc=6). line21: function "Calculate_unburnt_rho_and Xl" not found(pc=86)

the code is like this: #include "udf.h" #include "sg_pdf.h" /* not included in udf.h so must include here */

DEFINE_TURB_PREMIX_SOURCE(turb_flame_src, c, t, turb_flame_speed, source) { real up = TRB_VEL_SCAL(c,t);

real ut, ul, grad_c, rho_u, Xl, DV[ND_ND];

ul = C_LAM_FLAME_SPEED(c,t);

Calculate_unburnt_rho_and_Xl(t,&rho_u,&Xl);

if( NNULLP(THREAD_STORAGE(t,SV_PREMIXC_G)) ) { NV_V (DV, =, C_STORAGE_R_NV(c,t,SV_PREMIXC_G)); grad_c = sqrt(NV_DOT(DV, DV)); }

ut = ul*sqrt( 1. + SQR(up/ul) ); *turb_flame_speed = ut; *source = rho_u*ut*grad_c; }



All times are GMT -4. The time now is 04:19.