Simulation for dynamic stall

hi guys... Need help for this one. I am currently doing a simulation about dynamic stall over a NACA 0012 airfoil. Basically the angle of attack is 15 + 10 sin (wt). Hence, I will need a UDF to do that. However, I do not know how to start on the UDF... Am I suppose to use DEFINE_CG_MOTION?