Docsity

ME 3610 Course Notes: Solving Loop Closure Equations in Mechanical Engineering - Prof. Ste, Study notes of Mechanical Engineering

Partial preview of the text

Download ME 3610 Course Notes: Solving Loop Closure Equations in Mechanical Engineering - Prof. Ste and more Study notes Mechanical Engineering in PDF only on Docsity!

Part IV: Closed-form solutions to Loop Closure Equations

This section will review the closed-form solutions techniques for loop closure equations. The following three cases will be considered.

  1. Two unknown angles in the loop closure equation
  2. One unknown angle and one unknown length
  3. Two unknown lengths.

Review vector notation and algebra

x

y

r 1

r 2

Solution for case 1) Two unknown angles: A general loop closure eq. with two unknown angles may look like:

1 //+^2 //+ 3 /?+ 4 /?+ 5 //K=^0

r r r r r r r r r r (c1.1)

Here the unknowns are θ 3 and θ 4. Rearranging to collect all the knowns into a single vector,

r (^) k //^ + r 3 /? + r 4 /? = 0 r r r (c1.2)

with:

k kx ky k^ (^ ky kx )

ky

kx

kx

r r r r r

r rs rs rs

r rc rc rc

r r r r

, ,

2 ,

2 ,

, 1 1 2 2 5 5

, 1 1 2 2 5 5

, 1 2 5

= + , =atan 2 ,

θ

θ θ θ

θ θ θ K

K

K

r r r r

Step 1: Now, rewrite Eq. c1.2 with one of the unknown angles isolated on one side /? 4

/? // r 3 (^) rk r

r r r

  • = − (c1.3)

Step 2: Expand Eq. c1.3 into real and x and y components (real and imaginary parts)

sin( ) sin( ) sin( )

cos( ) cos( ) cos( ) 3 3 4 4

3 3 4 4

r r r

r r r k k

k k = −

(c1.4)

Step 3: Square and add Eq. c.1.4 to eliminate one unknown angle (θ 4 ) r 3^2 = rk^2 + r 42 − 2 r 4 rkc 4 ck − 2 r 4 rks 4 sk (c1.5)

Step 4: Use the tan ½ angle identity to yield an algebraic (quadratic) equation:

2 4 2 (^2

2 4 , tan^4 1

(^1) θ = )

= t t

t s t

t c (c1.6)

at^2 + bt + c = 0 (c1.7) with

(c1.8)

k k k

k k

k k k

c r r r rrc

b rrs

a r r r rrc

4

2 4

2 3

2

4

4

2 4

2 3

2

Step 5: Solve for t :

a

b b ac t 2

− ±^2 − 4

= (c1.9)

Note: the two solutions yield the two branches of the mechanism. Step 6: Solve for the unknown angles

Solution for case 1) Two unknown angles: Common application - Fourbar The classic case for solution of this equation is applied to the fourbar:

r

θ 3

O 4

O 2 r

r r

θ 4

θ 2 θ 1

The loop closure equation becomes,

r 2 (^) //+ r 3 /?− r 4 /?− r 1 //= 0 r r r r (c1.11)

Here the unknowns are θ 3 and θ 4 , θ 1 and θ 2 are the ground and input angles respectively.

The procedure begins then with Step 1 above. Step 1: rewrite Eq. 2 with one of the unknown angles isolated on one side // 2

// 1

/? 4

/? r 3 (^) r r r r r r r = + − (c1.12)

Step 2: Expand Eq. c1.3 into real and x and y components (real and imaginary parts)

sin( ) sin( ) sin( ) sin( )

cos( ) cos( ) cos( ) cos( )

3 3 4 4 1 1 2 2

3 3 4 4 1 1 2 2

r r r r

r r r r = + −

(c1.13)

Step 3: Square and add Eq. c.1.13 to eliminate one unknown angle (θ 4 ) r 3^2 = r 22 + r 42 + r 12 − 2 r 4 c 4 ( r 2 c 2 − r 1 c 1 ) − 2 r 4 s 4 ( r 2 s 2 − r 1 s 1 ) − 2 r 2 c 2 r 1 c 1 − 2 r 2 s 2 r 1 s 1 (c1.14)

Step 4: Use the tan ½ angle identity to yield an algebraic (quadratic) equation:

2 4 2 (^2

2 4 1 , tan^4

(^1) θ = )

= t t

t s t

t c (c1.15)

at^2 + bt + c = 0 (c1.16) with ( ) ( )

22 32 42 12 2211 2211 4 (^2211 )

4 22 11

2211 2211 4 22 11

2 1

2 4

2 3

2 2

c r r r r rcrc rsrs r rc r c

b r rs rs

a r r r r rcrc rsrs r rc rc

(c1.17)

Step 5: Solve for t :

a

b b ac t 2

− ±^2 − 4

= (c1.18)

Note: the two solutions yield the two branches of the mechanism. Step 6: Solve for the unknown angles

Automating the solution process for one common case of mechanisms, the fourbar linkage.

Since the fourbar is such a common mechanism, automating the solution process is worthwhile. A few ways to do this might include: Write a function that returns the solution based on an input set of link lengths and driving angle Create a fourbar class that has the functionality of solving the position problem.

An example of the first of these methods is briefly described here. The syntax is based on programming in Matlab. First, create a function in matlab that will be called to solve the fourbar, (for example, fbar.m). This function will accept the link lengths, ground link angle, input angle and branch, and return the unknown angles in the fourbar.

% fbar.m (theta3, theta4) = fbar(r1,r2,r3,r4,theta1,theta2,branch); … theta3=_______ theta4=_______ return

Solution for case 2) One unknown angle, one unknown link length: Two possibilities exist in this case, the unknown angle and length exist in the same vector, or they do not. In the first case, the solution is trivial (unknown vector results from vector addition). In the second case, the procedure is as follows. Start with a loop closure equation, /? 3

// 2

?/ r 1 (^) r r

r r r = + (c2.1)

with the first trailing superscript indicating known/unknown length, the second indicating known/unknown angle.

Step 1: Rewrite the loop closure equation with the unknown angle isolated on one side of the equation. // 2

?/ 1

/? r 3 (^) r r

r r r = − (c2.2)

Step 2: Use the square and add technique to remove the unknown angle. r 3^2 = r 12 + r 22 − 2 r 1 r 2 c 1 c 2 − 2 r 1 r 2 s 1 s 2 (c2.3)

Step 3: This equation is now quadratic in the remaining unknown (r1), solve for the two roots. Note, the two roots correspond to the two possible branches of this loop.

Step 4: Finally, solve for the remaining unknown angle using the atan2 function as before.

with

k kx ky k^ (^ ky kx )

ky

kx

kx

r r r r r

r rs rs

r rc rc

r r r

, ,

2 ,

2 ,

, 1 1 2 2

, 1 1 2 2

, 1 2

= + , =atan 2 ,

r r r

Eliminate the unknown angle with the square and add technique,

r 3^2 = r 42 + rK^2 + 2 r 4 c 4 rKcK + 2 r 4 s 4 rksk (c2.3)

This equation is now a quadratic polynomial in the unknown length r 4. It can be rewritten as,

ar 42 + br 4 + c = 0

where

2 3

2

c r r

b r cc ss

a

k

k k k = −

Step 3: The unknown slider length, r1 is now solved using the quadratic equation,

a

b b ac r 2

1

= (c2.3)

yielding two solutions corresponding to the two branches of the mechanism.

Step 4: and the unknown coupler angle is solved,

3

4 4 3

4 4 3 atan^2 , r

rc rc r

r s rksk k k θ (c2.3)

)

Step 4: Solve by premultiplying both sides of Eq. c3.4 by the inverse of the coefficient matrix,

( 1 2 1 2. (c3.5) 3 3

3 3 1 1

2 2 2

(^1) / sc cs rs

rc s c

s c r

r − ⎭