NV_S(vel, =, 0.0);三个方向线速度为0 NV_S(omega, =, 0.0); 三个方向角速度为0 if (!Data_Valid_P()) 如果非流体 return;返回 /* get the thread pointer for which this motion is defined */ t = DT_THREAD(dt);读取thread位置指针赋给t /* comput
real rotcentroid[3]={150,0,0};real m1=5736; DEFINE_CG_MOTION(T1,dt,vel,omega,time,dtime){ Thread*thread; Domain*domain; realforce[3]={0,0,0}; realmoment[3]={0,0,0}; NV_S(vel,=, 0.0); NV_S(omega,=, 0.0); if(!Data_Valid_P()) return; domain=Get_Domain(1); thread...