I have a problem with moving wall that stretches other boundaries. I don't how script for this part look like and if anybody knows how to do it properly i would appreciate it so much. Below are some screen shoots to show the problem and script which I use for inner circle that moves by eccentricity around the center of piston. Upper part that represents blade should move up and down synchronized with inner circle.
To which parts of blade should I attach scripts? Script for inner blade is good and works well as moving boundary. If I use similar script for down part of blade then stretches left and right part. (of course i do not change "x" velocity for blade)
Script for inner circle.
#define RPM 15.0
#define PI 3.1415927
#define ECCENTRICITY 0.02
static real velocity = 2 * PI * (RPM / 60.0) * ECCENTRICITY;
DEFINE_CG_MOTION(innerCircle, dt, vel, omega, time, dtime)
NV_S(vel, =, 0.0);
NV_S(omega, =, 0.0);
vel = cos(velocity/ECCENTRICITY*time) * velocity;
vel = sin(velocity/ECCENTRICITY*time) * velocity;
Message("\nTotal time = %f ", time);
Message("InnerCricle : vel(x) = %f ", vel);
Message("InnerCricle : vel(y) = %f", vel);
Thanks for replies!