#include "udf.h" #define pi 3.14286 define_cg_motion(motion,dt,vel,omega,time,dtime) { real amp, freq; real f_glob[nd_nd],m_glob[nd_nd],x_cg[nd_nd]; real f1,f3,f5; domain *domain= get_domain (1); thread *tf1 = lookup_thread (domain, 13); file *fp; ////////////////////////////////////////////////////////////////////////// /* reset velocities */ nv_s(vel, =, 0.0); nv_s(omega, =,...