Docsity

Lecture Notes on Position Analysis | MECH 6710, Study notes of Mechanical Engineering

Toggle sidebar
bg1
Position Analysis 1
Position Analysis
The planar R-RTR-RTR mechanism considered is shown in Fig. 1. The
driver link is the rigid link 1 (the link AB). The following numerical data
are given: AB = 0.140 m, AC = 0.060 m, AE = 0.250 m, C D = 0.150 m.
The angle of the driver link 1 with the horizontal axis is φ= 30◦.
Position analysis for an input angle
Position of joint A
A Cartesian reference frame xOy is selected. The joint Ais in the origin
of the reference frame, that is, A≡O,
xA= 0, yA= 0.(1)
Position of joint C
The coordinates of the joint Care
xC= 0, yC=AC = 0.060 m.(2)
Position of joint E
The coordinates of the joint Eare
xE= 0, yE=−AE =−0.250 m.(3)
Position of joint B
The unknowns are the coordinates of the joint B,xBand yB. Because
the joint Ais fixed and the angle φis known, the coordinates of the joint B
are computed from the following expressions
xB=AB cos φ= 0.140 cos 30◦= 0.121 m,
yB=AB sin φ= 0.140 sin 30◦= 0.070 m.(4)
Position of joint D
The unknowns are the coordinates of the joint D,xDand yD.
The joint Dis located on the line BC :
yD−yC
xD−xC
=yB−yC
xB−xC
or
(xB−xC)(yD−yC) = (xD−xC)(yB−yC) (5)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b

Partial preview of the text

Download Lecture Notes on Position Analysis | MECH 6710 and more Study notes Mechanical Engineering in PDF only on Docsity!

Position Analysis 1

Position Analysis

The planar R-RTR-RTR mechanism considered is shown in Fig. 1. The

driver link is the rigid link 1 (the link AB). The following numerical data

are given: AB = 0.140 m, AC = 0.060 m, AE = 0.250 m, CD = 0.150 m.

The angle of the driver link 1 with the horizontal axis is φ = 30◦.

Position analysis for an input angle

Position of joint A A Cartesian reference frame xOy is selected. The joint A is in the origin

of the reference frame, that is, A ≡ O,

xA = 0, yA = 0. (1)

Position of joint C The coordinates of the joint C are

xC = 0, yC = AC = 0.060 m. (2)

Position of joint E The coordinates of the joint E are

xE = 0, yE = −AE = − 0 .250 m. (3)

Position of joint B The unknowns are the coordinates of the joint B, xB and yB. Because

the joint A is fixed and the angle φ is known, the coordinates of the joint B

are computed from the following expressions

xB = AB cos φ = 0.140 cos 30◦^ = 0.121 m, yB = AB sin φ = 0.140 sin 30◦^ = 0.070 m. (4)

Position of joint D The unknowns are the coordinates of the joint D, xD and yD. The joint D is located on the line BC:

yD − yC xD − xC

yB − yC xB − xC

or

(xB − xC )(yD − yC ) = (xD − xC )(yB − yC ) (5)

Position Analysis 2

Furthermore, the length of the segment CD is constant:

(xC − xD)^2 + (yC − yD)^2 = CD^2. (6)

The Eqs. (5) and (6) form a system from which the coordinates of the

joint D can be computed. To solve the system of equations, a specific

Matlab/MathematicaT M^ command will be used. Two sets of solutions are

found for the position of the joint D. These solutions are located at the inter-

section of the line BC with the circle centered in C and radius CD (Fig. 2),

and they have the following numerical values:

xD 1 = − 0 .149 m, yD 1 = 0.047 m, xD 2 = 0.149 m, yD 2 = 0.072 m.

To determine the correct position of the joint D for the mechanism, an ad-

ditional condition is needed.

For the first quadrant, 0 ≤ φ ≤ 90 ◦, the condition is xD ≤ xC.

Because xC = 0 m, the coordinates of the joint D are

xD = xD 1 = − 0 .149 m, yD = yD 1 = 0.047 m.

Angle φ 2 The angle of link 2 (or link 3) with the horizontal axis is calculated from

the slope of the straight line BC:

φ 2 = φ 3 = arctan

yB − yC xB − xC

Angle φ 4 The angle of link 5 (or link 4) with the horizontal axis is obtained from

the slope of the straight line ED:

φ 4 = φ 5 = arctan

yE − yD xE − xD

The Matlab/MathematicaT M^ program for the input angle φ = 30◦^ is

given in Program 1.

Position Analysis 4

dIk < dIIk , then the correct answer is Dk+1 = DkI+1, or else Dk+1 = DkII+

(Fig. 7). With this algorithm the correct solution is selected using just one

constraint relation for the initial step and then, automatically, the problem

is solved. In this way it is not necessary to have different constraints for

different quadrants.

The Matlab/MathematicaT M^ program for a complete rotation of the

driver link using the second method is given in Program 3.

fprintf(ʼ’Results \nʼ’) ; fprintf(ʼ’\nʼ’);

fprintf(ʼ’rA = [ %g, %g, %g] (m)\nʼ’, rA); fprintf(ʼ’rC = [ %g, %g, %g] (m)\nʼ’, rC); fprintf(ʼ’rE = [ %g, %g, %g] (m)\nʼ’, rE); fprintf(ʼ’rB = [ %g, %g, %g] (m)\nʼ’, rB); fprintf(ʼ’rD = [ %g, %g, %g] (m)\nʼ’, rD); fprintf(ʼ’phi2 = phi3 = %g (degrees) \nʼ’, phi2180/pi); fprintf(ʼ’phi4 = phi5 = %g (degrees) \nʼ’, phi4180/pi); fprintf(ʼ’rF = [ %g, %g, %g] (m)\nʼ’, rF); fprintf(ʼ’rG = [ %g, %g, %g] (m)\nʼ’, rG);

% Graphic of the mechanism plot([xA,xB],[yA,yB],ʼ’r−oʼ’,ʼ’LineWidthʼ’,1.5) hold on % holds the current plot plot([xD,xC],[yD,yC],ʼ’b−oʼ’,ʼ’LineWidthʼ’,1.5) hold on plot([xC,xB],[yC,yB],ʼ’b−oʼ’,ʼ’LineWidthʼ’,1.5) hold on plot([xB,xF],[yB,yF],ʼ’b−oʼ’,ʼ’LineWidthʼ’,1.5) hold on plot([xE,xD],[yE,yD],ʼ’g−oʼ’,ʼ’LineWidthʼ’,1.5) hold on plot([xD,xG],[yD,yG],ʼ’g−oʼ’,ʼ’LineWidthʼ’,1.5) grid on,... xlabel(ʼ’x (m)ʼ’), ylabel(ʼ’y (m)ʼ’),... title(ʼ’positions for \phi = 30 (deg)ʼ’),... text(xA,yA,ʼ’\leftarrow A = groundʼ’,ʼ’HorizontalAlignmentʼ’,ʼ’leftʼ’),... text(xB,yB,ʼ’ Bʼ’),... text(xC,yC,ʼ’\leftarrow C = groundʼ’,ʼ’HorizontalAlignmentʼ’,ʼ’leftʼ’),... text(xD,yD,ʼ’ Dʼ’),... text(xE,yE,ʼ’\leftarrow E = groundʼ’,ʼ’HorizontalAlignmentʼ’,ʼ’leftʼ’),... text(xF,yF,ʼ’ Fʼ’), text(xG,yG,ʼ’ Gʼ’)

Results

rA = [ 0, 0, 0] (m) rC = [ 0, 0.06, 0] (m) rE = [ 0, −0.25, 0] (m) rB = [ 0.121244, 0.07, 0] (m) rD = [ −0.149492, 0.0476701, 0] (m) phi2 = phi3 = 4.715 (degrees) phi4 = phi5 = 116.666 (degrees) rF = [ 0.249154, 0.0805499, 0] (m) rG = [ −0.224396, 0.196818, 0] (m)

% Program 2 % R−RTR−RTR % Position analysis − complete rotation clear; clc; close all

% Input data AB=0.14; AC=0.06; AE=0.25; CD=0.15; %(m) xA = 0; yA = 0; rA = [xA yA 0]; % Position vector of A xC = 0 ; yC = AC ; rC = [xC yC 0]; % Position vector of C xE = 0 ; yE = −AE ; rE = [xE yE 0]; % Position vector of E

fprintf(ʼ’Results \nʼ’) ; fprintf(ʼ’\nʼ’); fprintf(ʼ’rA = [ %g, %g, %g] (m)\nʼ’, rA); fprintf(ʼ’rC = [ %g, %g, %g] (m)\nʼ’, rC); fprintf(ʼ’rE = [ %g, %g, %g] (m)\nʼ’, rE); fprintf(ʼ’\nʼ’);

% complete rotation phi=0 to 2pi step pi/ for phi=0:pi/3:2pi, % for repeat statements a specific number of times

fprintf(ʼ’phi = %g deegres \nʼ’, phi*180/pi);

% Position of joint B − position of the driver link xB = ABcos(phi); yB = ABsin(phi); rB = [xB yB 0]; fprintf(ʼ’rB = [ %g, %g, %g] (m)\nʼ’, rB);

% Position of joint D eqnD1 = ʼ’( xDsol − xC )^2 + ( yDsol − yC )^2 = CD^2 ʼ’; % Slope formula: B, C, and D are on the same straight line eqnD2 = ʼ’( yB − yC ) / ( xB − xC ) = ( yDsol − yC ) / ( xDsol − xC )ʼ’; % Simultaneously solve above equations solD = solve(eqnD1, eqnD2, ʼ’xDsol, yDsolʼ’); xDpositions = eval(solD.xDsol); yDpositions = eval(solD.yDsol); % Separate the solutions in scalar form xD1 = xDpositions(1); xD2 = xDpositions(2); yD1 = yDpositions(1); yD2 = yDpositions(2);

% Select the correct position for D for the angle phi % see the drawings for each quadrant

if (phi>=0 && phi<=pi/2)||(phi >= 3pi/2 && phi<=2pi) if xD1 <= xC xD = xD1; yD=yD1; else xD = xD2; yD=yD2; end else if xD1 >= xC xD = xD1; yD=yD1; else xD = xD2; yD=yD2; end end % && short−circuit logical AND % || short−circuit logical OR

rD = [xD yD 0]; fprintf(ʼ’rD = [ %g, %g, %g] (m)\nʼ’, rD);

% Angles of the links with the horizontal phi2 = atan((yB−yC)/(xB−xC)); phi3 = phi2; fprintf(ʼ’phi2 = phi3 = %g (degrees) \nʼ’, phi2180/pi); phi4 = atan((yD−yE)/(xD−xE)); phi5 = phi4; fprintf(ʼ’phi4 = phi5 = %g (degrees) \nʼ’, phi4180/pi); fprintf(ʼ’\nʼ’);

% Graphic of the mechanism

plot([xA,xB],[yA,yB],ʼ’r−oʼ’,[xB,xC],[yB,yC],ʼ’b−oʼ’,[xC,xD],[yC,yD],ʼ’b−oʼ’) hold on plot([xD,xE],[yD,yE],ʼ’g−oʼ’) xlabel(ʼ’x (m)ʼ’),... ylabel(ʼ’y (m)ʼ’),... title(ʼ’positions for \phi = 0 to 360 step 60 (deg)ʼ’),... text(xA,yA,ʼ’ Aʼ’),... text(xB,yB,ʼ’ Bʼ’),... text(xC,yC,ʼ’ Cʼ’),... text(xD,yD,ʼ’ Dʼ’),... text(xE,yE,ʼ’ Eʼ’)

end % end for

-0.2 -0.15 -0.1 -0.05 0 0.05 0.1 0.

-0.

-0.

-0.

-0.

-0.

0

x (m)

y (m)

positions for φ = 0 to 360 step 60 (deg)

A B

C

D

E

A

B

C

D

E

A

B

C

D

E

B A

C

D

E

A

B

C

D

E

A

B

C

D

E

A B

C

D

E

% Program 3 % R−RTR−RTR % Position analysis − complete rotation % Euclidian distance function % the program use the function: Dist(x1,y1,x2,y2) % the function is defined in the program Dist.m clear; clc; close all

% Input data AB=0.14; AC=0.06; AE=0.25; CD=0.15; %(m) xA = 0; yA = 0; rA = [xA yA 0]; % Position vector of A xC = 0 ; yC = AC ; rC = [xC yC 0]; % Position vector of C xE = 0 ; yE = −AE ; rE = [xE yE 0]; % Position vector of E

fprintf(ʼ’Results \nʼ’) ; fprintf(ʼ’\nʼ’); fprintf(ʼ’rA = [ %g, %g, %g] (m)\nʼ’, rA); fprintf(ʼ’rC = [ %g, %g, %g] (m)\nʼ’, rC); fprintf(ʼ’rE = [ %g, %g, %g] (m)\nʼ’, rE); fprintf(ʼ’\nʼ’);

increment = 0 ; % at the initial moment phi=0 => increment = 0

step=pi/6; % the step has to be small for this method for phi=0:step:2pi, fprintf(ʼ’phi = %g deegres \nʼ’, phi180/pi);

% Position of joint B xB = ABcos(phi); yB = ABsin(phi); rB = [xB yB 0]; fprintf(ʼ’rB = [ %g, %g, %g] (m)\nʼ’, rB); % Position of joint D eqnD1 = ʼ’( xDsol − xC )^2 + ( yDsol − yC )^2 = CD^2 ʼ’; eqnD2 = ʼ’( yB − yC ) / ( xB − xC ) = ( yDsol − yC ) / ( xDsol − xC )ʼ’; solD = solve(eqnD1, eqnD2, ʼ’xDsol, yDsolʼ’); xDpositions = eval(solD.xDsol); yDpositions = eval(solD.yDsol); % Separate the solutions in scalar form xD1 = xDpositions(1); xD2 = xDpositions(2); yD1 = yDpositions(1); yD2 = yDpositions(2);

% select the correct position for D only for increment == 0 % the selection process is automatic for all the other steps

if increment == 0 if xD1 <= xC xD = xD1; yD=yD1; else xD = xD2; yD=yD2; end else dist1 = Dist(xD1,yD1,xDold,yDold); dist2 = Dist(xD2,yD2,xDold,yDold); if dist1 < dist2 xD = xD1; yD=yD1; else xD = xD2; yD=yD2; end end xDold=xD; yDold=yD;

increment=increment+1;

rD = [xD yD 0]; fprintf(ʼ’rD = [ %g, %g, %g] (m)\nʼ’, rD);

phi2 = atan((yB−yC)/(xB−xC)); phi3 = phi2; fprintf(ʼ’phi2 = phi3 = %g (degrees) \nʼ’, phi2180/pi); phi4 = atan((yD−yE)/(xD−xE)); phi5 = phi4; fprintf(ʼ’phi4 = phi5 = %g (degrees) \nʼ’, phi4180/pi);fprintf(ʼ’\nʼ’);