Jump to content

User:Prof McCarthy/generalized coordinates

From Wikipedia, the free encyclopedia

In analytical mechanics, specifically the study of the rigid body dynamics of multibody systems, the term generalized coordinates refers to the parameters that describe the configuration of the system relative to some reference configuration. These parameters must uniquely define the configuration of the system relative to the reference configuration.[1]

An example of a generalized coordinate is the angle that locates a point moving on a circle, in contrast to its x and y coordinates. The adjective "generalized" distinguishes these parameters from the traditional use of the term coordinate as measured against a specified line, such as Cartesian coordinates .

Parameters that are convenient for the specification of the configuration of a system are selected to be generalized coordinates. If these parameters are independent of one another, then number of independent generalized coordinates is defined by the number of degrees of freedom of the system.[2] [3]

The generalized velocities are the time derivatives of the generalized coordinates of the system.

Simple pendulum

[edit]

The relationship between the use of generalized coordinates and Cartesian coordinates to characterize the movement of a mechanical system can be illustrated by considering the simple pendulum.

Coordinates

[edit]

A simple pendulum consists of a mass M hanging from a pivot point so that it is constrained to move on a circle of radius L. The position of the mass is defined by the coordinate vector r=(x, y} measured in the plane of the circle such that y is in the vertical direction. The coordinates x and y are related by the equation of the circle

f(x,y)=x2+y2−L2=0,

that constrains the movement of M. This equation also provides a constraint on the velocity components,

dfdt(x,y)=xx˙+yy˙=0.

Now introduce the parameter θ, that defines the angular position of M from the vertical direction. It can be used to define the coordinates x and y, such that

𝐫=(x,y)=(Lsin⁡θ,−Lcos⁡θ).

The use of θ to define the configuration of this system avoids the constraint provided by the equation of the circle.

Virtual work

[edit]

Notice that the force of gravity acting on the mass M is formulated in the usual Cartesian coordinates,

𝐅=(0,−Mg),

where g is the acceleration of gravity.

The virtual work of gravity on the mass M as it follows the trajectory r is given by

δW=𝐅⋅δ𝐫.

The variation δr can be computed in terms of the coordinates x and y, or in terms of the parameter θ,

δ𝐫=(δx,δy)=(Lcos⁡θ,Lsin⁡θ)δθ.

Thus, the virtual work is given by

δW=−Mgδy=−MgLsin⁡θδθ.

Notice that the coefficient of δy is the y-component of the applied force. In the same way, the coefficient of δθ is viewed as the generalized force along generalized coordinate θ, given by

Fθ=−MgLsin⁡θ.

Kinetic energy

[edit]

To complete the analysis consider the kinetic energy T of the mass, using the velocity,

𝐯=(x˙,y˙)=(Lcos⁡θ,Lsin⁡θ)θ˙,

so,

T=12M𝐯⋅𝐯=12M(x˙2+y˙2)=12ML2θ˙2.

Lagrange's equations

[edit]

Lagrange's equations for the pendulum in terms of the coordinates x and y are given by,

ddt∂T∂q˙i−∂T∂qi=Fqi+λ∂f∂qi.

This yields the three equations

Mx¨=λ(2x),My¨=−Mg+λ(2y),x2+y2−L2=0,

in the three unknowns, x, y and λ.

Compute two derivatives of the constraint equation and assemble the equations into matrix form

[M0−2x0M−2y−2x−2y0]{x¨y¨λ}={0−Mg2x˙2+2y˙2}


Using the parameter θ, Lagrange's equations take the form

ML2θ¨=−MgLsin⁡θ,

or

θ¨+gLsin⁡θ=0.

This shows that the parameter θ is a generalized coordinate that can be used in the same way as the Cartesian coordinates x and y to analyze the pendulum.

Double pendulum

[edit]
A double pendulum

The benefits of generalized coordinates become apparent with the analysis of a double pendulum. For the two masses mi, i=1, 2, let r=(xi, yi), i=1, 2 define their two trajectories. These vectors satisfy the two constraint equations,

f1(x1,y1,x2,y2)=𝐫1⋅𝐫1−L12=0,f2(x1,y1,x2,y2)=(𝐫2−𝐫1)⋅(𝐫2−𝐫1)−L22=0.

The formulation of Lagrange's equations for this system yields six equations in the four Cartesian coordinates xi, yi i=1, 2 and the two Lagrange multipliers λi, i=1, 2 that arise from the two constraint equations.

Coordinates

[edit]

Now introduce the generalized coordinates θi i=1,2 that define the angular position of each mass of the double pendulum from the vertical direction. In this case, we have

𝐫1=(L1sin⁡θ1,−L1cos⁡θ1),𝐫2=(L1sin⁡θ1,−L1cos⁡θ1)+(L2sin⁡θ2,−L2cos⁡θ2).

The force of gravity acting on the masses is given by,

𝐅1=(0,−m1g),𝐅2=(0,−m2g)

where g is the acceleration of gravity. Therefore, the virtual work of gravity on the two masses as they follow the trajectories ri, i=1,2 is given by

δW=𝐅1⋅δ𝐫1+𝐅2⋅δ𝐫2.

The variations δri i=1, 2 can be computed to be

δ𝐫1=(L1cos⁡θ1,L1sin⁡θ1)δθ1,δ𝐫2=(L1cos⁡θ1,L1sin⁡θ1)δθ1+(L2cos⁡θ2,L2sin⁡θ2)δθ2

Virtual work

[edit]

Thus, the virtual work is given by

δW=−(m1+m2)gL1sin⁡θ1δθ1−m2gL2sin⁡θ2δθ2,

and the generalized forces are

Fθ1=−(m1+m2)gLsin⁡θ1,Fθ2=−m2gLsin⁡θ2.

Kinetic energy

[edit]

Compute the kinetic energy of this system to be

T=12m1𝐯1⋅𝐯1+12m2𝐯2⋅𝐯2=12(m1+m2)θ˙12+12m2θ˙22+m2L1L2cos⁡(θ2−θ1)θ˙1θ˙2.

Lagrange's equations

[edit]

Lagrange's equations yield two equations in the unknown generalized coordinates θi i=1, 2, given by

(m1+m2)L1θ¨1+m2L1L2θ¨2cos⁡(θ2−θ1)+m2L1L2sin⁡(θ2−θ1)=−(m1+m2)gLsin⁡θ1,

and

m2L2θ¨2+m2L1L2θ¨1cos⁡(θ2−θ1)−m2L1L2sin⁡(θ2−θ1)=−m2gLsin⁡θ2.

The use of the generalized coordinates θi i=1, 2 provides an alternative to the Cartesian formulation of the dynamics of the double pendulum.

Constraint equations

[edit]


Generalized coordinates may be independent (or unconstrained), in which case they are equal in number to the degrees of freedom of the system, or they may be dependent (or constrained), related by constraints on and among the coordinates. The number of dependent coordinates is the sum of the number of degrees of freedom and the number of constraints. For example, the constraints might take the form of a set of configuration constraint equations:[1]

fi({qn}, t)=0 ,

where qn is the n-th generalized coordinate and i denotes one of a set of constraint equations, taken here to vary with time t. The constraint equations limit the values available to the set of qn, and thereby exclude certain configurations of the system.

It can be advantageous to choose independent generalized coordinates, as is done in Lagrangian mechanics, because this eliminates the need for constraint equations. However, in some situations, it is not possible to identify an unconstrained set. For example, when dealing with nonholonomic constraints or when trying to find the force due to any constraint—holonomic or not, dependent generalized coordinates must be employed. Sometimes independent generalized coordinates are called internal coordinates because they are mutually independent, otherwise unconstrained, and together give the position of the system.

Top: one degree of freedom, bottom: two degrees of freedom, left: an open curve F (parameterized by t) and surface F, right: a closed curve C and closed surface S. The equations shown are the constraint equations. Generalized coordinates are chosen and defined with respect to these curves (one per degree of freedom), and simplify the analysis since even complicated curves are described by the minimum number of coordinates required.

A system with m degrees of freedom and n particles whose positions are designated with three dimensional vectors, {𝐫i}, implies the existence of 3n−m scalar constraint equations on those position variables. Such a system can be fully described by the scalar generalized coordinates, {q1,q2,...,qm}, and the time, t, if and only if all m {qj} are independent coordinates. For the system, the transformation from old coordinates to generalized coordinates may be represented as follows:[4]: 260 

𝐫1=𝐫1(q1,q2,...,qm,t),
𝐫2=𝐫2(q1,q2,...,qm,t), ...
𝐫n=𝐫n(q1,q2,...,qm,t).

This transformation affords the flexibility in dealing with complex systems to use the most convenient and not necessarily inertial coordinates. These equations are used to construct differentials when considering virtual displacements and generalized forces.

Examples

[edit]

Double pendulum

[edit]
A double pendulum

A double pendulum constrained to move in a plane may be described by the four Cartesian coordinates {x1, y1, x2, y2}, but the system only has two degrees of freedom, and a more efficient system would be to use

{q1,q2}={θ1,θ2},

which are defined via the following relations:

{x1,y1}={L1sin⁡θ1,L1cos⁡θ1}
{x2,y2}={L1sin⁡θ1+L2sin⁡θ2,L1cos⁡θ1+L2cos⁡θ2}

Bead on a wire

[edit]

A bead constrained to move on a wire has only one degree of freedom, and the generalized coordinate used to describe its motion is often

q1=l,

where l is the distance along the wire from some reference point on the wire. Notice that a motion embedded in three dimensions has been reduced to only one dimension.

Motion on a surface

[edit]

A point mass constrained to a surface has two degrees of freedom, even though its motion is embedded in three dimensions. If the surface is a sphere, a good choice of coordinates would be:

{q1,q2}={θ,ϕ},

where θ and φ are the angle coordinates familiar from spherical coordinates. The r coordinate has been effectively dropped, as a particle moving on a sphere maintains a constant radius.

Generalized velocities and kinetic energy

[edit]

Each generalized coordinate qi is associated with a generalized velocity q˙i, defined as:

q˙i=dqidt

The kinetic energy of a particle is

T=m2(x˙2+y˙2+z˙2).

In more general terms, for a system of p particles with n degrees of freedom, this may be written

T=∑i=1pmi2(x˙i2+y˙i2+z˙i2).

If the transformation equations between the Cartesian and generalized coordinates

xi=xi(q1,q2,...,qn,t)
yi=yi(q1,q2,...,qn,t)
zi=zi(q1,q2,...,qn,t)

are known, then these equations may be differentiated to provide the time-derivatives to use in the above kinetic energy equation:

x˙i=ddtxi(q1,q2,...,qn,t).

It is important to remember that the kinetic energy must be measured relative to inertial coordinates. If the above method is used, it means only that the Cartesian coordinates need to be inertial, even though the generalized coordinates need not be. This is another considerable convenience of the use of generalized coordinates.

Applications of generalized coordinates

[edit]

Such coordinates are helpful principally in Lagrangian mechanics, where the forms of the principal equations describing the motion of the system are unchanged by a shift to generalized coordinates from any other coordinate system. The amount of virtual work done along any coordinate qi is given by:

δWqi=Fqi⋅δqi,

where Fqi is the generalized force in the qi direction. While the generalized force is difficult to construct 'a priori', it may be quickly derived by determining the amount of work that would be done by all non-constraint forces if the system underwent a virtual displacement of δqi, with all other generalized coordinates and time held fixed. This will take the form:

δWqi=f(q1,q2,...,qn)⋅δqi,

and the generalized force may then be calculated:

Fqi=δWqiδqi=f(q1,q2,...,qn).

Generalized coordinates and virtual work

[edit]

The principle of virtual work states that the virtual work of the applied forces is zero for all virtual movements of the system from static equilibrium, that is, δW=0 for any variation δr.[4] When formulated in terms of generalized coordinates, this is equivalent to the requirement that the generalized forces for any virtual displacement are zero, that is Fi=0.

Let the forces on the system be Fj, j=1, ..., m and let the virtual displacement of each point of application of these forces be δrj, j=1, ..., m, then the virtual work generated by a virtual displacement of these forces from the equilibrium position is given by

δW=∑j=1m𝐅j⋅δ𝐫j.

Now assume that each δrj depends on the generalized coordinates qi, i=1, ..., n, then

δ𝐫j=∂𝐫j∂q1δq1+…+∂𝐫j∂qnδqn,

and

δW=(∑j=1m𝐅j⋅∂𝐫j∂q1)δq1+…+(∑j=1m𝐅j⋅∂𝐫j∂qn)δqn.

The n terms

Fi=∑j=1m𝐅j⋅∂𝐫j∂qi,i=1,…,n,

are the generalized forces acting on the system. Kane[5] shows that these generalized forces can also be formulated in terms of the ratio of time derivatives,

Fi=∑j=1m𝐅j⋅∂𝐯j∂q˙i,i=1,…,n,

where vj is the velocity of the point of application of the force Fj.

In order for the virtual work to be zero for an arbitrary virtual displacement, each of the generalized forces must be zero, that is

δW=0⇒Fi=0,i=1,…,n.

See also

[edit]

References

[edit]
  1. 1 2 Jerry H. Ginsberg (2008). "§7.2.1 Selection of generalized coordinates". Engineering dynamics, Volume 10 (3rd ed.). Cambridge University Press. p. 397. ISBN 0-521-88303-2.
  2. ↑ Farid M. L. Amirouche (2006). "§2.4: Generalized coordinates". Fundamentals of multibody dynamics: theory and applications. Springer. p. 46. ISBN 0-8176-4236-6.
  3. ↑ Florian Scheck (2010). "§5.1 Manifolds of generalized coordinates". Mechanics: From Newton's Laws to Deterministic Chaos (5th ed.). Springer. p. 286. ISBN 3-642-05369-6.
  4. 1 2 Torby, Bruce (1984). "Energy Methods". Advanced Dynamics for Engineers. HRW Series in Mechanical Engineering. United States of America: CBS College Publishing. ISBN 0-03-063366-4.
  5. ↑ T. R. Kane and D. A. Levinson, Dynamics: theory and applications, McGraw-Hill, New York, 1985
  • Greenwood, Donald T. (1987). Principles of Dynamics (2nd edition ed.). Prentice Hall. ISBN 0-13-709981-9. {{cite book}}: |edition= has extra text (help)
  • Wells, D. A. (1967). Schaum's Outline of Lagrangian Dynamics. New York: McGraw-Hill.