I have a UDF that defines a sinusoidal mesh motion. The UDF looks like this:

#include "udf.h"

real oscillation(real angl_vel, real time)

{

real omega,amp;

omega=50.0;

amp=5.0*3.1415/180.0;

angl_vel=amp*omega*cos(omega*time);

return angl_vel;

}

I interpret this UDF in Fluent and there are no errors. I expect the mesh to rotate sinusoidally but it ends up making complete rotations, seemingly at a constant angular velocity. I am not sure why this behavior is seen. It would be great if someone familiar with using UDFs in Fluent could help.

Please let me know if any additional information is needed. Any help would be greatly appreciated. Thank You.

Similar questions and discussions