analytical dynamics with constraint forces

Upload: duong-van-tu

Post on 06-Apr-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 Analytical Dynamics With Constraint Forces

    1/7

    Analytical dynamics with constraint forcesthat do work in virtual displacements

    Robert Kalaba *, Firdaus Udwadia

    Department of Biomedical Engineering, University of Southern California,

    OHE-500 University Park, Los Angeles, CA 90089-1451, USA

    Abstract

    Lagrangian mechanics is extended to cover situations in which constraint forces are

    permitted to do work on a system in virtual displacements. 2001 Elsevier Science

    Inc. All rights reserved.

    Keywords: Lagrangian mechanics; Pseudoinverse of a matrix; Principle of virtual work

    1. Introduction

    Much of analytical dynamics is studied under the assumption that the

    constraint forces do no work on the system in any virtual displacement. Yet, it

    is clear that constraint forces such as friction do do work on the system in

    virtual displacements. The purpose of this paper is to show how such

    constraint forces may be taken into account in a systematic and convenientmanner. A new physical principle which generalizes the principle of virtual

    work must be adduced.

    Let the conguration of the system be described by the n generalized

    coordinates q1; q2; . . . ; qn. Then the Lagrange equations of motion may bewritten as

    Mq Q; 1

    Applied Mathematics and Computation 121 (2001) 211217

    www.elsevier.com/locate/amc

    * Corresponding author. Tel.: +1-213-740-0347; fax: +1-213-740-0343.

    0096-3003/01/$ - see front matter 2001 Elsevier Science Inc. All rights reserved.

    PII: S 0 0 9 6 - 3 0 0 3 ( 9 9 ) 0 0 2 9 1 - X

  • 8/3/2019 Analytical Dynamics With Constraint Forces

    2/7

    where M is a positive denite symmetric matrix having dimensions n by n and

    depending on t and q. The generalized force vector Q is a function oft, q and _q,

    and is n-dimensional. The generalized acceleration vector q is

    q q1; q2; . . . ; qnT; 2

    and, of course,

    q q1; q2; . . . ; qnT:

    The n-dimensional vector _q is the generalized velocity vector.

    Next assume that m constraints are specied of the form

    ujt; q;_q 0; j 1; 2;

    . . .

    ;m: 3Then dierentiation of both sides of these equations with respect to t yields the

    dierentiated form of the constraint equation

    Aq b; 4

    where A, a function of t; q and _q, is m by n, and b, also a function of t; q, and _q,is an m-dimensional vector. Holonomic constraints are dierentiated twice and

    nonholonomic constraints are dierentiated once with respect to time to obtain

    Eq. (4). Together with initial conditions at some time these are equivalent to

    Eq. (3). We assume that the rank of A is r6m. The number of equality con-straints m need not be less than n. We assume, though, that they are consistent.

    The actual equation of motion then assumes the form

    Mq Q Qc; 5

    where Qc is the generalized constraint force vector called into existence to

    maintain the constraints but do no work on the system in a virtual displace-

    ment. In Eqs. (4) and (5) there are 2n unknowns, the components of q and Qc,

    but there are only n r prescribed conditions. The needed n r additionallinear relations are provided, conventionally, by the principle of virtual work,

    which requires that the constraint force Qc

    do no work in a virtual displace-ment. This amounts to requiring that

    vTQc 0 6

    for all virtual displacements vectors v, of dimension n, for which

    Av 0:

    The solution of the system of Eqs. (4)(6) is [1]

    q a M1=2AM1=2b Aa; 7

    where a M1Q. The n-dimensional vector a is the generalized acceleration ofthe system that is free of constraints. Eq. (7) may be written as

    212 R. Kalaba, F. Udwadia / Appl. Math. Comput. 121 (2001) 211217

  • 8/3/2019 Analytical Dynamics With Constraint Forces

    3/7

    Mq Q M1=2AM1=2b Aa; 8

    so that

    Qc QN M1=2AM1=2b Aa; 9

    is the generalized constraint force called into play to maintain the constraints

    while doing no work on the system in any virtual displacement.

    2. Constraints forces that do work on the system

    Now let us consider the incorporation of constraint forces which may dowork on the system in a virtual displacementfriction is an example. We

    denote the n-dimensional vector of such forces as c ct; q; _q. In any dis-placement v such forces do the work vTc. Therefore, in a virtual displacement v,

    for which Av 0, the actual constraint force, Qc, will have to do the sameamount of work, so that

    vTQc vTc; 10

    which is a new physical principle. It generalizes Eq. (6), the principle of virtual

    work. Under the new principle the work done by the constraint forces in avirtual displacement may be positive or negative as well as zero.

    The vectors q and Qc are thus to be determined by the relations

    Mq Q Qc; 11

    Aq b; 12

    and

    vTQc vTc v such that Av 0: 13

    The task now is to solve these equations for q and Qc. (It can be shown that a

    solution exists and is unique.) Needed background concerning pseudoinverses

    is available in [1, Chapter 2].

    3. Derivation of the new explicit equation of motion

    We introduce

    B AM1=2

    ; 14r M1=2q; 15

    R. Kalaba, F. Udwadia / Appl. Math. Comput. 121 (2001) 211217 213

  • 8/3/2019 Analytical Dynamics With Constraint Forces

    4/7

    so that Eq. (12) becomes

    Br b: 16

    The general solution of this equation is

    r Bb I BBw; 17

    where B is the n by m pseudoinverse of the matrix B, and w is an arbitrary

    n-dimensional vector. We wish to determine this vector. The equation Av 0can be rewritten as

    Bu 0; 18

    where u M1=2v. It follows, then, from Eqs. (13) and (11), that for all u suchthat Bu 0,

    uTM1=2Mq Q uTM1=2c: 19

    But this equation can be rewritten as

    uTM1=2Mq Q c 0; 20

    or

    uTr Q c 0; 21

    where

    M1=2Q Q; 22

    and

    M1=2c c: 23

    The general solution of Eq. (18) has the form

    u I BBz; 24

    where z is an arbitrary n-dimensional vector. Eq. (21) becomes

    zT I BB Bb

    I BBw Q c

    0; 25

    where we have used Eq. (17). It follows that

    zT I BB w

    Q c

    0: 26

    From this it follows that the vector

    w Q c Bz1; 27

    where z1 is again arbitrary. Upon substituting the value w Q c Bz1 into

    Eq. (17) we nd

    r Bb I BBQ c: 28

    214 R. Kalaba, F. Udwadia / Appl. Math. Comput. 121 (2001) 211217

  • 8/3/2019 Analytical Dynamics With Constraint Forces

    5/7

    From this it follows that

    M1=2q Bb I BBM1=2Q M1=2c;

    q M1=2Bb M1Q M1=2BBM1=2Q M1=2I BBM1=2c:

    29

    Finally, we have the desired equation of motion

    q a M1=2Bb Aa M1=2I BBM1=2c; 30

    which may be rewritten in the form

    Mq Q M1=2Bb Aa M1=2I BBM1=2c: 31

    The rst two terms on the right side have been seen before in Eq. (8). They are

    the applied force Q and the constraint force QN that does no work in any

    virtual displacement but maintains the constraints, Aq b. The third term isoccasioned by the specied constraint force c that does work in a virtual dis-

    placement. We may denote it by QW, so that Eq. (31) assumes the elegant form

    Mq Q QN QW; 32

    with

    QW M1=2I BBM1=2c; 33

    and

    QN M1=2Bb Aa: 33H

    Thus the constraint force Qc has two components and may be written

    Qc QN QW; 34

    where the forms ofQN and QW are as shown above.

    Equation (31) is the explicit equation of motion for mechanical systems that

    have constraint forces that may do work on the system in a virtual displace-

    ment. Equation (30) is the form that is used for numerical integration.

    4. An example

    Consider a bead of unit mass that moves along a vertical circle of unit radius

    under the inuence of gravity. We introduce the rectangular coordinates x1 and

    x2. Then

    M1 00 1

    and a

    0g

    :

    R. Kalaba, F. Udwadia / Appl. Math. Comput. 121 (2001) 211217 215

  • 8/3/2019 Analytical Dynamics With Constraint Forces

    6/7

    The constraint equation x21 x22 1 leads, through two dierentiations with

    respect to t, to the linear constraint on the acceleration components

    x1x1 x2x2 _x21 _x

    22. From this we see that A x1 x2, a 1 by 2 matrix

    and b _x21 _x22, a scalar. If no friction is present, the equation of motion is

    simply

    x x1x2

    :: a Ab Aa: 35

    Since A x1 x2, its pseudoinverse, A, is

    A 1

    x2

    1 x2

    2

    x1

    x2 : 36

    The equation of motion is thus

    x1x2

    ::

    0

    g

    1

    x21 x22

    x1x2

    gx2

    h _x21 _x

    22i

    0

    g

    QN; 37

    since

    Aa x1 x20

    g

    gx2:

    Let us assume that the force of friction, the usual Coulomb friction force, c,is specied as being ``proportional to the normal thrust''. This means that

    c l1

    _x21 x22

    p _x1_x2

    jQNj; 38

    where, according to Eq. (37), the normal thrust, QN, is given by

    QN 1

    x21 x22

    x1x2

    gx2

    h _x21 _x

    22i: 39

    The constant l is the coecient of friction. If follows from Eq. (30) that the

    equation of motion, including friction, is

    x1

    x2

    ::

    0

    g

    1

    x21 x22

    x1

    x2

    gx2

    h _x21 _x

    22i

    I

    &

    1

    x21 x22

    x1x1 x1x2

    x2x1 x2x2

    'c; 40

    where c is specied in Eq. (38).

    In view of the fact that one dierentiation of the constraint x2

    1

    x22

    1 givesx1 _x1 x2 _x2 0, we see that the last term on the right in Eq. (40) simplies tofI Ogc c, in this special case. In general, Eq. (33) shows that if the vector

    216 R. Kalaba, F. Udwadia / Appl. Math. Comput. 121 (2001) 211217

  • 8/3/2019 Analytical Dynamics With Constraint Forces

    7/7

    M1=2c lies in the null space of the matrix B, then QW c; ifM1=2c lies in therange space ofBT, then QW 0.

    5. Discussion

    A simple and comprehensive method for incorporating into Lagrangian

    mechanics the eects of constraint forces that may do work on a system in a

    virtual displacement has been given. First, a generalized form of the principle

    of virtual work was given in Section 2. Then the new equations of motion were

    given in Section 3, and an example was adumbrated in Section 4. Since modern

    computing environments, such as MATLAB, contain commands for obtainingpseudoinverses of matrices, numerical experiments are now under way, and

    results will be reported subsequently.

    Reference

    [1] F. Udwadia, R. Kalaba, in: Analytical Dynamics, Cambridge University Press, New York,

    1996.

    R. Kalaba, F. Udwadia / Appl. Math. Comput. 121 (2001) 211217 217