|
[Sponsors] |
June 22, 2018, 07:43 |
Pitching and spinning of a slender body
|
#1 |
New Member
Amit
Join Date: Jul 2014
Posts: 12
Rep Power: 12 |
I am trying to simulate a case of a pitching and spinning body using define_cg_motion
by putting a sinusoidal function for pitching and a constant rps of 10 to the roll axis. I get pitching correctly but the rolling happens on an axis offset to the body axis. please mention how can I rectify this #include "udf.h" #include <math.h> static real omegaz = 0.0; DEFINE_CG_MOTION(pitch, dt, vel, omega, time, dtime) { omegaz = 0.523599*(2*(22/7)*4*cos(2*(22/7)*4*time)) ; omega[1] = 0.0; omega[0]= 10.0; omega[2] = -omegaz; } |
|
|
|