02 February 2019 4 10K Report

Hello Everyone ;

Hope you are doing great .

I have to change the axis of rotation from default setting i,e z-axis to x-axis in the given UDF ? How can I do that ?

--------------------------------------------------------------------------------------------------------------

# include "udf.h"

DEFINE_ZONE_MOTION(sinusoidal,omega,axis,origin,velocity,time,dtime)

{real w = 2.0*M_PI*1; real wt = w*time; real th, thd;

th = -0.523599*sin(wt); thd = -0.523599*w*cos(wt);

*omega = thd;}

More Aamir Sultan's questions See All
Similar questions and discussions