InvertedCrankSliderModCh7P7d
InvertedCrankSliderModCh7P7d
d = 8; %link 1
a = 5; %link 2
c = 3; %link 4
y = 60;%a=link2 b=link3 c=link4 (gamma)
th2 = 25;
omega2 = -50;
alpha2 = 20;
R = -c*sind(y);
P = (a*sind(th2)*sind(y))+((a*cosd(th2)-d)*cosd(y));
Q = (-a*sind(th2)*cosd(y))+((a*cosd(th2)-d)*sind(y));
S = R-Q;
T = 2*P;
U = Q+R;
M = -T + sqrt(T^2 - 4*S*U);
MM = -T - sqrt(T^2 - 4*S*U);
MMM=2*S;
th4_1 = 2*atand(M/MMM);%open
th4_2 = 2*atand(MM/MMM);%cross
th3_1 = th4_1 + y;%open
th3_2 = th4_2 + y;%cross not pi/180 because everything in terms of degrees
so pi=180 degrees
N = a*sind(th2);
NN_1 = c*sind(th4_1);
NN_2 = c*sind(th4_2);
NNN_1 = sind(th3_1);
NNN_2 = sind(th3_2);
%Position Vectors
RB_open = abs(b_1);
RB_cross = abs(b_2);
%Velocity Analysis
O_1 = a*omega2*cosd(th2-th3_1);
OO_1 = b_1+c*cosd(y);
1
O_2 = a*omega2*cosd(th2-th3_2);
OO_2 = b_2+c*cosd(y);
V = -a*omega2*sind(th2);
VV_1 = omega4_1*(b_1*sind(th3_1)+c*sind(th4_1));
VVV_1 = cosd(th3_1);
VV_2 = omega4_2*(b_2*sind(th3_2)+c*sind(th4_2));
VVV_2 = cosd(th3_2);
VBmagOpen = abs(Vb4_1);
VBmagCrossed = abs(Vb4_2);
VslipOpen = bdot_1;
VslipCrossed = bdot_2;
W_1 = alpha2*cosd(th3_1-th2);
W_2 = alpha2*cosd(th3_2-th2);
WW_1 = omega2^2*sind(th3_1-th2);
WW_2 = omega2^2*sind(th3_2-th2);
WWW_1 = c*omega4_1^2*sind(th4_1-th3_1);
2
WWW_2 = c*omega4_2^2*sind(th4_2-th3_2);
WWWW_1 = 2*bdot_1*omega3_1;
WWWW_2 = 2*bdot_2*omega3_2;
ZZZ_1 = 2*bdot_1*c*omega4_1*sind(th4_1-th3_1);
ZZZ_2 = 2*bdot_2*c*omega4_2*sind(th4_2-th3_2);
%Acceleration Components
alpha4_1 =
9.5231e+03
alpha4_2 =
2.5644e+03
3
alpha3_1 =
9.5231e+03
alpha3_2 =
2.5644e+03
AslipB_1 =
5.6570e+03
AslipB_2 =
-2.5561e+03