cg-motion vs 6dof udf
hi every one,
i want to simulate moving object inside a barrel by patching high pressure and tempreture , i used a 6dof udf and set prop[SDOF_MASS] = 0.4 and so i tried to check the moving by using cg-motion udf that calculate the force and solve second law for motion: force = 0.0; begin_f_loop (f, t) { F_AREA (A, f, t); force += 2*M_PI*F_P (f, t) * NV_MAG (A); } end_f_loop (f, t) /* compute change in velocity, i.e., dv = F * dt / mass velocity update using explicit Euler formula */ dv = dtime * force / .4; v_prev += dv; /* set x-component of velocity */ vel[0] = v_prev; but when i checked the velocities at the same position for example @ x=.2 vel object (6dof)=286 vel object (cg_motion)=86 any one know why??? thanks a lot http://uupload.ir/files/0la5_untitled.jpg |
any comment ???
thank you |
All times are GMT -4. The time now is 09:21. |