I need some help, please.
I am trying to move a butterfly valve using UDF but even though I got a desired move, I canīt control when stop it.
the purpose is to open the valve and leave it opened and after 10 seconds, close de valve again.
My code makes the valve oscilate all the time without time control...
any idea to get it done?
butterfly move code
DEFINE_CG_MOTION(rotating_body, dt, vel, omega, time, dtime)
/* reset velocities */
NV_S (vel, =, 0.0);
NV_S (omega, =, 0.0);
/* motion */
ampl = 0.785423 ; /* amplitude of rotation in radians (0.5deg) *///rad = deg * Pi /180
omg = 516.0219; /* angular frequency (18.465Hz) */
disp = ampl * sin(omg * time); /* resultant displacement */
omega = 0.785423*sin(time);
|All times are GMT -4. The time now is 00:45.|