parse error udf
HI
When i interpret my UDF file, it says parse error in line 33, #include "udf.h" #include "sg_mem.h" #include "outlet.h" DEFINE_INIT(my_uds0, domain) { cell_t c; Thread *t; /* loop over all cell threads in the domain */ thread_loop_c (t,domain) { /* loop over all cells */ begin_c_loop_all (c,t) { if (C_FMEAN(c,t)>0.06) C_UDSI(c,t,0) = 1.0; else C_UDSI(c,t,0) = 0.0; } end_c_loop_all (c,t) } } DEFINE_DIFFUSIVITY(diffu,c,t,i) { return (C_MU_T(c,t)) / 0.9; } DEFINE_PROFILE(scaler_outlet,t,i) {/*________ scaler outlet (ds/dn =0)(n:Boundary normal vector) _______*/} real s; face_t f; begin_f_loop(f,t) { s=C_UDSI(F_C0(f,t),THREAD_T0(t),0); F_PROFILE(f,t,i) = s; } end_f_loop(f,t) } Someone knows the problem? plz help meeeeeeee! |
Hi
Try this one, it works. #include "udf.h" #include "sg_mem.h" #include "outlet.h" DEFINE_INIT(my_uds0, domain) { cell_t c; Thread *t; /* loop over all cell threads in the domain */ thread_loop_c (t,domain) { /* loop over all cells */ begin_c_loop_all (c,t) { if (C_FMEAN(c,t)>0.06) C_UDSI(c,t,0) = 1.0; else C_UDSI(c,t,0) = 0.0; } end_c_loop_all (c,t) } } DEFINE_DIFFUSIVITY(diffu,c,t,i) { return (C_MU_T(c,t)) / 0.9; } DEFINE_PROFILE(scaler_outlet,t,i) { real s; face_t f; begin_f_loop(f,t) { s=C_UDSI(F_C0(f,t),THREAD_T0(t),0); F_PROFILE(f,t,i) = s; } end_f_loop(f,t) } |
Quote:
Thanks in advance ... |
Close FLUENT and run it again to eliminate the error...
good luck |
Quote:
|
save your case in another name and try it again...
|
Quote:
|
I tested your UDF in a case and it worked...
Set your problem from beginning: Read the mesh file and first of all, interpret the UDF. Then set the boundary conditions. Let me know if it works. |
All times are GMT -4. The time now is 00:27. |