|
[Sponsors] |
March 6, 2014, 14:33 |
Help! DEFINE_ZONE_MOTION
|
#1 |
New Member
Mohammad Azim
Join Date: Mar 2014
Location: Southampton
Posts: 2
Rep Power: 0 |
Help!
I'm trying to model my mesh to be rotating in sinusoidal motion +/- 76degrees using the macro DEFINE_ZONE_MOTION. # include"udf.h" DEFINE_ZONE_MOTION(sinusoidal,omega,axis,origin,ve locity,time,dtime) { real w = 2.0*M_PI*0.0409; real wt = w*time; real th, thd, thdd; th = -1.3265*sin(wt+1.5708); thd = -1.3265*w*cos(wt+1.5708); thdd = -w*w*th; *origin = 0.5; *omega = thd; } The UDF works but somehow the rotation is not +/-76degrees. Is it because my equation in the coding is wrong? Please someone help me. Thanks! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|