Using 'Compute_Force_And_Moment' funtion
hi,
I am using Compute_Force_And_Moment function to access lift and drag acting on cylinder whose boundary id is 17. my udf is as follows: #include "udf.h" DEFINE_PROFILE(update_velocity,t_inlet,i) { /* get moment or force */ Domain *d = Get_Domain(1); /* for single phase flow*/ face_t f; Thread *t_object = Lookup_Thread(d,17); /* you get Boundary_ID from the boundary condition panel in Fluent*/ real force[3], moment[3], cg[ND_ND]; /*initialise*/ real force_y,v_new; Compute_Force_And_Moment (d,t_object,cg,force,moment,TRUE) v_new = 0.0*force[0]; // at this line parse error is coming!! /* update inlet velocity */ begin_f_loop(f,t_inlet) /* loop over all faces at velocity inelt */ { F_PROFILE(f,t_inlet,i) = v_new; } end_f_loop(f,t_inlet) } it shows parse error at line 13 (red color line). p please help me :( |
You have asked the same question twice. I already replied at your first question.
|
All times are GMT -4. The time now is 12:39. |