<<

Copyright © 2006, David A. Randall Revised Thu, 6 Jul 06, 15:21:38 The

David A. Randall

Department of Atmospheric Science Colorado State University, Fort Collins, Colorado 80523

1. A derivation of the shallow water equations The shallow water equations are the simplest form of the equations of motion that can be used to describe the horizontal structure of an atmosphere. They describe the evolution of an incompressible fluid in response to gravitational and rotational . The solutions of the shallow water equations represent many types of motion, including Rossby and inertia- waves. In these notes, we begin with a more complete version of the equations of motion, and simplify to obtain the shallow water equations.

Ignoring the effects of , the equation is

Du r ÅÅÅÅÅÅÅÅÅÅ + f käv = -“ p - rgk . (1) Dt

Here r is the density of the air, u is the three-dimensional velocity vector, the total derivative operator D DtK is defined byO

D ! ÅÅÅÅÅÅÅÅÅÅÅÅÅÅÅ ª ÅÅÅÅÅÅÅÅ + u ÿ “ , (2) H L ê Dt !t f is the parameter, kH isL a unit vector pointing away from the center of the planet, v is the horizontal velocity vector, WH isL theH angularL H L velocity vector associated with the planet’s rotation, p is pressure, and g is the magnitude of the vector due to the planet’s gravity. In writing (1), we have adopted “traditional” approximations appropriate to an atmosphere whose depth is shallow compared with the radius of the planet.

The is

! r ÅÅÅÅÅÅÅÅÅÅ + “ ÿ ru = 0 ; (3) !t

H L 2 D. A. Randall

it can also be written as

Dr ÅÅÅÅÅÅÅÅÅÅ + r “ ÿ u = 0 . (4) Dt

We now show how (1) and (4) can be simplified to obtain the shallow water equations.

It is convenient to partition pressure and density into equilibrium and departures from equilibrium values. That is,

£ £ p = p0 z + p x, y, z, t , and r = r0 z + r x, y, z, t . (5)

The equilibrium pressure p0 z and the equilibrium density r0 z are defined in such a way that they satisfyH theL hydrostaticH Lequation H L H L

d p H L ÅÅÅÅÅÅÅÅÅÅ0ÅÅÅ = -g r . H L (6) d z 0

Substituting (5) into the momentum equation (1), and using (6), we obtain the momentum equation in the form

Du r ÅÅÅÅÅÅÅÅÅÅ + f käv = -“ p£ - r£ gk . (7) Dt

The full density still appears on the left-hand side of (7); no approximations have been made in passing from (1)K to (7). On theO right-hand side of (7), we see a “buoyancy” term, which is the product of the perturbation density and the acceleration due to gravity.

Now we assume that the fluid is incompressible, that is, r = r0 is a constant and r£ = 0. Water is nearly incompressible, and the name “shallow water equations” comes partly from the use of this incompressibility assumption. For an incompressible fluid, the three-dimensional momentum equation, (7), can be simplified to

Du r ÅÅÅÅÅÅÅÅÅÅÅ + 2 W äv = -“ p£ . (8) Dt

In addition, the mass conservation equation, (4), reduces to K O “ ÿ u = 0 . (9)

Equations (8) and (9) apply at each point in the three-dimensional fluid.

Now we begin to consider how to describe the vertically integrated circulation. We assume that the effects of vertical shear of the horizontal velocity are negligible. Such effects would arise, for example, through the vertical of horizontal momentum. TheTh eshallow “no-shear” water equations assumption is reasonable if the fluid is “shallow,” and this partly accounts for the name “shallow water equations.” Revised 7/6/06 15:21:38 3

Now we begin to consider how to describe the vertically integrated circulation. We assume that the effects of vertical shear of the horizontal velocity are negligible. Such effects would arise, for example, through the vertical advection of horizontal momentum. The “no-shear” assumption is reasonable if the fluid is “shallow,” and this partly accounts for the name “shallow water equations.”

The next step is to find the form of the horizontal pressure gradient force acting on the shallow, incompressible fluid. Supposed that there exists a “free” surface of constant or nearly constant pressure, which is also a material surface in the sense that no mass crosses it. This is analogous, for example, to the surface of the . Let h f x, y, t be the height of a this . Let hS x, y be the height of the surface topography and * let h = h f - hS be the depth of the fluid. H L As mentioned above, we assume thatH noL fluid crosses the free surface. It follows that the height of a parcel embedded in the free surface satisfies

Dh f ÅÅÅÅÅÅÅÅÅÅÅÅÅÅ = w x, y, h , t . (10) Dt f

Similarly, no fluid can cross the lower boundary, so the fluid motion there must follow the topography: H L

Dh ÅÅÅÅÅÅÅÅÅÅÅÅSÅ = w , (11) Dt S

or

!h ÅÅÅÅÅÅÅÅÅÅSÅÅÅ + v ÿ“h - w = 0 . (12) !t S S

When the topographic height is independent of time, we obtain

wS x, y, hS, t = v ÿ “hS . (13)

Using our assumption that the density is constant, and integrating the hydrostatic equation from some arbitrary depthH z withinL the fluid up to the free surface gives

p x, y, z, t - p x, y, h f , t = -g r h f - z . (14)

As an upper boundary condition, we have H L H L H L p x, y, h f , t = p f . (15)

H L D. A. Randall Selected Papers 4 D. A. Randall

It follows that

p = g r h f - z + p f . (16)

£ £ So, since p = -g rz + p x, y, z, t , we obtain p = g rh f + p f and H L £ “ p = g r0 “h f . (17) H L Here we have assumed that p f is horizontally uniform. Using (17), we can now write the horizontal momentum equation as

Dv ÅÅÅÅÅÅÅÅÅÅ + f käv = -g “h . (18) Dt f

Since we have assumed no vertical shear, this equation applies at any height within the fluid, but the range of heights in question is presumably small since the fluid is “shallow.” Equation (18) is the form of the momentum equation for the shallow water system. Using the vector identity v ÿ “ v = “ v ÿ v 2 + “ äv äv, we can rewrite the momentum equation (18) as

!v H L @H L ê D H L ÅÅÅÅÅÅÅÅÅ z + f k ä v = “ gh + K . (19) !t f

Here H L I M v ÿv K ª ÅÅÅÅÅÅÅÅÅÅÅÅ (20) 2

is the per unit mass, and

z = k ÿ “ äv (21)

is the relative vorticity. H L Since the horizontal velocity is independent of z, we can easily integrate the continuity equation, (9), with respect to z, from z = hS to z = h f , to obtain

w x, y, h f , t - wS x, y, hS t = - hf - hS “ ÿv . (22)

where “ ÿ v is the horizontal divergence. Substitute (20) and (12) into (22), to obtain H L H L H L ! ÅÅÅÅÅÅÅÅ h f - hS + “ ÿ v h f - hS = 0 , (23) !t

H L @ H LD

The shallow water equations Revised 7/6/06 15:21:38 5

* or, with h = h f - hS ,

! ÅÅÅÅÅÅÅÅ h* + “ ÿ vh* = 0 . (24) !t

This is the continuity equation for the shallow water system. H L 2. The vorticity and divergence equations for shallow water The absolute vorticity is the sum of the relative and planetary vorticity, i.e.,

h ª z + f . (25)

The vorticity equation can be derived by applying the operator k ÿ“ ä to (19):

!z !v ÅÅÅÅÅÅÅÅÅ = k ÿ “ ä ÅÅÅÅÅÅÅÅÅ !t !t

= k ÿ“ ä -h k äv - “ gh + K C G f

= - ÿ “ ä h ä - ÿ “ ä“ + k Ck Kv kO I gh f MGK

= - ÿ “ ä h ä C K k OG kA v I ME (26) = -k ÿ “h ä käv + h “ ä käv @ H LD

= - ÿ ÿ “h - “h ÿ ; k vK O v C Kk OG?

- ÿ h ÿ “ - ÿ “ + “ ÿ - “ ÿ k v k CH k Lv kK v OGv k

= - v ÿ “h - h “ ÿ v ; H L K O H L K O? = -“ ÿ h v . H L H L Because the coriolis parameter does not depend on time, we can write !h !t = !z !t. Then (26) can be re-written as H L

!h ÅÅÅÅÅÅÅÅÅÅÅ = -“ ÿ h v . ê (27)ê !t

One of the conclusions that can be drawn from (27) is that if there is no absolute vorticity in the fluid at a certain time, then none willH everL form. A purely divergent flow (in the absence of planetary rotation) will remain purely divergent forever, within the framework D. A. Randall Selected Papers considered here. 6 D. A. Randall

One of the conclusions that can be drawn from (27) is that if there is no absolute vorticity in the fluid at a certain time, then none will ever form. A purely divergent flow (in the absence of planetary rotation) will remain purely divergent forever, within the framework considered here.

The divergence is defined by

d ª “ ÿ v . (28)

The divergence equation can be derived from the momentum equation, as follows:

!d !v ÅÅÅÅÅÅÅÅÅ = “ ÿ ÅÅÅÅÅÅÅÅÅ !t !t

= “ ÿ -h käv - “ g h f + K

= -“ ÿ h käv - “2 gh + K C K O I f MG

= - “h ÿ ä + h “ ÿ ä - “2 + k vC K O k vI ghMG f K

= - “h ÿ ä + h ÿ “ ä - ÿ “ ä - “2 + kC v K vO k K k OG v I ghM f K (29)

= h k ÿ “ äv - “h ÿ käv - “2 gh + K ; K O C K O H LG? f I M

= h ÿ “ ä + “h ÿ ä - “2 + k H vL Kv kO Igh f KM

= h ÿ “ ä + ÿ “h ä - “2 + k H vL k K vO Igh f KM

= k ÿ “h äv + h “ äv - “2 gh + K H L H L I f M

= k ÿ “ ä h v - “2 gh + K @ H LD f I M

H L I M

The shallow water equations Revised 7/6/06 15:21:38 7

3. Expressing the shallow water equations in terms of the stream function and velocity potential Helmholtz’s Theorem states that any vector field V can be separated into rotational and divergent parts, i.e., V = “y + Vc , where “ ÿ Vy = 0 and “ ä Vc = 0. If the vector field is the horizontal wind, we can define a stream function, y, to express the rotational part, kä“y, and a velocity potential, c, to express the divergent part, “ c, i.e.,

v = kä“y + “ c . (30)

The conservation equation for absolute vorticity is can be rewritten in terms of the stream function and velocity potential, as follows:

!h ÅÅÅÅÅÅÅÅÅÅÅ = -“ ÿ h v !t

= -“ ÿ h kä“y + “ c H L

= -“ ÿ h kä“y - “ ÿ h “ c (31) C K OG

= -“ ÿ h “ c - h “ ÿ ä“y - “h ÿ ä“y C K k OG H Lk

= -“ ÿ h “ c + ÿ “h ä“y H L K k O K. O For arbitrary scalar functions A and B, define the Jacobian operator J A, B by: H L H L J A, B ª k ÿ “ Aä “B . (32) H L Then we can rewrite (31) as H L H L !h ÅÅÅÅÅÅÅÅÅÅÅ = -“ ÿ h “ c + J h , y . (33) !t

The divergence equation can be re-written in terms of the stream function and velocity potential as follows: H L H L

!d ÅÅÅÅÅÅÅÅÅ = k ÿ “ ä h v - “2 gh + K !t f

= k ÿ “ ä h kä“y + “ c - “2 gh + K H L I f M

D. A. Randall C K OG I M Selected Papers

(34) 8 D. A. Randall 2 = k ÿ “ ä h kä“y + “ c - “ gh f + K

= ÿ “ ä h ä “y + h “ c - “2 + k C kK OG I gh f KM

= k ÿ“ ä h kä“y + k ÿ “ ä h “ c - “2 gh + K C K O G I f M

= ÿ “h ä ä“y + h “ ä ä“y kC K OkG H Lk I M

+ ÿ “h ä “ c + h “ ä “ c - “2 + k ; K O C K gh f OG?K

= k ÿ k “y ÿ “h - “y “h ÿk @ H LD I M

+ ÿ h “ ÿ “ c - “ c “ ÿ ÿ “ “y + “y ÿ“ k k C H Lk k K OG k

+ ÿ “h ÿ “ c - “2 + ; C H k L K O K ghOf K H L G?

2 2 = “y ÿ“h + h “ y + J h , c - “ gh f + K H L I M 2 = “ ÿ h “y + J h , c - “ gh f + K . H L I M The kinetic energy per unit mass, K, which appears in (34), can be expressed in terms of the stream function and velocityH Lpotential,H asL follows:I M

v ÿ v K = ÅÅÅÅÅÅÅÅÅÅÅÅ 2 1 = ÅÅÅÅÅ kä“y + “ c ÿ kä“y + “ c 2

1 = ÅÅÅÅÅ CKkä“y ÿ kä“OyK + kä“ c ÿ “OGc 2

CK+ “ c ÿ OkKä“y +O“ cK ÿ “ c O

1 = ÅÅÅÅÅ kä“y ÿ kK ä“y O+ “ ÿ c “ cG - c “2 c 2

CK O K+“ c ÿ Okä“yH L G (35)

The shallow water equations K O

(34) Revised 7/6/06 15:21:39 9

1 = ÅÅÅÅÅ kä“y äk ÿ “y + “ ÿ c “ c - c “2 c + k ÿ “yä“ c 2

1 = ÅÅCCÅÅÅK- kä Okä“G y ÿ“y +H“ ÿ c L“ c - c “G2 c -HJ y, c L 2

1 = ÅÅÅÅÅ - kC“Cy ÿkK - “yOGk ÿ k ÿ“y +H “ ÿ cL “ c - c G“2 cH - J Ly, c 2

1 C C K= ÅÅÅÅÅ “O y ÿ “yK+ “OGÿ c “ c - cH “2 c L- J y, c G H L 2

1 = ÅÅÅÅÅ “ ÿ yA “y - y “2 y H+ “ ÿ Lc “ c - cE “2 cH - JLy, c . 2

The Jacobian term of (35) “mixes” the rotational and divergent flow fields. We can show, however, that the9A integralH ofL the JacobianE overH a closedL or periodic= H domainL vanishes. This means that the total (volume-integrated, but not mass-weighted) kinetic energy can be expressed in terms of two cleanly separated contributions: a rotational part, and a divergent part.

Finally, the continuity equation can be rewritten in terms of the stream function and velocity potential as follows:

! ÅÅÅÅÅÅÅÅ h* = -“ ÿ h* v !t = -“ ÿ h* kä“y + “ c H L

= -“ ÿ h* CkäK“y - “ ÿ h*O G“ c (36)

= -“ ÿ h* “ c C- hK* “ ÿ kOGä“y +H “h* ÿ Lkä“y

H = -“L ÿ hC* “ c K+ k ÿ “Oh* ä“y K OG

= -“ ÿ h* “ c + J h*, y . H L H L (35) H L H L

D. A. Randall Selected Papers 10 D. A. Randall

4. and potential enstrophy We repeat here for convenience the mass conservation equation [see (24)], i.e.,

! ÅÅÅÅÅÅÅÅ h* + “ ÿ h* v = 0 , (37) !t

and the vorticity conservation equation [see (38)], i.e., H L !h ÅÅÅÅÅÅÅÅÅÅÅ + “ ÿ h v = 0 . (38) !t

It is interesting that these two equations have exactly the same form. This seems to say that vorticity is somehow like mass! H L

We define the potential vorticity by

h q ª ÅÅÅÅÅÅÅÅ . (39) h*

Then (39) is immediately equivalent to

! ÅÅÅÅÅÅÅÅ h* q + “ ÿ h* v q = 0 (40) !t

which expresses conservation of potential vorticity in flux form. The corresponding advective form can be obtainedH by Lsubtracting@H qL äD (24) from (40). The result is

!q ÅÅÅÅÅÅÅÅÅ + v ÿ “ q = 0 , (41) !t

which says that q is conserved following a particle. Of course, this implies that any H L 1 2 function of q is also conserved. In particular, ÅÅ2ÅÅ q is conserved. This quantity is called the potential enstrophy. We easily find that

! 1 1 ÅÅÅÅÅÅÅÅ ÅÅÅÅÅ q2 + v ÿ “ ÅÅÅÅÅ q2 = 0 (42) !t 2 2

from which it follows that K O H L K O ! 1 1 ÅÅÅÅÅÅÅÅ h* ÅÅÅÅÅ q2 + “ ÿ h* v ÅÅÅÅÅ q2 = 0 . (43) !t 2 2

C K OG C K OG

The shallow water equations Revised 7/6/06 15:21:39 11

5. Energy conservation The kinetic energy equation can be derived by taking v ÿ (19), to obtain

!K ÅÅÅÅÅÅÅÅÅÅÅ + v ÿ “K + v ÿ “ g h + h* = 0 . (44) !t S

The last term of (44) represents conversion between kinetic and potential energy. We * have used h f = hS + h . We can convert the@ Hkinetic energyLD equation to flux form:

! ÅÅÅÅÅÅÅÅ h* K + “ ÿ v h* K + h* v ÿ “ g h + h* = 0 . (45) !t S

* The potential energy equation can be derived by multiplying (25) by g hS + h , to obtain H L H L @ H LD

! 1 ÅÅÅÅÅÅÅÅ h* gh + ÅÅÅÅÅ h* + g h + h* “ ÿ v h* = 0 . H L(46) !t S 2 S

This can be rewritten as C K OG H L H L ! 1 ÅÅÅÅÅÅÅÅ h* gh + ÅÅÅÅÅ h* + “ ÿ v h* g h + h* - h* v ÿ “ g h + h* = 0 . (47) !t S 2 S S

The last term represents conversion between kinetic and potential energy. C K OG @ H LD @ H LD If we add (45) and (47), we get

! 1 ÅÅÅÅÅÅÅÅ h* K + gh + ÅÅÅÅÅ h* + “ ÿ v h* K + g h + h* = 0 . (48) !t S 2 S

This expresses total energy conservation. ; C K OG? 8 @ H LD<

D. A. Randall Selected Papers