Hamiltonial Methods for Geophysical Fluid Dynamics

download Hamiltonial Methods for Geophysical Fluid Dynamics

of 32

Transcript of Hamiltonial Methods for Geophysical Fluid Dynamics

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    1/32

    Hamiltonian Methods for Geophysical Fluid Dynamics:

    An Introduction

    Peter Lynch

    Met Eireann, Glasnevin Hill, Dublin 9, Ireland

    February 25, 2002

    Abstract

    The value of general Hamiltonian methods in geophysical uid dynamics has become clear over recentyears. This paper provides an introduction to some of the key ideas necessary for fruitful applicationof these methods to problems in atmosphere and ocean dynamics. Hamiltonian dynamics is reviewedin the context of simple particle dynamics. The non-canonical formalism which is required for uiddynamics is introduced rst in the nite-dimensional case. The Lagrangian and Eulerian formulationsof the uid dynamical equations are then considered, and the method of reduction from Lagrangianto Eulerian form is described. Rotational effects are introduced in the context of the shallow waterequations, and these equations are expressed in Hamiltonian form in both Lagrangian and Eulerianvariables. Finally, simple balanced systems are derived, in which constraints are imposed on the uidmotion by applying least action principles to Lagrangians modied either by additional terms withLagrange multipliers or by direct approximation.

    Contents

    1 Introduction 2

    2 Finite Dimensional Mechanical Systems 32.1 The Canonical Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32.2 The Symplectic Form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52.3 Poisson Brackets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52.4 Noethers Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72.5 Casimirs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

    IMA, University of Minnesota, Preprint 1838 [ http://www.ima.umn.edu/preprints/feb02/1838.pdf ] Email: [email protected] Web: http://www.maths.tcd.ie/ plynch/

    1

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    2/32

    Peter Lynch Hamiltonian Methods 2

    3 Continuous Fluid Systems 93.1 Lagrangian and Eulerian Descriptions . . . . . . . . . . . . . . . . . . . . . . . 93.2 Transition from Discrete to Continuous . . . . . . . . . . . . . . . . . . . . . . 113.3 The Lagrangian Momentum Equation . . . . . . . . . . . . . . . . . . . . . . . 113.4 Functional Derivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

    3.5 The Canonical Equations for a Fluid . . . . . . . . . . . . . . . . . . . . . . . . 143.6 Conserved Quantities, Noethers Theorem and Casimir Functionals . . . . . . . . 15

    4 Reduction from Lagrangian to Eulerian Form 16

    5 Shallow Water Equations 205.1 Lagrangian Equations in a Rotating Frame . . . . . . . . . . . . . . . . . . . . . 215.2 Hamiltonian Form of the Equations . . . . . . . . . . . . . . . . . . . . . . . . 235.3 Eulerian Form of the Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

    6 Balanced Equations 256.1 Non-divergence Constraint in Lagrange Variables . . . . . . . . . . . . . . . . . 256.2 Salmons L-1 System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266.3 Hamiltons Principle in Euler Variables . . . . . . . . . . . . . . . . . . . . . . 276.4 Balanced Eulerian Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

    7 Summary 30

    1 Introduction

    The application of general Hamiltonian methods to uid dynamics has been an area of increasinginterest over the past few decades. A number of reviews have appeared, and this paper has bor-

    rowed heavily from several of them. We refer in particular to review papers by Salmon (1988a),Shepherd (1990) and Morrison (1998), and to the recent textbook of Salmon (1998). The under-lying theory has considerable sthetic appeal and the methods of generalized analytical dynamicsare powerful. A specic example is Noethers Theorem, which provides a connection betweencontinuous symmetries of the Hamiltonian function and conservation laws of the system.

    We will examine the application of Hamiltonian theory in its generalized formulation to prob-lems in geophysical uid dynamics. The canonical form which is applicable to many nite-dimensional systems is not the appropriate framework; indeed, it was the undue emphasis onthe canonical equations which hampered progress in Hamiltonian uid dynamics for so long. Amore general formulation is required; this is presented in 2 below. It consists of identifyingappropriate generalized coordinates z , a Hamiltonian function H (z ) and a symplectic operator J

    having special algebraic properties. Some of the new ideas are illustrated through the example of the swinging spring, a simple mechanical system with interesting properties (Lynch, 2002a).

    There are several advantages associated with the general Hamiltonian formulation. First,Hamiltonian methods are not tied to a particular coordinate system. The freedom to choose coor-dinates can result in signicant simplications of the equations. Second, due to the relationship

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    3/32

    Peter Lynch Hamiltonian Methods 3

    between symmetries and conservation laws, approximations which conserve symmetries of theHamiltonian also retain analogues of the conservation laws of the exact system. Thus, variousbalance systems may be derived, which have energetics consistent with the systems from whichthey are derived. Thirdly, the general Hamiltonian framework can be a powerful starting point forperturbation analysis. Approximations may be introduced directly into the system Hamiltonian

    or Lagrangian function before the least action principle is used to obtain approximate equations.The average Lagrangian technique is frequently easier to apply than alternative perturbation tech-niques.

    2 Finite Dimensional Mechanical Systems

    2.1 The Canonical Equations

    The state of a mechanical system with N degrees of freedom, comprising a nite collectionof discrete particles, can be specied by the generalized coordinates {q n , n = 1, 2, . . . , N } asfunctions of the time t . The dynamics of the system are determined by the Lagrangian L = T V ,the difference between the kinetic and potential energies. The Lagrangian L = L(q n , q n , t ) is afunction of the coordinates q n , the velocities q n and possibly the time t. The evolution of thesystem may be determined from Hamiltons principle

    t 0

    0L dt = 0 (1)

    where the variation is the change in the action Ldt resulting from variations q n which vanishat the initial and nal times t = 0 and t = t0 . The solution of this variational problem yields theEuler-Lagrange equations

    d

    dt

    L

    q n

    L

    q n= 0 . (2)

    Note that the dynamics is unaffected by scaling of L or addition of an arbitrary constant to it:L L + with and constant does not result in any change to (2).

    EXAMPLE 1: THE SWINGING SPRING I. The Lagrangian of a spherical elastic pendulum or swinging spring maybe written

    L = 12 m(x2 + y2 + Z 2 ) 12 k(r 0 )

    2 mgz

    where m is the mass of the bob, k the stiffness of the spring and g the acceleration due to gravity. The rst right-handterm is the kinetic energy, the second is the elastic potential energy and the third is the gravitational potential energy.The coordinates are (q 1 , q 2 , q 3 ) = ( x,y,Z ), cartesian coordinates centered at the point of suspension of the spring,and r = x2 + y2 + Z 2 . The equations of motion may be written immediately using (2):

    x + km r 0

    r x = 0 , y + km r 0

    r y = 0 , z + km r 0

    r z + g = 0 .

    The momentum p = ( mx, m y, m z) is obtained from derivatives of the Lagrangian with respect to the velocities.

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    4/32

    Peter Lynch Hamiltonian Methods 4

    The generalized momentum is dened as

    pn = L(q, q )

    q n. (3)

    In typical conditions (for a non-singular Lagrangian) these equations may be inverted to obtainq n as functions of pn and q n . We assume that this is the case. The Hamiltonian is dened bymeans of the Legendre transformation

    H (q, p) = pn q n L(q, q ) . (4)

    We assume that (3) has been solved for q so that H is a function of the canonical variables p andq . Hamiltons principle requires that the action

    t 0

    0 pn q n H (q, p) dt

    is stationary for independent variations q n and pn with q n vanishing at the end-times. Thisresults in Hamiltons canonical equations :

    dq ndt

    = H pn

    , dpn

    dt = H

    q n. (5)

    EXAMPLE 2 : THE S WINGING S PRING II. For the swinging spring, the Lagrangian of Example 1, approximated tocubic order in the amplitudes, is

    L = 12 x2 + y2 + z2 12

    2R (x

    2 + y2 ) + 2Z z2 + 12 (x

    2 + y2 )z , (6)

    where x, y and z are Cartesian coordinates centered at the point of equilibrium, R =

    g/ , Z =

    k/m and

    = 0 2Z /

    2

    . For simplicity we assume m = 1 . The generalized momenta are ( px , py , pz ) = ( x, y, z), and theLegendre transformation (4) yields the Hamiltonian

    H = 12 ( p2x + p

    2y + p

    2z ) +

    12

    2R (x

    2 + y2 ) + 2Z z2 12 (x

    2 + y2 )z ,

    Then the canonical Hamiltonian equations are

    x = px , px = 2R x + xz ,y = py , py =

    2R y + yz , (7)

    z = pz , pz = 2Z z + 12 (x

    2 + y2 ) .

    The case Z = 2R is of special interest. In this resonant case, there is strong interchange of energy between theswinging and springing motions (Lynch, 2002a,b). We consider the resonant case below.

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    5/32

    Peter Lynch Hamiltonian Methods 5

    2.2 The Symplectic Form

    If we dene a vector z = z i = {q 1 , q 2 , . . . , q N , p1 , p2 , . . . , pN }, the full system (5) can be writtenin vectorial form

    z = J z H .

    or in tensorial form asz i = J ij

    H z j

    , (8)

    where the matrix J = J ij , called the symplectic operator, 1 is dened by

    J = J ij = O I I O . (9)

    The summation convention applies in (8) and below, where repeated indices are summed overtheir ranges, unless otherwise indicated.

    It is straightforward to show that J ij transforms as a second order contravariant tensor whichis skew-symmetric

    J ji = J ij

    and satises the Jacobi identity

    J imJ jk

    z m + J jm

    J ki

    z m + J km

    J ij

    z m = 0 .

    If J is non-singular then, according to Darbouxs Theorem (see, e.g., Jos e and Saletan, 1998), it ispossible to transform to coordinates for which J assumes the canonical form (9). If J is singularthe system is called non-canonical . In general, J is a function of the coordinates z . A system isHamiltonian if we can specify a function H and an operator J , singular or otherwise, which isskew-symmetric and satises the Jacobi identity, and such that the evolution is governed by (8).

    The advantage of the formulation (8) is that it enables us to consider non-canonical dynamicalsystems. It is in this general form that the methods may be applied to continuous systems such asuids.

    2.3 Poisson Brackets

    The Poisson bracket of two functions of state is a bilinear operator dened as

    {F, G } = F q n

    Gpn

    F pn

    Gq n

    In terms of z i and J ij it may be written

    {F, G } = F z i

    J ij Gz j

    (10)

    1The term symplectic , from the Greek for intertwined, was introduced in 1939 by Hermann Weyl in his book The ClassicalGroups (Goldstein, et al. , 2002).

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    6/32

    Peter Lynch Hamiltonian Methods 6

    and this form provides the denition valid for general J . Following from the properties of thesymplectic operator J ij , the Poisson brackets are also skew-symmetric

    {F, G } = { G, F }

    and satisfy the Jacobi identity

    {E, {F, G }} + {F, {G, E }} + {G, {E, F }} = 0

    for all state functions E , F and G. The canonical equations may now be written in the form

    q n = {q n , H } , pn = { pn , H } ,

    or, in terms of the variable z i = {q 1 , q 2 , . . . , q N , p1 , p2 , . . . , pN },

    z i = {z i , H } .

    The time evolution of a general state function F (z ) = F (q, p) is given by

    dF dt = {F, H } . (11)

    This is the evolution equation for a general Hamiltonian system.A general Hamiltonian system consists of a phase-space and two geometric objects, a scalar

    H and a Poisson bracket { , } which is a skew-symmetric bilinear operator satisfying the Jacobiidentity.

    EXAMPLE 3 : THE S WINGING S PRING III. We apply the average Lagrangian technique to the swinging spring (seeHolm and Lynch, 2002, for details). The solution is assumed to be of the form

    x = [a(t) exp( iR t)] , y = [b(t) exp( iR t)] , z = [c(t) exp(2 iR t)] .

    The coefcients a(t), b(t) and c(t) are assumed to vary on a time scale which is much longer than the time-scale

    of the oscillations. If the Lagrangian (6) is now averaged over the fast time, the Euler-Lagrange equations for themodulation amplitudes areia = a c , ib = b c , ic = 14 (a

    2 + b2 )

    where = / (4R ). If we now introduce new dependent variables A1 , A2 and A3 dened by

    A1 = 12 (a + ib) , A2 = 1

    2 (a ib) , A3 = ic,

    the modulation equations take the following form

    A1 = A2 A3 ,A2 = A3 A1 , (12)A3 = + A1 A2 .

    These are the three-wave equations .The three-wave equations conserve the following three quantities,

    H = ( A1 A2 A3 A

    1 A

    2 A3 ) ,N = |A1 |2 + |A2 | 2 + 2 |A3 | 2 ,M = |A1 |2 | A2 | 2 .

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    7/32

    Peter Lynch Hamiltonian Methods 7

    The rst, H = 2 i {A1 A2 A3 }, is the Hamiltonian of the system (see Holm & Lynch, 2002). The second, N , is ameasure of the energy of the oscillations and the third, M , is the angular momentum.

    Dening z = ( A1 , A2 , A3 , A1 , A2 , A3 ), the system (12) together with its complex conjugate can be written incanonical form (8) with J given by (9). Alternatively, ifwe write An = An R + iAn I and dene p = ( A1R , A2R , A3R )and q = ( A1I , A2I , A3I ), then (12) are in the canonical form (5).

    2.4 Noethers Theorem

    There is an intimate relationship between symmetry and invariance of dynamical systems. Thiswas rst elucidated by Emmy Noether (18821935). Symmetry is a geometric property in whichquantities remain unchanged under coordinate transformation. Invariance is an algebraic or an-alytical property whereby integrals of the motion are constant along system trajectories. Weconsider a continuous family of coordinate transformations q n (t) q n (, t ) parameterized by asingle quantity , such that q n (t) = q n (0, t). For example, consider a translation along a singledirection, q k () = q k + (for notational simplicity, we will drop the explicit dependence on t).We assume that the Lagrangian is not altered by the transformation, L[q n (), q n ()] = L[q n , q n ],

    which implies a symmetry of the system. Thus,d

    dL[q n (), q n ()] =

    Lq n ()

    q n ()

    + L q n ()

    q n ()

    = 0 .

    Since q n () is a solution of Lagranges equations for any , we also have

    ddt

    L q n ()

    Lq n ()

    = 0 .

    Combining these two equations gives

    d

    dt

    L

    q n ()

    q n ()

    +

    L

    q n ()

    d

    dt

    q n ()

    =

    d

    dt

    L

    q n ()

    q n ()

    = 0 .In particular, this holds for = 0 . Thus, the quantity

    N L q n

    q n

    = pnq n

    (13)

    is an invariant of the motion. Thus, the symmetry property implies a conservation law. Thereverse also holds: every conserved quantity is associated with a symmetry of the dynamicalsystem.

    EXAMPLE 4: THE SWINGING SPRING IV. We rst illustrate Noethers Theorem in two simple cases: invarianceunder translation and invariance under rotation. Suppose the Lagrangian is

    L = 12 (x2 + y2 + z2 ) V (z)

    where the potential energy is independent of x and y. The Lagrangian is invariant under the horizontal translationx x + . The quantity N in (13) is just the x-momentum px = mx. Clearly, the y-momentum py = my is also aconstant of the motion. Thus, translational invariance corresponds to conservation of linear momentum.

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    8/32

    Peter Lynch Hamiltonian Methods 8

    Consider now invariance under a rotation:

    x() = + x cos + y sin y() = x sin + y cos z() = z .

    If the Lagrangian is assumed to be unchanged under this transformation, (13) yields the following conserved quan-tity:

    N = m(yx xy) .

    This is, of course, the angular momentum about the vertical. Thus, rotational invariance is associated with conser-vation of angular momentum.

    Now recall from Example 3 that the Hamiltonian for envelope amplitudes of the swinging spring is given byH = 2 i {A1 A2 A3 } = ( ABC A B C ), where (A1 , A2 , A3 ) = ( A,B,C ) and we take p = ( A,B,C ) andq = ( A , B , C ) as canonically conjugate coordinates. The Hamiltonian is unchanged under the following trans-formations:

    1. The phases of A and C are changed by equal amounts;

    2. The phases of B and C are changed by equal amounts;

    3. The phases of A and B are changed by opposite amounts.

    By means of the Legendre transformation, it is clear that the Lagrangian has similar properties of symmetry. Considerthe rst case, and let A A exp( i ) and C C exp(i ). Using (13), we nd that the following quantity isconserved:

    N = pnq n =0

    = A( iA ) + C ( iC ) = i(|A|2 + |C | 2 ) .

    Thus, N 1 | A| 2 + |C |2 is a constant of motion. Similarly, N 2 | B |2 + |C |2 is invariant ( N 1 and N 2 are called theManley-Rowe quantities). The sum or these is N = |A|2 + |B | 2 + 2 |C | 2 , which we already noted as an invariant inExample 3 above. The third symmetry yields constancy of the angular momentum quantity, M = |A|2 | B | 2 . Wethus see how constants of the motion may be found by scrutiny of the Hamiltonian, without explicit consideration of the equations of motion.

    2.5 Casimirs

    If the reduction of a Hamiltonian system results in a non-canonical formulation, there are con-stants of the motion associated with the singular nature of the symplectic operator. In the reducedphase-space, canonical coordinates do not exist. There are conserved quantities correspondingto symmetries of the original system which no longer appear explicitly in the reduced Hamilto-nian. These appear as additional constants of motion called Casimirs .2 The reduced Hamiltonianis determined only up to addition of these Casimir functions. The Casimirs of the problem arethose functions of z which Poisson-commute with all other state functions or, equivalently, whosez -derivatives are in the kernel of J :

    {F, C } = 0 , F = F (z ) or J ij C z j

    = 0 .

    2According to Marsden and Ratiu (1999), H. B. G. Casimir, a student of Paul Ehrenfest, wrote a brilliant thesis on the quantummechanics of the rigid body (Casimir, 1931)

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    9/32

    Peter Lynch Hamiltonian Methods 9

    They arise due to the singularity of the symplectic operator J because, if J is invertible, its kernelis trivial. For canonical systems there are no non-constant Casimirs. The number of independentCasimirs is the co-rank of the operator J . Through Noethers Theorem, continuous symmetriesof the Hamiltonian are associated with invariants of the motion. Casimirs are also constants of the motion, since dC/dt = {C, H } = 0 , but they are determined by the degenerate structure of

    J , not by the Hamiltonian H . The dynamics are not altered by addition of an arbitrary linearcombination of the Casimir functions to the Hamiltonian.EXAMPLE 5: THE SWINGING SPRING V. For the special case where the Hamiltonian takes the value zero, thesystem (12) reduces to three real equations for X = |A1 |, Y = |A2 | and Z = |A3 |:

    X = Y Z , Y = ZX , Z = + XY . (14)

    If we dene the coordinates as zi = ( X,Y,Z )T and the Hamiltonian to be H = 12 (X 2 + Y 2 + 2 Z 2 ), this system

    can be written as a non-canonical Hamiltonian system

    z i = J ij H z j

    where the symplectic matrix takes the (non-unique) form

    J = J ij =0 2kZ ( 12 k)Y

    2kZ 0 ( 12 + k)X ( 12 k)Y (

    12 + k)X 0

    .

    Here k is arbitrary; J takes its simplest forms for k 12 , 0, +12 . We note that |J | = 0 , so the system is

    non-invertible. In any case, the system is obviously non-canonical, since the order of z is odd. It is straightforwardto show that J satises the Jacobi identity

    ijk J imJ jk

    z m = 0 .

    We dene C (k) = 2 kH + M where M = X 2 Y 2 is the angular momentum of the spring. ClearlyC (k)/z j = 4 (k + 12 )X, (k

    12 )Y, 2kZ

    Tand so

    J ij C (k)

    z j = 0 .Thus, C (k) is a Casimir of the system. Since k is arbitrary, we may choose k = 0 . Then M = C (0) is a Casimir.Obviously, so is any function f (M ). The dynamics are unaffected by addition of f (M ) to the Hamiltonian. Thus,for example, we may consider

    H = H + 12 M = X 2 + Z 2 ,

    to be the Hamiltonian. This is simpler than the original form, since Y no longer appears in it.Equations (14) are equivalent to Eulers equations for the rotation of a free rigid body rotating about its center

    of gravity (see Lynch, 2002c for discussion). For a generalized Hamiltonian formulation of Eulers equations, seeShepherd, 1990.

    3 Continuous Fluid Systems

    3.1 Lagrangian and Eulerian Descriptions

    In the Lagrangian description, each uid particle is assigned a label a = ( a,b,c). For example,the labels may be dened in terms of the positions of the particles at the initial time. The label

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    10/32

    Peter Lynch Hamiltonian Methods 10

    of an individual particle is xed for all time and travels with the ow. The independent variablesare (a,b,c, ), where we denote time by so that / means that (a,b,c) are held xed. Thedependent variables are the position coordinates

    x(a,b,c, ) , y(a,b,c, ) , z (a,b,c, ) (15)

    of the particles as functions of their labels and the time. We assume this transformation is invert-ible at every time so that (a,b,c) can be obtained in terms of (x,y,z ).The derivatives in a -space and x -space are related by the chain rule

    F

    = F t

    t

    + F x

    x

    + F y

    y

    + F z

    z

    (16)

    (/t means that (x,y,z ) are held constant). But the velocity of a particle is given by the sub-stantive derivative

    v = ( u,v,w) =x

    , y

    , z

    so (16) can be written

    F = F t + uF x + vF y + wF z = F t + v x F

    which is the usual expression for the Lagrangian time derivative, normally written dF/dt , fol-lowing the ow.

    It is convenient to assign the particle labels in such a way that

    dm = dadb dc = dV a ,

    where dm is the mass of an innitesimal volume dV a in a -space. But

    dm = dx dy dz = dV xwhere dV x is the volume in x -space. The volume expressions are relatated by the Jacobian of the

    transformation (15) so we have =

    (a,b,c) (x,y,z )

    a

    x .

    The specic volume is the inverse of the density,

    = (x,y,z ) (a,b,c)

    x

    a .

    and the substantive derivative of this leads to

    = ux

    + vy

    + wz

    (see Salmon, 1998, p. 6). We can rewrite this in a more familiar form

    ddt

    + v = 0 ,

    so the usual continuity equation results from the assumption that xed a-space volumes havexed mass.

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    11/32

    Peter Lynch Hamiltonian Methods 11

    3.2 Transition from Discrete to Continuous

    The momentum equation will be derived from Hamiltons principle (following Salmon, 1998).We will deduce the Lagrangian formulation for uid ow by transition from a discrete to a con-tinuous system. The Lagrangian for a system of N discrete particles can be written

    L(x n , x n ) =N

    n =1

    12 mn

    dx ndt

    dx ndt

    V (x ) (17)

    where V (x ) is the potential function. Hamiltons principle states that the variation

    t 2

    t 1L(x n , x n ) dt

    should be zero for arbitrary variations x n that vanish at the end times. This leads to Newtonslaw

    ddt

    (mn x n ) = V x n

    .

    By allowing N to increase without limit and the distances between particles to become arbitrarilysmall, we can represent a continuous uid by a Lagrangian density of the form (17) where nowx and x correspond to the positions and velocities of labeled uid particles and the indices nrepresent the particle labels. We replace mn by dadbdc. The kinetic energy becomes

    T = 12 x x dadbdcThe potential energy comprises the internal energy E = E (, S ) which is a function of spe-cic volume and specic entropy S , and the energy due to external forces such as gravity,represented by a potential function (x ) which is a function of position. Thus

    V = {E (, S ) + ( x )} dadbdc .Then Hamiltons principle requires that the action

    t 2

    t 1dt 12 x x E x a , S (x ) dadbdc (18)

    be stationary for arbitrary variations x (a,b,c) in the locations of the uid particles.

    3.3 The Lagrangian Momentum Equation

    The variations x must have no normal components at rigid boundaries and must vanish at theend times. For adiabatic motion, the entropy S depends only on a and not on . A straightforwardcalculation then yields the momentum equation

    2 x 2

    = p

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    12/32

    Peter Lynch Hamiltonian Methods 12

    where p = E/ = 2 E/ is the pressure (which must vanish at free boundaries). Notingthat v = x / is the uid velocity, we can write the momentum equation in a more familiarform:

    dvdt

    + 1 p + = 0 .

    The Lagrangian density (the integrand of (18)) does not depend explicitly on the time . Thissymmetry is associated, through Noethers theorem, with energy conservation

    ddt 12 x x + E + dadbdc = 0 .

    There is another, less obvious, symmetry property of (18), corresponding to particle relabelingwhich leaves the density and entropy unchanged. The conservation principle associated with thisparticle relabeling symmetry is that of potential vorticity

    ddt

    v S

    = 0 .

    The particle relabeling symmetry is responsible for the existence of a closed Eulerian formulationof uid mechanics.

    3.4 Functional Derivatives

    In discrete mechanical systems the dependent variables z n are functions of the time . A functionof state is any function F (z n ) whose value is determined once the variables z n are specied. Itsvariation with z n is given in terms of the partial derivatives:

    F = F z n

    z n .

    In uid dynamics, the dependent variables are functions of space as well as time, z n = z n (x , ).We assume that they belong to some function space Z . We assume also that a real inner productis dened on this space. Typically, it is a spatial integral over the domain:

    F, G = F (z )G(z ) da .Instead of functions of state we have functionals of state, that is functions of functions, mappingZ to the real line. We will denote functionals by script letters. In place of partial derivatives wemust now consider functional derivatives F /z n which are dened by

    d

    dF [z n + w]

    =0=

    F

    z n, w , (19)

    for arbitrary functions w Z . Writing z n = w this implies

    F F [z n + z n ] F [z n ] = F z n z n da + O((z n )2 ) . (20)

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    13/32

    Peter Lynch Hamiltonian Methods 13

    The variations z n are assumed to vanish at the domain boundaries. The functional derivative F /z n is itself a function in the space Z . To evaluate the functional derivatives of F , wecalculate the variation F arising from arbitrary variations z n , and express it in the form (20).

    EXAMPLE 6: FUNCTIONAL DERIVATIVES . To clarify the denition of functional derivatives, we consider threeexamples. First, let u(x) be a function on the unit interval [0, 1] and let

    F [u] = 1

    0F [x, u (x), u x (x)] dx .

    Then, applying a variation u with u(0) = u(1) = 0 , we have

    F = 1

    0

    F u

    u + F u x

    ux dx = 1

    0

    F u

    ddx

    F u x

    u dx

    where the last expression arises through integration by parts. Thus,

    F u

    = F u

    ddx

    F u x

    .

    As a second example, let F [u] = u(x0 ) be the functional which evaluates u at x 0 . We write it in the formF [u] = (x x0 )u(x)dx . Thus we have

    F [u] = (x x0 )u(x) dx = (x x0 ), uwhich immediately implies

    F u

    = (x x0 ) .

    For a nal example, let us suppose that the energy of a uid system can be expressed as

    E = 12 x x + V (x ) da .

    Since da has dimensions of mass, E has dimensions ML2 T 2 of energy, as expected. If x and x are varied, we have

    E = x x + V x x da ,so the variational derivatives are given by

    E x

    = x , E

    x =

    V x

    .

    Note the dimensions: E / x [=]LT 1 . However, E [=]ML 2 T 2 and x [=]LT 1 , so the ratio of these dimensionsis MLT 1 . Thus, the functional derivative does not have the dimensions which its symbolic form would suggest. 3

    3This is a serious defect of the notation. However, the convention is now rmly established.

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    14/32

    Peter Lynch Hamiltonian Methods 14

    3.5 The Canonical Equations for a Fluid

    Let us suppose that the Lagrangian is given in the form

    L = L(x , x ) da .Then the variation of x and x leads to

    L = L x x + L x x daor, in terms of variational derivatives,

    L = L x x + L x x da .Now Hamiltons principle requires that the action S =

    L dt be stationary:

    S = L dt = L x x + L x x da dt = 0Integrating by parts and assuming x vanishes at the end times, we get the Lagrangian equationsfor a uid

    ddt

    L x

    L x

    = 0 .

    The generalized momentum p corresponding to (3) is

    p u = L

    x . (21)

    By analogy with (4), the Hamiltonian H is dened by the Legendre transformation

    H = u x da L ,with x expressed in terms of x and u using (21). If we now consider Hamiltons principle in theform

    u x da H (x , u ) dt = 0for arbitrary variations x and u in the positions and velocities of labeled uid particles, thecanonical equations emerge in the form

    x = H

    u , u =

    H

    x .

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    15/32

    Peter Lynch Hamiltonian Methods 15

    3.6 Conserved Quantities, Noethers Theorem and Casimir Functionals

    To avail of the extraordinary simplicity of the Eulerian description of uid systems, we are ledto consider generalized Hamiltonian systems with non-canonical form, capable of representingthe Eulerian framework. The simplicity of the Eulerian description is a result of the symmetryproperty of the Hamiltonian, which remains unchanged under a re-labeling of the uid particleshaving the same density and entropy. This motivates the transformation to Eulerian variables but,in the Hamiltonian context, it results in a non-canonical formulation. The transformation is aprojection to a reduced set of variables. In the reduced phase-space, canonical coordinates do notexist.

    For non-canonical systems, there are invariants of the motion arising from two sources. First,as for canonical systems, symmetries of the Hamiltonian are associated with constants of motionthrough Noethers theorem. Let z be the set of dependent eld variables. If H and J are invariantunder arbitrary translation of a particular coordinate xk , and M is a functional satisfying

    J M z

    = z x k

    , (22)

    then M is a constant of the motion: dM /dt = 0 .Additional conserved quantities, the Casimirs, appear in the non-canonical formulation. They

    are solutions of the equation

    J C z

    = 0 .

    Since this is a homogeneous version of (22), solutions of that equation are determined only up toaddition of a Casimir. Thus, for example, a Casimir may be added to the Hamiltonian withoutany effect on the dynamics.

    EXAMPLE 7 : GUESSING THE H AMILTONIAN F ORMULATION As an example of how the Hamiltonian formulationof a uid dynamical system may be derived in a heuristic manner, consider non-divergent two-dimensional ow in anon-rotating coordinate system. The equations of motion are

    dVdt

    + 10 p = 0 , V = 0 ,

    where V = ( u, v ) is the non-divergent velocity, 0 is the constant density and p the pressure. Assuming a simply-connected domain with impermeable boundary, the conserved energy is

    E = 12 V V dxdy .The velocity may be expressed in terms of a stream function , such that (u, v ) = ( y , + x ). The vorticity = 2 is conserved following the ow:

    d dt

    = t

    + (, ) = 0 (23)

    where (, ) = x y y x is the Jacobian.We now proceed by intuition. Since the vorticity is a fundamental conserved quantity, we choose it as the

    Hamiltonian variable, z = . The Hamiltonian is guessed to be the energy, written

    H = 12 dxdy.

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    16/32

    Peter Lynch Hamiltonian Methods 16

    Then the variational derivative of H is easily calculated:

    H = dxdy = n ds 2 dxdy = ( )z dxdy ,so that H /z = (we have taken the arbitrary constant boundary value of to be zero). We know zt = (z, ),so we can write (23) in generalized Hamiltonian form

    zt

    = J H

    z (24)

    where the symplectic operator is given by J (F ) = (z, F ). We may alternatively write the system in terms of aPoisson bracket:

    F t

    = F , H = F z z, H z dxdy .The Casimirs of the system are the solutions of

    J C z

    = z, C z

    = 0 .

    Clearly, J (z) = 0 and indeed any function f (z) is annihilated by J . Thus,

    C (z)z

    = f (z) or C (z) = f (z) dz dxdy .so that the Casimirs of the system are just integrals of arbitrary functions of the vorticity.

    To conclude that (24) is in generalized Hamiltonian form, it is necessary to prove that the symplectic operator J has the required properties. Obviously, it is skew-symmetric in its arguments. The proof that it satises the Jacobiidentity requires more algebra, which we omit (see, e.g., Swaters (2000) for details).

    4 Reduction from Lagrangian to Eulerian Form

    Normally, the Lagrangian (i.e., particle-following) representation of uid systems leads to acanonical Hamiltonian formulation. This is generally not the case for the Eulerian formulation.One may well wonder how the non-canonical formulation of a general Eulerian uid-dynamicalsystem may be found. A number of specic formulations have been arrived at by inspired guess-work. However, this is not a satisfactory method in general, Moreover, it requires an explicitdemonstration that the posited symplectic operator has the appropriate algebraic properties. Theproof that a given J or Poisson bracket satises the Jacobi identity can be challenging.

    A more satisfactory way of deducing the Hamiltonian formulation of an Eulerian representa-tion is by reduction of the (canonical) Lagrangian formulation. This has at least three advantages.It allows us to proceed in a logical and deductive fashion, which is more appealing that guess-work. It ensures that the algebraic properties of the Lagrangian formulation carry over to the

    Eulerian representation. It elucidates the origin of the Casimir functions, which are absent in thecanonical formulation. These functions arise through symmetries in the Lagrangian form arisingfrom the particle-relabeling symmetry, which is hidden in the Eulerian framework.

    In the Lagrangian formulation, the state of a uid system is specied by means of the positionx(a, ) and velocity u(a, ) of every uid particle, as functions of the time . The particles are

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    17/32

    Peter Lynch Hamiltonian Methods 17

    labeled by coordinates a , the label of each particle remaining unchanged. Thus, the state of thesystem at any time is determined by the six Lagrangian elds

    {x (a ), u (a )} .

    In the Eulerian formulation, the required elds are the velocity, density and entropy given asfunctions of position:

    {u (x ), (x ), S (x )} . (25)

    These are determined uniquely from the Lagrangian elds. However, as there are only ve Eule-rian elds, they may be represented as points in a reduced phase-space.

    For two arbitrary functionals of the Lagrangian state of the uid, F (x (a ), u (a )) andG (x (a ), u (a )) , the Poisson bracket is dened by

    {F , G }L = F x (a ) G u (a ) F u (a ) G x (a ) da (26)If we consider an arbitrary transformation to new independent variables y and new dependentvariables vi (y ), the bracket may be expressed as

    {F , G } = F vi (y 1 ) {vi (y 1 ), v j (y 2 )}L G

    v j (y 2 )dy 1 dy 2 (27)

    where {vi (y 1 ), v j (y 2 )}L is calculated using (26).

    EXAMPLE 8: THE CHAIN RULE . First, consider a nite-dimensional system, and consider a coordinate transfor-mation Z i = Z i (z). The symplectic operator in terms of the new variables is

    J ij = Z i

    z mJ mn

    Z j

    z n (28)

    It is a second order contravariant tensor.There is a formal similarity between (28) and (27). The latter is the generalization to continuous elds of the

    discrete transformation. We consider a change from Lagrangian independent variables a to Eulerian variables x (a )and of dependent Lagrangian elds uk = {x (a ), u (a )} to Eulerian elds vk = {u (x ), (x ), S (x )}. Then thevariational derivative of an arbitrary functional F with respect to the old variables is given in terms of the new onesby

    F u i

    = F vk vku i dx .This is the chain rule for variational derivatives. If it is applied to the Poisson bracket (26), the transformation rule(27) results.

    If the functionals F and G depend on x (a ) and u (a ) only through the Eulerian elds (25), wecan use (27) to derive a Poisson bracket in terms of the Eulerian elds. The algebra is formidableand we just present the result here; see Morrison and Greene (1980) for the lengthy calculations.The Eulerian bracket is

    {F , G }E = F G u + F u G

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    18/32

    Peter Lynch Hamiltonian Methods 18

    + u

    G

    u

    F

    u

    +S

    F S

    G u

    G S

    F u dx (29)

    A more general formulation, applicable to magnetohydrodynamics, and a hierarchy of simpli-cations of it, are discussed in Morrison (1982).This Poisson bracket provides a Hamiltonian formulation in terms of the Eulerian variables

    (25). The evolution of the system is given by

    dF dt

    = {F , H }E

    where the Hamiltonian is

    H = 12 u u + E ( 1 , S ) + dx .The bracket (29) inherits crucial properties from its Lagrangian forbear (26). It is skew-symmetricand satises the Jacobi identity. However, it is singular. If we dene the potential vorticity by

    q = u S

    ,

    it can be shown that for any functional C (q ) one has

    {F , C }E = 0

    for all functionals F . The singular nature of the Poisson bracket is a consequence of the projec-tive nature of the transformation from Lagrangian to Eulerian coordinates.

    EXAMPLE 9: A SIMPLE REDUCTION . To illustrate the algebraic process of reduction of the Poisson bracket ina simple case, we consider the one-dimensional, non-rotating shallow water equations. Assume an incompressibleuid of density ; without loss of generality, we may set = 1 . The Lagrangian coordinates are (a,b,c) but, asthere is no y-dependence, b is constant and is ignored. The position and velocity are x(a,c, ) and x(a,c, ), but weassume material columns remain vertical so that x = x(a, ), x = x(a, ). Labels are assigned so that

    da = h dx (30)

    where h(a, ) is the depth. A mass element is given by dm = dadc = dxdz which implies dz = h dc or, aftervertical integration, that c varies from zero at z = 0 to unity at z = h . Differentiation of (30) yields the continuityequation

    h

    + hux

    = 0 .

    The Lagrangian is given by

    L = [12 x2 gz]dadc = 12 [x2 gh]daand the resulting Euler-Lagrange equation is

    x

    + ghx

    = 0 .

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    19/32

    Peter Lynch Hamiltonian Methods 19

    The generalized momentum is p L / x = x u, and the Hamiltonian is

    H = 12 [u2 + gh]da .where h = h(x) is shorthand for da/dx .

    The Lagrangian independent variables are a and and the dependent elds are x = x(a, ) and u = u(a, ),which are canonical coordinates. The Eulerian independent variables are x and t and the dependent elds areu = u(x, t ) and h = h(x, t ). The canonical Poisson bracket is dened by (26):

    F , G L = F x(a) G u(a) F u(a) G x(a) da .To apply (27), we need to evaluate the fundamental brackets such as {u(x1 ), u(x2 )}L , and this in turn requiresknowledge of u(x1 )/x (a) and other similar variational derivatives. We must express u(x1 ) and h(x1 ) as func-tionals of x(a) and u(a). We write

    u(x1 ) = u(a) (a a 1 ) da ,where a1 is the label corresponding to x1 . Thus

    u(x1 )x(a) = 0 and

    u(x1 )u(a) = (a a 1 ) .

    Similarly, expressing h(x1 ) as

    h(x1 ) = h(x) (x x1 ) dx = (x(a) x(a 1 )) da ,we nd that

    h(x1 )x(a)

    = x

    (x x1 ) and h(x1 )

    u(a) = 0 .

    These expressions enable us to evaluate the fundamental brackets, giving

    {u(x1 ), u(x2 )}L = 0 , {h(x1 ), h(x2 )}L = 0 , {u(x1 ), h(x2 )}L = x 1

    (x1 x2 ) .

    Then the Eulerian bracket is given by

    F , G E = F u(x1 ) u(x1 ), h(x2 ) L G h(x2 ) + F h(x1 ) h(x1 ), u(x2 ) L G u(x2 ) dx 1 dx 2 ,and, after insertion of the expressions for the Lagrangian brackets on the right, we arrive at

    F , G E = x F u G h F h x G u dx . (31)The Hamiltonian in the Eulerian framework is

    H = 12 [u2 + gh]hdxwhich implies the functional derivatives H /u = hu and H /h = 12 u2 + gh . The Poisson bracket (31) enablesus to identify the symplectic operator J through the relationship {F , G } = F , J G . After integration by parts,assuming periodic boundary conditions, we see that

    J = 0 x x 0 . (32)

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    20/32

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    21/32

    Peter Lynch Hamiltonian Methods 21

    Let x be the coordinates in a frame rotating with constant angular velocity . For simplicity, we assume that thepotential energy is unaffected by rotation, so that V (x ) = V (X ). The velocities in the two frames are related byX = x + x , so the Lagrangian in the rotating frame is

    L = 12 x x + x x + 12 ( x )

    2 V (x ) . (37)

    Using (2), the equations of motion may be written immediately:

    x + 2 x + ( x ) + V x

    = 0 . (38)

    Here we have used the vector identity (A B ) (C D ) = ( A C )(B D ) (A D )(B C ), which leads to

    x

    [12 ( x )2 ] = 2 x ( x ) = ( x ) .

    The second term in (38) is the Coriolis term. The third term is the centrifugal force, which is often combined withV to give an effective potential; we assume this done.

    The Hamiltonian is dened by introducing the generalized momentum

    p = L

    x = x + x .

    We note that p is not the usual momentum in the rotating frame, but the absolute momentum. The Legendretransformation now yields

    H = p x L = 12 x x + V (x ) .

    Mirabile visu , the rotation appears to have disappeared. But no! We must express H as a function of the canonicalvariables p and x :

    H = 12 (p x ) (p x ) + V (x ) (39)

    so its dependence on rotation is now explicit. The canonical equations (5) now yield x = H/ p , together with(38).

    5.1 Lagrangian Equations in a Rotating FrameTo allow for the Coriolis effect, it is necessary to include additional terms in the Lagrangian. Weintroduce the notional world-wind , W , which is the velocity, measured in an absolute frame, of an atmosphere in solid rotation with the earth:

    W = (U , V, 0) = x .

    On the sphere, the world-wind is, in geographic coordinates, W = (a cos , 0, 0). It has vortic-ity equal to the planetary vorticity f :

    k W = 1

    a cos

    V

    (U cos ) = 2sin = f .

    For an f -plane, with = k , we have W = ( y, x, 0). In any case, the relative and absolutevorticity are given by

    = k v and + f = k (v + W ) .

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    22/32

    Peter Lynch Hamiltonian Methods 22

    The total energy of the uid is given, in Lagrangian variables, by

    E = 12 x x + W x + 12 W W + E x a , S + ( x ) dadbdc . (40)The gravitational potential is = gz . For incompressible, adiabatic ow, the internal energyE (, S ) may be omitted, as it is unaffected by variations in the positions x and plays no rolein the dynamics. The constant density is given by (35). We neglect the small term in the kineticenergy involving the vertical velocity. The vertical integration may be carried out explicitly,yielding

    E = 12 0 x x + 2W x + W W + gh dadb. (41)For simplicity, and without loss of generality, we will assume 0 = 1 . In the Lagrangian frame-work, the variable h is dened by (34). The Lagrangian, required to derive the equations fromthe least action principle, is

    L = 1

    2

    x

    x + 2W

    x + W W gh dadb. (42)

    Applying the least action principle, we arrive at the equations of motion

    2 x 2

    + 2 x

    + ( x ) + gh = 0 . (43)

    Here, the spatial variation of W has been carefully allowed for, and we have used the followingrelationship, which is proved without difculty:

    Fhdadb = 1hF h 2 x dadb (44)(Salmon (1998), p. 317). In the traditional approximation , only the vertical component of is retained in the Coriolis term. Then (43), together with the continuity equation (36), may bewritten

    2 x 2

    f y

    + ghx

    = 0 (45)

    2 y 2

    + f x

    + ghy

    = 0 (46)

    h

    + h v = 0 . (47)

    (Since the centrifugal term depends only on position, it has been absorbed in the gravitationalpotential by adjusting the value of g). This is the shallow water system of equations in Lagrangianform.

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    23/32

    Peter Lynch Hamiltonian Methods 23

    5.2 Hamiltonian Form of the Equations

    The generalized momentum is dened as

    p u = L x

    = x + W .

    Thus, p is the absolute momentum. The Hamiltonian is now obtained via the Legendre transfor-mation

    H = u x dadb L = 12 [x x W W + gh]dadb,This must be expressed in terms of the canonical variables u and x :

    H = 12 u u u W +

    12 gh dadb,

    so that the world-wind appears explicitly in H . Taking a variation of this we get

    H = (u W ) u + u x + gh x dadb.Thus, the variational derivatives of H may be obtained:

    H x

    = u + gh , H

    u = u W . (48)

    Dening z = ( x , u )T , the equations of motion may be written as

    z

    = J H z

    ,

    where the symplectic operator J is in the canonical form (9). The Poisson bracket also takes thecanonical form

    {F , G }L = F x (a ) G u (a ) F u (a ) G x (a ) da . (49)5.3 Eulerian Form of the Equations

    We could derive the Eulerian form of the Poisson bracket by transformation of (49), followingthe method of Example 9, but will deduce it by more intuitive reasoning (this section borrowsheavily from Shepherd, 1990). The Eulerian independent variables are x = ( x, y) and time t .The dependent variables are v = ( u, v) and h, and we will explore whether z = ( u,v,h )T aresuitable coordinates. We will guess that an appropriate form for the Hamiltonian is

    H = 12 h v v + gh dxdy . (50)

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    24/32

    Peter Lynch Hamiltonian Methods 24

    The factor h comes from the transformation ( )dadb = ( )h dxdy . We consider the variationof H resulting from variations of the variables v and h, and nd that H h

    = 12 v v + gh , H

    v = hv .

    If the advection is transformed using the vector identity

    v v = 12 v v + k v

    where = k v is the vorticity, the equations (45) to (47) can be written

    ut

    = +( + f )v x

    ( 12 v v + gh)

    vt

    = ( + f )u y

    ( 12 v v + gh)

    h

    t =

    x(hu)

    y(hv)

    (once again, the centrifugal term is absorbed in g). Dening the potential vorticity

    q = k v + f

    h =

    + f h

    ,

    the system may be written in generalized Hamiltonian form

    z t

    = J H z

    (51)

    where z = ( u,v,h )T and the symplectic operator J is given by

    J =0 q x

    q 0 y x y 0

    . (52)

    A Poisson bracket is associated with J through the relationship {F , G } = F , J G . Althoughthe matrix operator J in (52) is not skew-symmetric, the appropriate symmetry of the Poissonbracket appears after integrations by parts. The bracket may be written

    {F , G } = q k F v G v + F v G h F h G v dxdy (53)which is clearly a skew-symmetric bilinear operator. It can be shown that this Poisson bracketsatises the Jacobi identity.

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    25/32

    Peter Lynch Hamiltonian Methods 25

    6 Balanced Equations

    One of the attractions of the Hamiltonian formalism is that it guarantees that conservation prop-erties of an exact system are maintained in approximations thereto if appropriate symmetries of the exact system are preserved in the approximation process. Thus, the time-invariance of the

    approximate Hamiltonian will ensure an appropriate energy principle, and the particle-relabelingsymmetry will mean that potential energy for the approximate system is conserved. The Hamil-tonian perspective can also serve as a guide to the choice of new dependent and independentvariables in which the approximate equations take their simplest form.

    6.1 Non-divergence Constraint in Lagrange Variables

    As a simple example of further approximation to the shallow water equations, we impose a con-straint that the horizontal ow be non-divergent:

    x = 0 .

    This constraint is imposed through the procedure of incorporating an additional term with La-grange multiplier in the integrand in Hamiltons Principle. We require that the variation of theaction, modied by the constraint, be stationary:

    L + ( x ) dadb d = 0where = (a,b, ) is the Lagrange multiplier, to be found, and L is the Lagrangian of theshallow water equations, given by (42). The variations x (taken for xed particle labels andtimes) are arbitrary but vanish at the end times and the domain boundaries. The solution forunconstrained motion was derived in 5.1 and is given by (43). Additional terms arise throughthe constraint:

    d ( x )dadb = d [( x ) + ( x )] dadb .The vanishing of the coefcient of ensures that the constraint is satised at all locations andall times. The second term is, after some manipulation,

    d ( x )dadb = d 1h (h ) x dadbso that (43) is augmented by an additional term:

    2 x 2 + 2

    x + ( x ) + gh +

    1h

    (h ) = 0 . (54)

    The continuity equation (36) reduces in this case to the consistency condition

    h

    = 0 .

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    26/32

    Peter Lynch Hamiltonian Methods 26

    This is physically reasonable: an individual uid column cannot vary in height as, without anyinux or outow, there is no mechanism for supplying or removing uid. Thus, ow must bealong contours of constant height h.

    How do we calculate ? The momentum equation may be written

    ddt

    1h (h ) +

    dudt + 2 u + gh = 0 . (55)

    where u = dx /dt and the centrifugal term is included in g. We take the divergence of this anduse the fact that u = 0 to obtain a prognostic equation for . We note the relationship, validfor any vector:

    dCdt

    = ddt

    ( C ) + ( C )2 2J (C 1 , C 2 ) .

    Dening the modied gradient and Laplacian operators

    1h (h ) and 2

    and using the above relationship, the following equation for results:

    ddt

    ( 2 ) + ( 2 )2 2J (()1 , ()2 ) = g 2 h + f u 2J (u, v) .

    This can be used as a predictive equation for 2 , after which may be extracted throughsolution of an elliptic equation.

    6.2 Salmons L-1 System

    Salmon (1983) derived a ltered system of equations by introducing approximations directly intothe Lagrangian and then applying Hamiltons principle. Our starting point is the Lagrangianfunction (42) in Lagrange variables (with the centrifugal term absorbed in the gravitational po-tential:

    L = 12 x x + 2W x gh dadb.As an initial simplication, we omit the rst term entirely and consider the approximate La-grangian

    L 0 = W x 12 g (a, b) (x, y) dadb.Variations in the particle locations yield the geostrophic relationships for wind in terms of geopo-tential height. Since mass conservation is unaffected, the following set of equations obtains:

    fv = ghx

    , fu = ghy

    dhdt

    + hux

    + vy

    = 0 .

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    27/32

    Peter Lynch Hamiltonian Methods 27

    This level of approximation is too drastic for most purposes. We rene it by substituting thegeostrophic expression selectively in the Lagrangian, to obtain

    L 1 = 12 u G x + 2W x gh dadb. (56)Variations of the particle locations now yield the equation

    du Gdt

    + u G u A + f k u + gh = ghB (57)

    where the quantity B is dened by

    B = h2 k (u A /f ) + 12 h2 [u A (1/f )]k ,

    where u A = u u G is the ageostrophic wind. This equation contains the exact Coriolis andpressure gradient terms, but the advection du /dt is approximated by neglecting the local rate of change of the ageostrophic wind, u A /t , and the term u A u A . The former omission hasthe effect of ltering out gravity wave solutions from the system. The continuity equation isunchanged in form.

    The conservation laws for this L-1 system follow directly from those of the unapproximatedsystem. The conserved energy quantity is

    12 {u2G + v2G + gh} dadband the geostrophic potential vorticity

    1h

    vGx

    uG

    y + f

    is constant for each uid particle.

    6.3 Hamiltons Principle in Euler Variables

    The variational derivation of Eulerian equations is more difcult. We follow the method of Holm(1996). The action is minimized under variations of particle labels a = ( a, b) at constant Eulerianposition x and time t. The Lagrangian is given by

    L E = 12 h (u u + 2 W u gh) dxdy . (58)

    Hamiltons principle requires that the variation of the action L E dt vanish. In terms of varia-tions of the Euler variables, this is dt dxdy h(u + W ) u + 12 (u u + 2 u W gh)h .

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    28/32

    Peter Lynch Hamiltonian Methods 28

    To proceed, we require expressions for u and h in terms of the label variations a and b. Sincethe labels a = ( a, b) = a are constant following the motion, we have

    da

    dt =

    a

    t + u

    a

    x + v

    a

    y = t a + u j j a = 0 ,

    where t = /t and ( 1 , 2 ) = ( /x,/y ). Thus, the Eulerian velocities and labels arerelated by

    t a = (J )i ui and ui = (J 1 )i t a

    where the matrix J and its inverse are given by

    J = ax aybx by and J 1 =

    1h

    by ay bx ax .

    Note that the determinant of J is h. It then follows that the variations of u and h may beexpressed in terms of label variations:

    u i = (J 1 )i ( t a + u j j a ) and h = h(J 1 )i i a . (59)

    By means of these relationships, it is possible to express the variation of action purely in terms of variations of the particle labels. However, considerable algebraic manipulation is required. Thefollowing relationships are easily proved:

    ddt

    (J 1 )i = ( J 1 ) j ( j u

    i ) and i (h(J 1 )i ) = 0 . (60)

    By means of these, using the appropriate boundary conditions after partial integrations, and em-ploying the continuity equation, the integrand of the action may be written eventually as

    h(J 1 )i dui

    dt + u j ( j W i i W j ) + g i h a .

    Since the label variations are arbitrary, the quantity in square brackets has to vanish at all pointsand times. We note that

    u j ( j W i i W j ) = f (k u )iso that, nally, the usual form of the momentum equation is obtained:

    dudt

    + f (k u ) + gh = 0 . (61)

    This is now seen as the consequence of Hamiltons principle for the shallow water system inEulerian variables.

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    29/32

    Peter Lynch Hamiltonian Methods 29

    6.4 Balanced Eulerian Systems

    We will describe a simple balanced system derived by Allen and Holm (1996) and discuss variousways in which it can be generalized. The Lagrangian (58) may be written

    L E = h(W + u ) u

    1

    2 gh2

    1

    2 hu u dxdy . (62)We assume the Rossby number is small and partition the wind eld into geostrophic andageostrophic components: u = u G + u A . Keeping terms up to O( ), the Lagrangian maybe written

    L E = h(W + u G ) u 12 gh

    2 12 h(u G u G ) dxdy . (63)

    Then, following arguments similar to those in the preceding section, Hamiltons principle (withvariations of Lagrangian labels at constant Eulerian positions and time) results in the followingsystem:

    u

    Gt + [ (W + u G )] u + B = 0

    ht

    + h u = 0

    where the Bernoulli function B is dened as

    B = gh + 12 u G u G + (1 / F )k [h (u u G )] ,

    where F is the Froude number. This system is closely related to Salmons L-1 system, derivedusing Hamiltons principle in Lagrange variables (with variations in particle paths at xed timeand Lagrangian labels).

    A similar system may be derived much more simply by replacing u by u G as the variableoperated on by d/dt in the momentum equation (61). This was the approach adopted by Eliassen(1948) to derive the system known as the geostrophic momentum approximation. This systemis equivalent to order O( ) with the one obtained here. However, such a cavalier approach hasits pitfalls: the system derived through Hamiltons principle conserves total energy and poten-tial vorticity of uid parcels, whereas there is no guarantee that the system derived by ad-hocmethods respects these principles. The additional terms of order O( 2 ) which are retained in thsHamiltonian approach are precisely those needed for energy and potential vorticity conservation.

    Allen and Holm (1996) show that more accurate systems may be derived by retaining terms of higher order in the Rossby number. Holm (1996) presents a baroclinic system which he calls theHamiltonian balance equations (HBE). Finally, Holm, Marsden and Ratiu (2002) present a hierar-

    chy of equation systems based on successively stronger approximations to the Lagrangian. Start-ing with the Euler equations for three-dimensional ow, incompressibility is enforced througha constraint in which the Lagrange multiplier turns out to be the pressure. When the buoyancyis constrained to be small, the Euler-Boussinesq system is obtained. The hydrostatic primitiveequations follow upon assuming that the aspect ratio is small. Expansion in the Rossby number

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    30/32

    Peter Lynch Hamiltonian Methods 30

    then leads to a sequence of balanced systems, HBE, Salmons L-1 system and the classical quasi-geostrophic equations. At all stages, the Hamiltonian formalism ensures that appropriate energyand potential vorticity principles apply, This is so because the approximations do not disrupt thesymmetry properties of the Hamiltonian.

    7 Summary

    The powerful methods of Hamiltonian mechanics have signicant benets when applied to geo-physical uid dynamics problems. The methods have been introduced rst in the context of nite-dimensional mechanical systems, with illustration of several key ideas through applicationto the elastic pendulum or swinging spring. The Lagrangian formulation of the uid dynami-cal equations has been presented, and compared to the more familiar Eulerian formulation. Theprocess of reduction from Lagrangian to Eulerian formulation has been described. The rotatingshallow water equations have been taken as a simple example of a geophysical equation system,and various Hamiltonian forms of the equations have been presented. Finally, the passage fromexact to approximate equations, through application of constraints with Lagrange multipliers,or by other means, has been described, and a number of balanced systems resulting from theprocess have been presented.

    The methods developed in this brief introduction are of very general applicability. There is awide range of possibilities for deriving approximate systems of equations with varying levels of accuracy. One particular sequence of ltered equations was proposed long ago by Hinkelmann(1969). He proposed a general method for dening initial data for the primitive equations. Heargued that the observed mass and wind elds should be adjusted so that

    d n ( V )dt n

    = 0 and d n +1 ( V )

    dt n +1 = 0. (2.2)

    That is, these two conditions should be used to derive diagnostic relationships which the initialdata are then required to satisfy. As an alternative, he pointed out that the two conditions could beused to replace two prognostic equations by diagnostic relationships, yielding a general lteredsystem. The case n = 0 yields the quasi-geostrophic equations, while the case n = 1 leadsto the slow equations (Lynch, 1989). It is proposed, in a future investigation, to implement theHinkelmann hierarchy using the Hamiltonian formalism.

    Acknowledgements

    This work was started during a visit to JCMM, the Joint Centre for Mesoscale Meteorology in Reading, where I had the benetof collaboration with Ian Roulstone. I am grateful to Ian for valuable assistance and advice. The review was completed during avisit to IMA, the Institute for Mathematics and its Applications, University of Minnesota. There I received substantial assistancefrom Darryl Holm, LANL, for which I thank him. The support of the UK Met Ofce and IMA is gratefully acknowledged.

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    31/32

    Peter Lynch Hamiltonian Methods 31

    References

    Allen, J. S. and Darryl D. Holm, 1996: Extended-geostrophic Hamiltonian models for rotating shallow water motion.Physica D , 98, 229249.

    Bokhove, O., 2000: On hydrostatic ows in isentropic coordinates. J. Fluid Mech. , 402 , 291310.

    Bokhove, O., 2002: Balanced models in geophysical uid dynamics: Hamiltonian formulation, constraints and for-mal stability. Pp. 163 in Large-Scale Atmosphere-Ocean Dynamics: Vol II: Geometric Methods and Models.Ed. J. Norbury and I. Roulstone. Cambridge University Press.

    Bretherton, F. P., 1971: The general linearised theory of wave propagation. Lectures in Appl. Maths. , 13, 61102.

    Casimir, H. B. G., 1931: Rotation of a rigid body in quantum Mechanics. Thesis, J.B.Wolters Uitgevers-Maatschappij, N.V.Groningen, den Haag, Batavia.

    Eliassen, A, 1948: The quasi-static equations of motion with pressure as independent variable. Geofys. Publ. , 17 ,No. 3, 44pp.

    Goldstein, H., C. Poole and J. Safko, 2002: Classical Mechanics . 3rd Edn., Addison-Wesley. 638pp.

    Hinkelmann, K. H., Primitive Equations. Pp. 306375 in Lectures in numerical short range weather prediction.Regional Training Seminar, Moscow. World Meteorological Organization, Geneva, WMO No. 297.

    Holm, Darryl D., 1996: Hamiltonian balance equations. Physica D , 98, 379414.

    Holm, Darryl D. and Peter Lynch, 2002: Stepwise Precession of the Resonant Swinging Spring. Accepted for publi-cation in SIAM Journal on Applied Dynamical Systems

    Holm, Darryl D., J. E. Marsden and Tudor S. Ratiu, 2002: The Euler-Poincar e Equations in Geophysical FluidDynamics. To appear in Large-Scale Atmosphere-Ocean Dynamics: Vol I. Ed. J. Norbury and I. Roulstone.Cambridge University Press.

    Jos e, J. V. and E. J. Saletan, 1998: Classical Dynamics: a Contemporary Approach . Cambridge Univ. Press, 670pp.

    Lynch, Peter, 1989: The slow equations. Q. J. Roy. Meteor. Soc. 115 , 201219.

    Lynch, Peter, 2002a: Resonant motions of the three-dimensional elastic pendulum. Intl. J. Nonlin. Mech. , 37 , 345367.

    Lynch, Peter, 2002b: The Swinging Spring: a Simple Model for Atmospheric Balance. Pp. 64-108 in Large-Scale Atmosphere-Ocean Dynamics: Vol II: Geometric Methods and Models. Ed. J. Norbury and I. Roulstone. Cam-

    bridge University Press.Lynch, Peter, 2002c: Resonant Rossby Wave Triads and the Swinging Spring. Submitted to Bull. Amer. Met. Soc.

    Marsden, Jerrold E. and Tudor S. Ratiu, 1999: Introduction to Mechanics and Symmetry: A Basic Exposition of Classical Mechanical Systems. Springer Verlag, New York, Second edition, 582 pp.

    Morrison, P. J., 1982: Poisson brackets for uids and plasmas. Pp. 1346 in Mathematical Methods in Hydrodynam-ics and Integrability in Dynamical Systems . Ed. M. Tabor and Y.M.Treve. AIP Conf. Proc., No. 88, Am. Inst.Phys., New York.

    Morrison, P. J., 1998: Hamiltonian description of the ideal uid. Rev. Mod. Physics , 70, 467521.

    Morrison, P. J. and J. M. Greene, 1980: Non-canonical Hamiltonian density formulation of hydrodynamics and idealmagnetohydrodynamics. Phys. Rev. Lett. , 45, 790794.

    Roulstone, I. and S. J. Brice, 1995: On the Hamiltonian formulation of the quasi-hydrostatic equations. Q. J. Roy.

    Met. Soc. , 121 , 927936.Salmon, Rick, 1983: Practical use of Hamiltons principle. J. Fluid Mech. , 132 , 431444.

    Salmon, Rick, 1988a: Hamiltonian uid mechanics. Ann. Rev. Fluid Mech. , 20, 225256.

    Salmon, Rick, 1988b: Semigeostrophic theory as a Dirac-bracket projection. J. Fluid Mech. , 196 , 345358.

    Salmon, Rick, 1998: Lectures on Geophysical Fluid Dynamics. Oxford Univ. Press, 378pp.

  • 8/12/2019 Hamiltonial Methods for Geophysical Fluid Dynamics

    32/32

    Peter Lynch Hamiltonian Methods 32

    Shepherd, T. G., 1990: Symmetries, conservation laws and Hamiltonian structure in geophysical uid dynamics. Adv. Geophys. , 32, 287338.

    Sudarshan, E. C. G. and N. Mukunda, 1974: Classical Dynamics: a Modern Perspective. John Wiley & Sons, 615pp.

    Swaters, G. E., 2000: Introduction to Hamiltonian Fluid Dynamics and Stability Theory . Chapman & Hall/CRC,274pp.

    Weiss, J., 1991: The dynamics of enstrophy transfer in two-dimensional hydrodynamics. Physica D , 48, 273294.