hongfu2233 发表于 2013-4-28 11:37:45

刚体简谐振动udf出错

# include "udf.h"
# define A 0.002
# define w 12
static real vy=A*w;
DEFINE_CG_MOTION(movewall, dt, vel, omega, time, dtime)
{
vy+=-A*w*w*sin(w*time)*dtime;
vel=vy;
}    求教,实际运动中,运动幅值远远超过了0.002m 都达到1m数量级了。为什么?我明明设置的幅值是A=0.002m。小弟求教?先谢过了。

zoeywang 发表于 2013-4-28 13:43:06

回复 1# hongfu2233 的帖子

w 单位应该是弧度

hongfu2233 发表于 2013-4-28 14:53:23

回复 2# zoeywang 的帖子

w是不是弧度它的位移振幅都不应该差这么大,积分之后就是y=Asin(wt)谢谢了:)
页: [1]
查看完整版本: 刚体简谐振动udf出错