January 11, 2023 at 4:07 pm
Subscriber
I am only able to attach an image not a file. So i copy paste my code from Notepad++
#include "udf.h"
#define freq RP_Get_Input_Parameter(“real-1”)
#define angular_freq 2.0*M_PI*freq
#define amp 0.5
DEFINE_CG_MOTION(plate, dt, cg_vel, cg_omega, time, dtime)
{
real disp;
disp = amp*angular_freq*cos(angular_freq*time); /*displacement speed*/
cg_vel [0] = 0.0;
cg_vel [1] = 0.0;
cg_vel [2] = disp;
cg_omega [0] = 0.0;
cg_omega [1] = 0.0;
cg_omega [2] = 0.0;
}
Thanks for your help!