-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcoastal_dynamics.tex
More file actions
2303 lines (1909 loc) · 222 KB
/
coastal_dynamics.tex
File metadata and controls
2303 lines (1909 loc) · 222 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\documentclass[11pt]{report}
\usepackage[pdftex]{graphicx}
\usepackage{amsmath}
\usepackage[round]{natbib}
\usepackage{palatino}
\usepackage{mathpazo}
\usepackage{fullpage}
\usepackage{rotating}
\usepackage{makeidx}
\usepackage{listings}
\usepackage{boxedminipage}
\usepackage[bookmarks=true]{hyperref}
\clubpenalty=10000
\widowpenalty=10000
\displaywidowpenalty=3000
\predisplaypenalty=3000
\postdisplaypenalty=2000
\author{Robert D. Hetland}
\title{Coastal Dynamics}
\makeindex
\numberwithin{equation}{section}
\begin{document}
\lstset{language=Python,
basicstyle=\small\ttfamily,
commentstyle=\itshape,
showstringspaces=false,
frame=lines,
numbers=left,
numberstyle=\tiny}
\begin{titlepage}
\begin{center}
\vspace*{1cm}
{ \huge \bfseries\scshape Coastal Ocean Dynamics}\\[1.5cm]
\hrule
\vspace{1.5cm}
{\huge Robert D. Hetland}
\vspace{2cm}
\includegraphics[width=6.0in]{cover_picture}
\vspace{0.2cm}
\begin{minipage}[h]{6in}
{\footnotesize The universe is no narrow thing and the order within it is not constrained by any latitude in its conception to repeat what exists in one part in any other part. Even in this world more things exist without our knowledge than with it and the order in creation which you see is that which you have put there, like a string in a maze, so that you shall not lose your way. For existence has its own order and that no man's mind can compass, that mind itself being but a fact among others.\\
---the Judge\\
from \emph{Blood Meridian}\\
by Cormac McCarthy}
\end{minipage}
\vfill
\hfill
\today
\end{center}
\end{titlepage}
\clearpage
\pagenumbering{roman}
\tableofcontents
\clearpage
\section*{Forward}
When I was first entering the field of coastal physical oceanography, I would see modeling talks given at workshops and meetings greeted with general skepticism. And this skepticism was well grounded; although models of the early 90's could reproduce many features of realistic flow, there were also many problems that prevented these models from being used for accurate prediction. Numerical model results were wrong, until proved otherwise. However, around the turn of the century, the ability of numerical models to accurately reproduce observed flow and water mass properties in the coastal ocean improved to the point where the community generally believes numerical results even without a rigorous validation through model/data comparison. In other words, we generally believe that numerical models are able to provide useful information about coastal ocean circulation; numerical model results are right, until proved otherwise.
In the early days of coastal oceanography, most `models' of coastal ocean circulation were based on analytical (derived mathematical) models. These models were compared with data in a way that made it clear that they were ultimately intended to be used for prediction. Today, of course, if we want a prediction of coastal ocean circulation, we rely on numerical model results. This book focuses on analytical models of coastal ocean circulation. Given that analytic models are no longer used for practical applications, like making predictions, the question must be posed: In what way are these models still relevant? Why study analytic models of coastal ocean circulation?
Of course, I believe these models are still very relevant, and still have many practical uses even if prediction is not one of them. The style of this book is intended to highlight the ways in which these analytic models are still relevant: analytical models form the building blocks of our understanding. Just as $F=ma$, or conservation of energy is a building block that we may use or apply abstractly, without a derivation, so to are the ideas resulting from the simple models presented here. For example, the concept of unidirectional wave propagation in the coastal ocean, is a powerful tool that can be applied without resorting to calculation. Thus, the goal is to replace the rigorous, mathematical derivation of a process with a simpler, distilled abstraction.
When building a hydrodynamic model of a coastal region -- a complex task that has still not been automated -- the unique regional variability of coastline and bathymetry must be taken into account. Take, for instance, the task of designing a numerical grid for a regional study. The size of the model domain may vary depending on the application or processes of interest, and selection of the domain the first critical decision that must be made. Domain size must be balanced with resolution requirements and computational limitations. The domain must also be designed with an eye toward the dominant physical dynamics: How will the influence of upcoast wind events be incorporated? Is it possible to use simple radiation for the downcoast boundary condition, or must something more complex be considered? How far inshore will forcing from deep currents off the shelf penetrate? Can these deep currents be ignored if we are only interested in flow very near the coast? Which rivers need to be included in the domain? How well must the estuaries be resolved? For all of these questions, some basic understanding of dynamical processes in the coastal ocean will offer a some guidance. Without some reasonable guidance in the form of an abstract understanding of how the dominant processes inside and outside the chosen domain act, the iterative process of designing a numerical grid may never be successful. However, with some intuition into coastal ocean processes, one can usually design a robust grid quite quickly.
There are many other examples that can be used. Hopefully, readers of this book will find that they can use many ideas about coastal ocean flow almost immediately to explain certain aspects of model results or data sets. This abstract intuition about coastal ocean processes can be an effective guide for more efficient quantitative analysis and accurate prediction. Coastal ocean circulation is also interesting in its own right; it is very different from (non-rotating) fluid dynamics, or even classical (rotating) geophysical fluid dynamics. The even the straightforward combination of a stratified, rotating fluid, a straight coastline, and simple bathymetry offers many rich and weird solutions not found in other sub-disciplins of fluid dynamics. Hopefully, you will come to enjoy this strange field as much as I do.
\section*{About the cover}
The cover image is a section of the {\it Carta Marina} (Map of the Sea) by Olaus Magnus in the 16th century as part of his history of nordic people. In this inset, the coast of Norway, and some of the northern British Isles can be seen, along with fantastical pictures of various sea monsters.
\section*{License}
This work is licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported License. To view a copy of this license, visit their web site\footnote{\tt http://creativecommons.org/licenses/by-nc/3.0/} or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA. In short, you are free:
\begin{itemize}
\item \emph{to Share} -- to copy, distribute and transmit the work
\item \emph{to Remix} -- to adapt the work
\end{itemize}
Under the following conditions:
\begin{itemize}
\item \emph{Attribution} -- You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
\item \emph{Noncommercial} -- You may not use this work for commercial purposes.
\end{itemize}
With the understanding that:
\begin{itemize}
\item \emph{Waiver} -- Any of the above conditions can be waived if you get permission from the copyright holder.
\item \emph{Public Domain} -- Where the work or any of its elements is in the public domain under applicable law, that status is in no way affected by the license.
\item \emph{Other Rights} -- In no way are any of the following rights affected by the license:
\begin{itemize}
\item Your fair dealing or fair use rights, or other applicable copyright exceptions and limitations;
\item The author's moral rights;
\item Rights other persons may have either in the work itself or in how the work is used, such as publicity or privacy rights.
\end{itemize}
\end{itemize}
\emph{Notice} -- For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a reference to the appropriate web page$^{1}$.
\clearpage
\pagenumbering{arabic}
\setcounter{page}{1}
\chapter{Introduction}
This book describes some geophysical fluid dynamical properties of coastal ocean circulation. The scales of motion considered are from small-scale turbulent flows to circulation patterns over the entire continental shelf. The intent of the book is to communicate the basic physical principles of these flows, and heuristic arguments are often used in favor of rigorous derivations.
It is assumed that the reader already has a basic background in geophysical fluid dynamics; this is not intended by any means to be the only book you read about geophysical fluid dynamics. The excellent book by \citet{cushman.beckers:09} is a good place to start. Students will certainly also want to become familiar with \citet{pedlosky:87} and \citet{gill:82}. At present, there is no modern textbook on coastal ocean dynamics. The most relevant here is \citet{csanady:82}, however, this book followed closely Csanady's specific research interests, and also does not cover the last 30 years of advances in the field. There have been, however, a number of recent books on estuarine circulation \citep{dyer:97, valle-levinson:10}.
\section{Variable and coordinate system definitions.}
We typically treat the three spatial dimensions, $x$, $y$, and $z$, and time, $t$, as the four independent variables. The dependent variables include the properties of the water or the flow speed in any of the three directions. A partial list is given in Table~\ref{tab:vars}; absent from this list are derived quantities like vorticity and energy, and properties of turbulent flow, to be discussed further in a later chapter.
\begin{table}[htb]
\caption{Variables definitions.}
\label{tab:vars}
\begin{center}
\begin{tabular}{ l l l l}
\hline\hline
Independent & $x$ & Eastward, or along-shore distance & meters [m] \\
Variables & $y$ & Northward, or cross-shore distance & meters [m] \\
& $z$ & Upward distance from mean sea level${}^\dagger$ & meters [m] \\
& $t$ & Time & seconds [s] \\
\hline
Dependent & $u$ & Eastward, or along-shore distance & m~s$^{-1}$ \\
Variables & $v$ & Northward, or cross-shore distance & m~s$^{-1}$ \\
& $w$ & Upward distance from mean sea levellocity & m~s$^{-1}$ \\
& $p$ & Pressure & N~m$^{-2}$ or kg~m$^{-1}$~s$^{-2}$\\
& $T$ & Temperature & $^\circ$C \\
& $S$ & Salinity & g kg$^{-1}$ \\
& $\rho$ & Density (a function of $S$, $T$, and $p$) & kg~m$^{-3}$ \\
\hline
Other & $h$ & Depth & m \\
Variables & $\eta$ & Sea level elevation & m \\
\hline
\multicolumn{4}{l}{\footnotesize{$\dagger$ Occasionally, distance upward from the sea floor.}}\\
\end{tabular}
\end{center}
\end{table}
The orientation of the coordinate system used throughout this book will be based on a right-handed coordinate system, with the $x$-axis oriented in the alongshore direction such that the $y$-axis is positive away from the coast into the coastal ocean, see Figure~\ref{fig:basic_coastal_domain}. The vertical coordinate is referenced to mean sea level, such that the mean water depth, $h(x, y)$, does not change in time. The variable sea level elevation, $\eta(x, y, t)$, is referenced to the mean sea level, and is positive for sea level higher than the mean. Thus, the total, instantaneous water depth is $D=h+\eta$.
\begin{figure}[tb]
\centering
\includegraphics[width=5in]{basic_coastal_domain}
\caption{The basic coastal domain shows the orientation of the coordinate system, and shows how depth, $h$, and sea level elevation, $\eta$, are defined.}
\label{fig:basic_coastal_domain}
\end{figure}
\newpage
\section{The equations of motion}
The dynamical equations of motion are based on the Euler-Lagrange equations, given by
\begin{align}
\frac{Du}{Dt} - fv &=
-\frac{1}{\rho_0}\frac{\partial p}{\partial x}
+ \frac{\partial}{\partial x}(\nu \frac{\partial u}{\partial x} )
+ \frac{\partial}{\partial y}(\nu \frac{\partial u}{\partial y} )
+ \frac{\partial}{\partial z}(\nu \frac{\partial u}{\partial z} ) \label{eq:u-full} \\
\frac{Dv}{Dt} + fu &=
-\frac{1}{\rho_0}\frac{\partial p}{\partial y}
+ \frac{\partial}{\partial x}(\nu \frac{\partial v}{\partial x} )
+ \frac{\partial}{\partial y}(\nu \frac{\partial v}{\partial y} )
+ \frac{\partial}{\partial z}(\nu \frac{\partial v}{\partial z} ) \label{eq:v-full} \\
\frac{Dw}{Dt} &=
-\frac{1}{\rho_0}\frac{\partial p}{\partial z} - \frac{\rho g}{\rho_0}
+ \frac{\partial}{\partial x}(\nu \frac{\partial w}{\partial x} )
+ \frac{\partial}{\partial y}(\nu \frac{\partial w}{\partial y} )
+ \frac{\partial}{\partial z}(\nu \frac{\partial w}{\partial z} ) \label{eq:w}\\
\frac{\partial u}{\partial x} + \frac{\partial v}{\partial y} + \frac{\partial w}{\partial z} &= 0 \label{eq:cont}\\
\frac{DS}{Dt} &=
\frac{\partial}{\partial x}(\nu_S \frac{\partial S}{\partial x} )
+ \frac{\partial}{\partial y}(\nu_S \frac{\partial S}{\partial y} )
+ \frac{\partial}{\partial z}(\nu_S \frac{\partial S}{\partial z} ) \label{eq:salt}\\
\frac{DT}{Dt} &=
\frac{\partial}{\partial x}(\nu_T \frac{\partial T}{\partial x} )
+ \frac{\partial}{\partial y}(\nu_T \frac{\partial T}{\partial y} )
+ \frac{\partial}{\partial z}(\nu_T \frac{\partial T}{\partial z} ) \label{eq:temp}\\
\rho &= \mathrm{EOS}(S, T, p) \label{eq:eos}
\end{align}
where EOS is an empirical {\it equation of state} relating temperature, salinity and pressure to density. The total derivative is defines as
\begin{equation}
\frac{D}{Dt} = \frac{\partial}{\partial t} + u \frac{\partial}{\partial x}
+ v \frac{\partial}{\partial y} + w \frac{\partial}{\partial z}.
\end{equation}
The molecular viscosity, $\nu$, and the molecular diffusivity of salt, $\nu_S$, and heat, $\nu_T$, may be considered to be approximately constant. These molecular values are often replaced with turbulent viscosities and diffusivity, which may be orders of magnitude larger, and heterogeneous. To calculate the turbulent viscosity or diffusivity from mean flow properties requires a {\it turbulence closure model}. However, a down-gradient assumption is typically maintained, such that the equations maintain the same form, though the viscosities and diffusivities may no longer be assumed to be even approximately constant.
% sources and sinks in the T and S equations.
Equations~\ref{eq:u-full} through~\ref{eq:temp} are formally derived by considering a control volume, typically a cube, and relating the changes of properties within the cube to fluxes through the faces of the cube. While important, this kind of derivation may be found in many other textbooks, and we will take a more heuristic approach here, and examine the character of the various terms in these equations.
\section{Eulerian vs. Lagrangian flow}
Eulerian and Lagrangian flow describes two different ways to consider flow. {\it Eulerian} flow considers properties at a fixed point in space, \emph{e.g.}, $u(x, y, z, t)$. {\it Lagrangian} flow, on the other hand, considers changes to a fixed parcel of water, following that parcel as it is moved by the flow field, \emph{e.g.}, $u(\mathrm{parcel~index}, t)$. We almost always derive our equations using an Eulerian framework, as a Lagrangian framework requires a way to tag every parcel with a unique identifier. Also, we often measure flow in an Eulerian framework, for example, moored current observations; numerical models also output Eulerian flow. In certain instances, however, when following a particular flow feature for example, the Lagrangian framework has clear advantages, but to obtain general solutions at all locations requires an infrastructure of identification tags that is too complex to do analytically. Also, plankton and sediment particles move with the surrounding water, and experience the Lagrangian flow field.
Time derivatives in a Lagrangian framework are given by the {\it total derivative}, $D/Dt$, in the Eulerian framework by the partial derivative, $\partial/\partial t$. These two views of the flow may be related by considering the chain rule,
\begin{equation}
\label{eq:eulerian_vs_lagrangian}
\begin{split}
\frac{D}{Dt}\,u(x(t), y(t), z(t), t) &= \frac{\partial}{\partial t}
+ \frac{\partial x}{\partial t} \frac{\partial u}{\partial x}
+ \frac{\partial y}{\partial t} \frac{\partial u}{\partial y}
+ \frac{\partial z}{\partial t} \frac{\partial u}{\partial z} \\
&= \frac{\partial u}{\partial t}
+ u \frac{\partial u}{\partial x}
+ v \frac{\partial u}{\partial y}
+ w \frac{\partial u}{\partial z}
\end{split}
\end{equation}
In the left side of this equation, in the Lagrangian framework, $x$, $y$, and $z$ are dependent variables that change in time, and represent the position of a particular water parcel. On the right side, in the Eulerian framework, $x$, $y$, and $z$ are independent variables (not explicitly shown) and the derivatives with respect to the coordinate system must be converted to velocities, \emph{e.g.}, $u = \partial x/\partial t$.
It should be noted that $u$ in equation~\ref{eq:eulerian_vs_lagrangian} may be replaced by any property of the flow, for example, any of the velocity components, temperature, salinity, or density. If $D\phi/Dt=0$, that means that the property $\phi$ is {\it conserved}; that property will not change its value following a particular water parcel.
\section{The advective terms}
\label{sec:adv}
There are the three additional, non-linear terms that arise in equation~\ref{eq:eulerian_vs_lagrangian} in the Eulerian framework. These three {\it advective} terms are at the root of the {\it closure} problem, the reason that time-mean variables cannot be substituted in the equations of motion, equations~\ref{eq:u-full} through~\ref{eq:temp}, while retaining the same mathematical structure; averaging these equations over some time interval causes new terms to arise. To see this, let us define a time-averaging operator
\begin{equation}
\langle\cdot\rangle = \frac{1}{T} \int^{T/2}_{-T/2} \cdot\;\;dt.
\end{equation}
Such an operation, applied to the momentum equations, is referred to as {\it Reynolds averaging}. It is clear from this definition that the operator is linear, and has the following properties
\begin{equation}
\langle c \phi\rangle = c \langle\phi\rangle, \quad \langle\langle\phi\rangle\rangle = \langle\phi\rangle, \quad \left\langle\frac{\partial \phi}{\partial t}\right\rangle = \frac{\partial}{\partial t}\langle\phi\rangle,
\end{equation}
where $\phi$ is some space- and time-dependent property of the flow, and $c$ is a constant. These properties can be easily verified by reverting to the integral definition of the averaging operator, $\langle\cdot\rangle$. Of course, the time derivative in the third relation could be replaced with a derivative with respect to any other independent variable.
Using this definition to average all of the terms in equations~\ref{eq:u-full} through~\ref{eq:temp} is straightforward for all the terms that are linear, where, for example, the pressure gradient, $p_x$, is simply replaced with the gradient of the time-averaged pressure, $\langle p \rangle_x$. The advective terms\footnote{Typically the {\it molecular} diffusivity and viscosity terms are defined as, \emph{e.g.}, $\mu \partial^2 u/\partial z^2$; second order terms, but linear, as the molecular diffusivity or viscosity is generally treated as constant}, on the other hand, are non-linear, and so averaging these terms is not straightforward. This is because, generally
\begin{equation}
\langle\phi\,\psi\rangle \ne \langle\phi\rangle\langle\psi\rangle,
\end{equation}
and this is the form that the non-linear terms take; \emph{e.g.}, $\phi=u$, $\psi=\partial v/\partial x$. The time mean of a product of two fluctuating terms is not equal to the product of the mean of the two terms because there may be correlations in the fluctuations of $\phi$ and $\psi$. Do demonstrate this, consider the case when both $\phi$ and $\psi$ are periodic, and that the averaging interval is exactly one period. In this case, obviously, $\langle\psi\rangle=0$ and $\langle\psi\rangle=0$. However, if they are in phase, say, $\phi=\psi=\mathrm{sin}(2 \pi t / T)$, then, $\langle\phi \psi\rangle = T/2 \ne 0$. These correlations are referred to as {\it eddy correlations}, and will be explored in much more detail in Chapter~\ref{chapter:turbulence} on Turbulence and Mixing.
It is possible for a flow that has zero mean in the Eulerian sense to still transport mass in the Lagrangian framework, even at scales much larger than turbulence. For surface gravity waves, this phenomenon is referred to as {\it Stokes drift}\index{Stokes drift}. \citet{longuet-higgins:69} describes this phenomenon for the more general case of unsteady currents. This additional {Stokes velocity} is a consequence of the non-linear advective terms that are ultimately responsible for differences in the Lagrangian and Eulerian flow fields.
\begin{figure}[tb]
\centering
\includegraphics[width=5in]{stokes-diagram}
\caption{Diagram showing the variables used in the Stokes flow derivation.}
\label{fig:stokes-diagram}
\end{figure}
Consider a flow vector, $\mathbf{u_0}$ at a fixed point $\mathbf{x_0}$. Some small distance, $\mathbf{\Delta x}$, away at point $\mathbf{x}$, the flow is $\mathbf{u}$; see figure~\ref{fig:stokes-diagram}. Now, let $\mathbf{\Delta x}$ be defined by an integral of the flow
\begin{equation}
\mathbf{\Delta x} \simeq \int_{t_0}^{t} \mathbf{u_0} dx.
\end{equation}
Thus, we have the following relationship between $\mathbf u_0$ and $\mathbf u$
\begin{equation}
\mathbf{u}(\mathbf{x}, t) = \mathbf{u_0}(\mathbf{x_0}, t) + \mathbf{\Delta x}\cdot\nabla\mathbf{u_0}
= \mathbf{u_0}(\mathbf{x_0}, t) + \int_{t_0}^{t} \mathbf{u_0}\,dt\cdot\nabla\mathbf{u_0}.
\end{equation}
Note the similarities between this equation and equation~\ref{eq:eulerian_vs_lagrangian}, the dot product term is similar to the advective terms in the Eulerian definition of the total time derivative. Now, time average this equation over one period of the process of interest (wave period, tidal period, \emph{etc.}), to get
\begin{equation}
\langle \mathbf{u}(\mathbf{x}, t) \rangle
= \langle \mathbf{u_0}(\mathbf{x_0}, t) \rangle
+ \left\langle \int_{t_0}^{t} \mathbf{u_0}\,dt\cdot\nabla\mathbf{u_0} \right\rangle
\end{equation}
where $\langle\cdot\rangle$ is the time-averaging operator. Since $\mathbf x_0$ defines a fixed point, the velocity here represents the Eulerian velocity. But since the position of $\mathbf x$ is defined by the direction of the flow and the time $t$, this represents the Lagrangian velocity. The rightmost term is then referred to as the {\it Stokes velocity}. Thus, we can define the difference in the Lagrangian and Eulerian velocities is defined as the Stokes velocity,
\begin{equation}
\langle \mathbf{u_{\mathrm{Lagrangian}}} \rangle =
\langle \mathbf{u_{\mathrm{Eulerian}}} \rangle +
\langle \mathbf{u_{\mathrm{Stokes}}} \rangle.
\end{equation}
Again, we see that the time mean of flow following a parcel has additional terms relative the the mean flow at a single point. This, again, is due to correlations in the flow and the gradients of the flow. For a periodic flow, the Stokes velocity will be largest when the flow and flow gradients are in phase.
Consider a propagating wave traveling in the $x$-direction,
\begin{equation}
u = U_0\,\mathrm{sin}(kx - \omega t)
\end{equation}
Clearly, the mean Eulerian velocity is zero. Averaging over one period, the Stokes velocity (also the Lagrangian velocity), though, is
\begin{equation}
\langle \mathbf{u_{\mathrm{Lagrangian}}} \rangle =
\langle \mathbf{u_{\mathrm{Stokes}}} \rangle
= \left\langle \int_{t_0}^{t} \mathbf{u_0}\,dt\cdot\nabla\mathbf{u_0} \right\rangle
= \left\langle \frac{U_0^2\,k}{\omega} cos^2(kx - \omega t) \right\rangle
= \frac{U_0^2}{2 c}
\end{equation}
where $c=\omega\,k^{-1}$ is the phase speed of the wave.
Now, consider a steady flow, but increasing in magnitude in the $x$-direction, such that
\begin{equation}
u > 0\quad,\quad \frac{\partial u}{\partial x} > 0.
\end{equation}
Eulerian flow at some point, $x_0$, is simply $u(x_0)$. However, if we follow a parcel released at point $x_0$ for some time, it will have a mean velocity greater than $u(x_0)$, because $u(x_0)$ will be the smallest velocity that the parcel experiences. Thus, the correlations between the velocity and velocity gradients that cause the differences between Eulerian and Lagrangian flow do not necessarily need to be time dependent, although fluctuating currents are usually how we usually think about Stokes drift.
As this section demonstrates, the non-linear terms are an important aspect of the hydrodynamic equations. These terms are responsible for the chaotic nature of flows at all scales. One aspect of this is the nature of small-scale turbulent flows that may influence flow at larger scales. Parameterization of turbulent flows in numerical models is necessary because numerical models of (primarily hydrostatic) geophysical flow do not come close to resolving even the largest eddies (for isotropic turbulence, where the aspect ratio of the turbulent eddies is approximately one and the flow is nonhydrostatic). These turbulent eddies, that are generated by instabilities in larger scale flow, influence the larger scale motions through variations in turbulent viscosity and diffusivity in a way that is difficult to predict accurately.
Because it is difficult to solve chaotic, non-linear systems analytically, many of our conceptual models of geophysical flow are based on linear models, where the influence of the advective terms is assumed to be negligible. These linear, analytical models of geophysical flow are useful, however, in that they increase our intuition about the character of geophysical scale flows. It is difficult to gain an intuition for large-scale, rotating flows because the flows we experience directly (flow in a river, or a swimming pool, or a sink) are non-rotating, and rotating flows behave very differently from non-rotating flows. That said, as suggested by the discussion above, we should be careful about placing too much faith in any solution that was derived ignoring the advective terms.
\section{Scales and non-dimensional numbers}
Ratios of the terms, expressed as non-dimensional numbers, in the equations of motion are used to justify exclusion of certain terms from the momentum balance. Often, this is presented in the following manner: the scales of the flow are stated, the various non-dimensional parameters are calculated using these values, and the small terms are identified and eliminated. In practice, this procedure is done in reverse. Given a set of basic analytical models, it is often clear how one would like to extend these models by adding certain terms. Or, it is possible that intuition about the problem suggests that certain processes must be dominant, and others may be ignored. Or, finally, a set of terms is chosen such that it is possible to derive a simple, analytical solution, and the situations where this solution is valid are determined after the fact. In any case, it is a useful exercise to see if the appropriate non-dimensional parameters are indeed small, and the associated scales are consistent with the process under investigation.
As we are dealing with very simple, well-known solutions of basic balances in this book, we will state which terms will be kept and which will be ignored, and then state which non-dimensional numbers must be large or small to support this balance. This will determine over which scales the simple solutions are valid.
The spatial scales are a depth scale, $H$, for the vertical scale, and $L$ for (isotropic) horizontal scales; $L_x$ and $L_y$ for along- and cross-shore scales when the scales are not isotropic. Dependent variable scales are $U$ for the horizontal velocity scale, $\eta_0$ for the magnitude of sea surface displacements, and $\nu$ for viscosity. Other dimensional scales of the system include the rotational timescale $f^{-1}$ (where $f$ is the Coriolis parameter), the gravity wave phase speed, $c=\sqrt{g\,H}$ (where $g$ is the gravitational acceleration), and the {\it deformation radius}, $R_d=\sqrt{g\,H}\,f^{-1}$, for the horizontal scale. The deformation radius is the distance a gravity wave can travel in the timescale $f^{-1}$, and sets the dominant horizontal scale for rotating flow.
The effects of stratification are measured by the {\it stratification frequency}, $N$, defined by
\begin{equation}
N^2 = -\frac{g}{\rho_0}\frac{\partial \rho}{\partial z},
\end{equation}
which is the natural frequency of internal waves associated with motions of the density field of a continuously stratified fluid. If the fluid has a sharp pycnocline separating two or more relatively homogeneous layers, a more relevant scale may be the {\it internal phase speed},
\begin{equation}
c' = \sqrt{g'\,H} = \sqrt{\frac{g\,\Delta\rho\,H}{\rho_0}}
\end{equation}
where $\Delta\rho$ is the density difference across the pycnocline. The {\it reduced-gravity}, $g'$, represents the weakened effect of gravity on fluids of nearly the same density; typical values of $\Delta\rho\,\rho_0^{-1}$ in natural geophysical systems are at most about 0.02, and often much less. The internal phase speed may be used to define an {\it internal deformation radius}, $R_d'=\sqrt{g'\,H}\,f^{-1}$, which is the relevant horizontal length scale for a stratified flow with two layers.
\paragraph{Reynolds number} \index{Reynolds number}
\begin{equation}
Re = \frac{U\,L}{\nu}
\end{equation}
The Reynolds number is a ratio of the advective terms to the (molecular) viscosity terms. Here $\nu$ is the {\it kinematic molecular viscosity}; for water $\nu\simeq10^{-6}$~m$^2$~s$^{-1}$. The Reynolds number is usually used to characterize the tendency of a flow to be turbulent, larger Reynolds numbers indicate that the flow is more likely to be turbulent. The exact value of the Reynolds number at which the transition to turbulent flow occurs depends on many of the details of the problem; \emph{e.g.}, flow through a pipe {\it vs.} flow over a plate. The roughness of the boundaries and the details of the flow initiation also matter. Generally, though we expect a transition to turbulence for $Re\sim\mathcal{O}$(10$^3$), fully developed turbulence for $Re\sim\mathcal{O}$(10$^5$). The Reynolds number for geophysical flows are typically as large or larger than that required for fully developed turbulence, and so the Reynolds number is only used in the study of turbulence. We assume that the flow in the ocean is always potentially turbulent.
\paragraph{Rossby number} \index{Rossby number}
\begin{equation}
Ro = \frac{U}{f\,L}
\end{equation}
The Rossby number is a ratio of the advective terms to the Coriolis term. It is a measure of the non-linearity or instability of the flow. For the sake of creating a tractable problem, we often assume a small Rossby number, $Ro\ll\mathcal{O}(1)$, so that the advective terms may be neglected. This assumption requires large horizontal spatial scales and long timescales to be valid. While this assumption is very useful, and can produce analytical models with reasonable predictive ability, any assumption that neglects the advective terms is best initially met with a healthy skepticism.
\paragraph{Ekman number} \index{Ekman number}
\begin{equation}
Ek = \frac{\kappa}{f\,H^2}
\end{equation}
The Ekman number is a ratio between the viscous terms and the Coriolis term. Here, $\kappa$ is the {\it turbulent kinematic eddy viscosity}, the effective eddy viscosity that a fluid feels when the flow properties are averaged over timescales much longer than the timescale of turbulent eddy overturns. The turbulent viscosity is typically a few orders of magnitude larger than the molecular viscosity. If the Ekman number is small, $Ek\ll\mathcal{O}(1)$, rotational effects are more important than viscous effects, and the flow may be considered to be inviscid. Unlike non-rotational flows, rotation limits the distance that a boundary stress may penetrate into a fluid. The thickness of the boundary layers where viscous effects are important is called the {\it Ekman depth}, $\delta$, and may be estimated by setting $Ek=1$, and solving for the vertical length scale,
\begin{equation}
\delta = \sqrt{\frac{f}{\kappa}}.
\end{equation}
The Ekman depth may be reduced by the presence of stratification, which inhibits turbulence and reduces $\kappa$. Typical scales for the Ekman depth are a few meters, so that the interior of the ocean, away from the boundaries, the flow may be considered to be inviscid.
\paragraph{Richardson number} \index{Richardson number}
\begin{equation}
Ri = \frac{N^2}{S^2} \simeq \frac{g'\,H}{U^2}
\end{equation}
where $S^2 = (u_{zz})^2$ is the shear squared. These two definitions are termed the {\it gradient Richardson number} and the {\it bulk Richardson number}, respectively. The Richardson number may be considered a ratio of the potential energy inherent in the stratification ($N^2$) to the kinetic energy inherent in the velocity shear ($S^2$). The critical value for the gradient Richardson number is approximately 0.25 (we will derive this fact later), and slightly larger (but certainly less than one) for the bulk Richardson number. When the Richardson number is smaller than the critical value, the shear in the flow is able to overcome the potential energy barrier associated with the stratification, and the fluid will mix. When the Richardson number is larger than the critical value, the shear is unable to overcome the stratification, and the fluid is stable, mixing is inhibited. There are other definitions of the Richardson and Froude numbers that are specific to characterizations of turbulent flow; these will not introduce here, but will be saved for the chapter on turbulent flows.
\paragraph{Internal Froude number} \index{Froude number!Internal}
\begin{equation}
Fr = \frac{U}{\sqrt{g'\,H}}
\end{equation}
The Froude number is a ratio of the flow speed to the internal gravity wave speed. Here, we have defined the {\it internal} or {\it baroclinic} Froude number, associated with internal, density waves. We could also define a {\it barotropic} Froude number, but for geophysical flows, this number is always much, much less than one, and it is consequently of less use in characterizing flows. The nature of the flow changes when the Froude number exceeds one, since then gravity waves travel slower than the flow speed and are unable to propagate upstream. Froude numbers greater than one are associated with {\it supercritical flow}. Typically, the internal Froude number over the shelf is much less than one. The Froude number may approach or slightly exceed one in estuaries, river plumes, and frontal regions. Froude numbers greater than two are rare. Note that the Richardson number and Froude number are related, $Ri = Fr^{-2}$. Despite the fact that no new information is contained in having two separate numbers, they are traditionally used to discuss very different processes. The Froude number is used to characterize hydraulic control and other advective processes, the Richardson number is used to characterize mixing processes.
\paragraph{Burger number} \index{Burger number}
\begin{equation}
Bu = \frac{N\,H}{f\,L} = \alpha\frac{N}{f}
\end{equation}
The Burger number relates the importance of stratification to rotation; for small values of the Burger number, rotational effects are more important than stratification. Sometimes the square of the right hand side is used to define the Burger number. The bathymetric slope, $\alpha = h_x \simeq H\,L^{-1}$, may be used to define the {\it slope Burger number}, far right.
\paragraph{Kelvin number} \index{Kelvin number}
\begin{equation}
K = \frac{L\,f}{\sqrt{g'\,H}}
\end{equation}
The Kelvin number is used to relate the length scale of a feature, say the width of an estuary mouth, to the deformation radius. Notice that if we approximate $N\,H = \sqrt{g'\,H}$, the Kelvin and Burger numbers are related by $K=Bu^{-1}$.
There are many other non-dimensional numbers, but this list will be sufficient for nearly all of the cases that we deal with in this book.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%% BAROTROPIC FLOW CHAPTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Barotropic flow}
In this chapter, we consider simple problems in which density differences in the ocean are ignored. In this case, the pressure gradient in the fluid is determined solely by gradients in the sea surface. Such flow conditions also arise when the flow contains density gradients. For stratified flow there can be many modes of variability, and the gravest mode is typically similar to barotropic flow. As such, this type of flow is often referred to as the {\it external} mode, related to changes in the sea surface, where the {internal} modes are associated with changes in the density field within the fluid.
Consider a homogeneous, inviscid fluid -- let us assume for the moment, without a formal scaling analysis, that these are both reasonable assumptions. In this case, since $S$, $T$, and $\rho$ are all constant (with $\rho=\rho_0$), the only non-trivial equations from~\ref{eq:u-full} to~\ref{eq:eos} are the first four, which are now,
\begin{align}
\frac{\partial u}{\partial t}
+ u\frac{\partial u}{\partial x}
+ v\frac{\partial u}{\partial y}
+ w\frac{\partial u}{\partial z} - fv
&= -\frac{1}{\rho_0}\frac{\partial p}{\partial x} \label{eq:u-barotropic} \\
\frac{\partial v}{\partial t}
+ u\frac{\partial v}{\partial x}
+ v\frac{\partial v}{\partial y}
+ w\frac{\partial v}{\partial z} + fu
&= -\frac{1}{\rho_0}\frac{\partial p}{\partial y} \label{eq:v-barotropic} \\
\frac{\partial w}{\partial t}
+ u\frac{\partial w}{\partial x}
+ v\frac{\partial w}{\partial y}
+ w\frac{\partial w}{\partial z}
&= -\frac{1}{\rho_0}\frac{\partial p}{\partial z} - g \label{eq:w-barotropic}\\
\frac{\partial u}{\partial x}
+ \frac{\partial v}{\partial y}
+ \frac{\partial w}{\partial z}
&= 0 \label{eq:cont-barotropic}
\end{align}
There are four equations, and four dependent state variables: $u$, $v$, $w$, and $p$. We will proceed to reduce this set of four equations to a set of three equations in $u$, $v$, and $\eta$. This is possible because the hydrostatic assumption trivializes the vertical momentum equation.
\section{The hydrostatic balance}
The dominant balance in the vertical momentum equation (equation~\ref{eq:w-barotropic}) is between the vertical pressure gradient and gravity. Essentially, this means that the pressure at any point in the fluid is equal to the weight of the water above it, and is not influenced by the local flow field\footnote{\emph{hydro} means water, \emph{static} means not moving, so the hydrostatic balance is the balance the flow would have at rest.} The terms in the vertical momentum equation can be scaled in order to quantify this. Horizontal distances, $x$ and $y$, and velocities, $u$ and $v$, will be scaled as $L$ and $U$, respectively; the vertical coordinate, $z$, and velocity, $w$, will be scaled as $H$ and $W$, respectively. The timescale, $T$, may be related to the flow by the relationship $T=L\,U^{-1}=H\,W^{-1}$, \emph{e.g.}, the time it takes a parcel with a velocity $U$ to flow a distance $L$. Derivatives are scaled as, for example, $u\,u_x = U^2 L^{-1}$ (subscripts denote partial differentiation).
Note that, by scaling the continuity equation (equation~\ref{eq:cont-barotropic}),
\begin{equation}
\frac{U}{L} = \frac{W}{H}.
\end{equation}
This equation along with the timescale relationship can be used to show all the terms on the left hand side of equation~\ref{eq:w-barotropic} have the same magnitude,
\begin{equation}
\frac{W}{T} = \frac{U\,W}{L} = \frac{W^2}{H}.
\end{equation}
At this point, it is unclear how to scale the pressure, we may assume it will be as large as needed to balance the equation. Now, if we compare the advective terms in the vertical momentum equation to gravity, $g$, we obtain
\begin{equation}
\frac{\mathrm{Advective~term}}{\mathrm{Gravity}} = \frac{U\,W}{g\,L} = \frac{U^2}{g\,H}\frac{H^2}{L^2} = Fr^2 \alpha^2
\end{equation}
where $Fr=U (g\,H)^{-1/2}$ is the Froude number, a ratio of the flow speed to the gravity wave speed, and $\alpha=H\,L^{-1}$ is the aspect ratio of the flow. Note that, if we allowed for variations in density, we could simpily substitute the internal Froude number for the Froude number. Typically, for geophysical scale flows, the Froude number is very small, and even the internal Froude number is never larger than about 2. The aspect ratio, $\alpha$, is always very small, typically around 10$^{-2}$ to 10$^{-4}$. For example, typical scales might include an estuary that is 10~m deep with cross-channel scales of about a kilometer ($\alpha$=10$^-2$) and along-channel scales of about 10~km ($\alpha$=10$^-3$), or a continental shelf with a depth of 100~m and horizontal scales of 10~km ($\alpha$=10$^-3$) or 100~km ($\alpha$=10$^-4$). Thus, even given a very large Froude number of $\mathcal{O}(1)$, and a very large aspect ratio of 0.1, the advective terms will only be about one percent of the total balance. Thus, the dominant balance is between gravity and the pressure gradient. Non-hydrostatic flows must be both energetic and isotropic, like turbulence; the assumption of a hydrostatic balance is extremely reasonable and accurate for all of the other flow regimes we will consider here.
Because the pressure never appears explicitly in the momentum equations -- only pressure gradients -- we may subtract out the mean gradient from the hydrostatic balance, to define the perturbation pressure
\begin{equation}
\label{eq:pprime}
p' = p - p_{\mathrm{hydrostatic}},
\end{equation}
where the hydrostatic pressure is defined as
\begin{equation}
p_{\mathrm{hydrostatic}} = \rho_0\,g\,z,
\end{equation}
the pressure due to the weight of the water column at some depth $z$, referenced to $p_{\mathrm{hydrostatic}}=0$ at the geopotential $z=0$. The gradient of equation~\ref{eq:pprime} with respect to $z$, and substitution into the remaining terms of equation~\ref{eq:w-barotropic} gives
\begin{equation}
\label{eq:hydrostatic}
\frac{\partial p'}{\partial z} = 0.
\end{equation}
Note that by the definition of $p'$ in equation~\ref{eq:pprime},
\begin{equation}
\frac{\partial p'}{\partial x} = \frac{\partial p}{\partial x} \quad , \quad
\frac{\partial p'}{\partial y} = \frac{\partial p}{\partial y}.
\end{equation}
so that equation~\ref{eq:hydrostatic} can replace the vertical momentum equation (equation~\ref{eq:w-barotropic}) in the equations of motion, and $p'$ may replace $p$ in equations~\ref{eq:u-barotropic} and~\ref{eq:v-barotropic}. Both pressure, $p$, and perturbation pressure, $p'$, are used in this book and in the literature; the presence of a gravity term in the vertical momentum equation will determine which is being used.
\section{The inviscid shallow water equations}
Because the hydrostatic balance states there is no vertical pressure gradient, there will be no vertical shear that develops in the horizontal currents, or
\begin{equation}
\frac{\partial u}{\partial z} = \frac{\partial v}{\partial z} = 0,
\end{equation}
if there are no such gradients initially. This is because if there is no vertical shear initially, none of the terms in equations~\ref{eq:u-barotropic} and~\ref{eq:v-barotropic} will generate such a shear. Move all the terms except the time derivative to the right hand side -- none of the terms now on the left depend on vertical gradients (except, the $w\,u_z$ and $w\,v_z$ terms, which are both assumed to be zero initially). If the right hand side does not depend on $z$ initially, there is no way for vertical gradients to form. In other words, there is no source for lateral vorticity. Viscosity and stratification can both break this balance, and generate vertical shear.
The lack of vertical shear implies that the vertical velocity may be determined diagnostically from the horizontal flow field and the surface and bottom boundary conditions, reducing the number of dependent variables and degrees of freedom by one. In order to do this, we will vertically integrate the horizontal momentum equations from the sea floor, $z=-h$, to the sea surface, $z=\eta$. Both of these are material surfaces that water cannot flow through. This is defined mathematically as
\begin{align}
\frac{D h}{Dt} &= u \frac{\partial h}{\partial x} + v \frac{\partial h}{\partial y} = -w|_{z=-h} \label{eq:h_cons}, \\
\frac{D \eta}{Dt} &= \frac{\partial \eta}{\partial t} + u \frac{\partial \eta}{\partial x} + v \frac{\partial \eta}{\partial y} = w|_{z=\eta}. \label{eq:eta_cons}
\end{align}
These total derivatives define the vertical velocity of a parcel on the material surface. Note that a parcel on the material surface remains forever on that surface; since there is no vertical shear, there is no mechanism to separate the parcel from the surface. Also note, the material surface does not need to move in order for there to be a vertical velocity there; flow along a bathymetric gradient will produce a vertical velocity (\emph{e.g.}, $u\,h_x$) even with the bathymetry is stationary.
Because there is no vertical shear in the flow, all of the terms in equations~\ref{eq:u-barotropic} and~\ref{eq:v-barotropic} are independent of depth. A vertical average then just gives those identical equations. A vertical integral of the continuity equation, on the other hand, requires a bit more care, because while the shear in the lateral currents is zero, the vertical velocity is not necessarily zero and is not necessarily uniform with depth. For example, a vertical velocity may be generated, as we have just shown, by flow along bathymetric gradients, and the surface and bottom vertical velocities may be different. So, a vertical integral of the continuity equation (equation~\ref{eq:cont-barotropic}) over the range $z=(-h, \eta)$ results in the following relation
\begin{equation}
(h+\eta)\frac{\partial u}{\partial x} + (h+\eta)\frac{\partial v}{\partial y} + w|_{z=\eta} - w|_{z=-h} = 0.
\end{equation}
Here, we have made use of the fact that the lateral velocities are depth dependent, and thus so is the lateral shear of the lateral velocities. If there we consider the case with vertical shear, a similar relation can be derived, but Leibniz integral rule for variable integration limits\footnote{See, {\tt http://en.wikipedia.org/wiki/Leibniz\_integral\_rule} or \citet{kundu:90}, page 75.} must be used. The final result is identical, but with the horizontal velocities replaced with depth mean values. Substitution of the definitions for velocity on a material surface gives
\begin{equation}
(h+\eta)\frac{\partial u}{\partial x} + (h+\eta)\frac{\partial v}{\partial y} + \frac{\partial \eta}{\partial t} + u \frac{\partial \eta}{\partial x} + v \frac{\partial \eta}{\partial y} + u \frac{\partial h}{\partial x} + v \frac{\partial h}{\partial y} = 0.
\end{equation}
This equation may be simplified by combining like terms, and assuming $\eta \ll h$, a reasonable assumption in all but very near-shore regions, where $h$ is small, or regions with an exceptionally large tidal range, where $\eta$ is large. Typically subtidal variations in $\eta$ are $\mathcal{O}$(0.1~m), where typical depth ranges we are concerned with here are $\mathcal{O}$(10-100~m). Thus, $h+\eta \simeq h$ is usually a reasonable approximation. The new, simplified continuity equation is
\begin{equation}
\frac{\partial}{\partial x}(u h) + \frac{\partial}{\partial y}(v h) + \frac{\partial \eta}{\partial t} = 0. \label{eq:cont-shallow-placeholder}
\end{equation}
In other words, convergence in horizontal transport causes sea level to rise, and {\it vice verse}.
The final step in our derivation of the shallow water equations is to rewrite the horizontal pressure gradients in terms of sea level variations. This is done by integrating the hydrostatic pressure gradient from some reference level within the water up to the sea surface, $z=(z_0, \eta)$. Here, we need the gradient of the actual pressure, not the perturbation pressure, as we need to calculate the pressure changes caused by the weight of the water in the sea level anomaly, so
\begin{equation}
\int_{z_0}^\eta \frac{\partial p}{\partial z} \,dz = \int_{z_0}^\eta \rho_0\,g\,dz.
\end{equation}
Both integrals are trivial to calculate,
\begin{equation}
p|_{z=z_0} = p_{ATM} + (\eta-z_0)\rho_0\,g.
\end{equation}
The pressure at the surface is defined to be the atmospheric pressure, $p_{ATM}$ which we will assume for simplicity has no horizontal gradients. This assumption may be relaxed, but the ocean typically responds to differences in atmospheric pressure by adjusting sea level to cancel these pressure differences out, referred to as the {\it inverse barometer effect}. We are interested in finding the horizontal pressure gradients at $z=z_0$. A derivative with respect to $x$, for example, after some minor rearrangement, is
\begin{equation}
\frac{1}{\rho_0}\frac{\partial p}{\partial x} = g\frac{\partial \eta}{\partial x}.
\end{equation}
The gradient with respect to $y$ is similar.
Now, we have all the components to rewrite equations~\ref{eq:u-barotropic} through~\ref{eq:cont-barotropic} as a system of three equations in $u$, $v$, and $\eta$
\begin{align}
\frac{\partial u}{\partial t}
+ u\frac{\partial u}{\partial x}
+ v\frac{\partial u}{\partial y} - fv
&= -g\frac{\partial \eta}{\partial x} \label{eq:u-shallow} \\
\frac{\partial v}{\partial t}
+ u\frac{\partial v}{\partial x}
+ v\frac{\partial v}{\partial y} + fu
&= -g\frac{\partial \eta}{\partial y} \label{eq:v-shallow} \\
\frac{\partial}{\partial x} (u\,h)
+ \frac{\partial }{\partial y} (v\,h)
+ \frac{\partial \eta}{\partial t}
&= 0. \label{eq:cont-shallow}
\end{align}
%%%% Note on d eta / dt term being as small as the others ignored.
\section{Geostrophic flow}\index{Geostrophy}\index{Geostrophic flow}
Geophysical flows are characterized by large spatial scales and long timescales. It may be demonstrated through a scaling analysis that subinertial flow, defined as flow with timescales longer than $f^{-1}$, on the continental shelf is very nearly in geostrophic balance, with the pressure gradient term balancing the Coriolis term. This requires that frictional effects are weak ($Ek\ll1$), and that the Rossby number is small. In this case, the flow is quasi-steady, and the dominant balance is given by the equations
\begin{align}
- fv
&= -g\frac{\partial \eta}{\partial x} \label{eq:u-geostrophic} \\
fu
&= -g\frac{\partial \eta}{\partial y} \label{eq:v-geostrophic} \\
\frac{\partial}{\partial x} (u\,h)
+ \frac{\partial }{\partial y} (v\,h)
&= 0 . \label{eq:cont-steady}
\end{align}
For the case of constant depth, $h(x, y)=H$, this system of equation is degenerate, in that the {\it geostrophic flow} specified by the momentum equations (equations~\ref{eq:u-geostrophic} and~\ref{eq:v-geostrophic}) automatically satisfies the continuity equation (equation~\ref{eq:cont-steady}). This can be seen by taking the {\it curl of the equations}: an $x$-derivative of equation~\ref{eq:v-geostrophic} subtracted by a $y$-derivative of equation~\ref{eq:u-geostrophic} shows that the flow is non-divergent, $u_x + v_y = 0$. Thus, the continuity equation provides no new information, and we are left with three variables, but only two independent equations to define them; any horizontally non-divergent flow automatically satisfies geostrophy.
For variable topography, the combination of no divergence in the flow (from geostrophy), and no divergence in the transport (from continuity) requires that the flow must follow constant depth contours. This can be seen explicitly by substituting u in equations~\ref{eq:u-geostrophic} and~\ref{eq:v-geostrophic} into the continuity equation (this is a technique we will use often), to get
\begin{equation}
- \frac{g}{f}\frac{\partial}{\partial x} (\frac{\partial \eta}{\partial y}\,h)
+ \frac{g}{f}\frac{\partial }{\partial y} (\frac{\partial \eta}{\partial x}\,h)
= - \frac{\partial \eta}{\partial y}\frac{\partial h}{\partial x}
+ \frac{\partial \eta}{\partial x}\frac{\partial h}{\partial y}
\equiv J(\eta, h) = 0,
\end{equation}
where $J(\eta, h)$ is the Jacobean of $h$ and $\eta$. If the Jacobean of two variables equals zero, it means that one may be written as a function of the other, \emph{i.e.}, $\eta=\eta(h)$. This may be demonstrated by substituting this relationship into the definition of the Jacobean, and using the chain rule
\begin{equation}
J(\eta(h), h) =
\frac{\partial \eta}{\partial x}\frac{\partial h}{\partial y}
- \frac{\partial \eta}{\partial y}\frac{\partial h}{\partial x} =
= \frac{\partial \eta}{\partial h}\frac{\partial h}{\partial x}\frac{\partial h}{\partial y}
- \frac{\partial \eta}{\partial h}\frac{\partial h}{\partial y}\frac{\partial h}{\partial x} = 0.
\end{equation}
If $\eta$ is a function of $h$, this implies that the contours of both of these must overlap, \emph{i.e.}, if $h=\mathrm{contant}$, then $\eta=\mathrm{constant}$ must be so as well.
Geostrophic flow follows contours of $\eta$. This may be demonstrated by using geometric arguments to define a streamfunction, $\psi$. If we define the streamfunction as
\begin{align}
\frac{\partial \psi}{\partial x} &= v \\
\frac{\partial \psi}{\partial y} &= - u
\end{align}
substitution into equation~\ref{eq:cont-steady} shows that this definition of the streamfunction automatically satisfies the continuity equation. Note that comparison of the streamfunction definition with equations~\ref{eq:u-geostrophic} and~\ref{eq:v-geostrophic} shows that $\eta$ and $\psi$ differ only by a constant, $g f^{-1}$, thus, contours of constant $\eta$ and constant $\psi$ overlap. A geometric argument showing that the flow follows constant values of the streamfunction is shown in figure~\ref{fig:streamfunction}
\begin{figure}[tb]
\centering
\includegraphics[width=6in]{streamfunction}
\caption{A geometric argument showing that flow follows constant values of the streamfunction, $\psi$.}
\label{fig:streamfunction}
\end{figure}
The flow is thus required to follow constant values of $\eta$, $\psi$, and $h$. The inability of the flow to cross bathymetric contours means that the flow may never change its thickness. In other words, columns of water are ridged, and may never be compressed or stretched. This is similar to the result derived in the previous section, that there is no vertical shear in the horizontal currents for frictionless flow. However, in the previous case, it was possible for flow to cross isobaths; as non-rotating flow enters shallow water, it will accelerate by continuity. Geostrophic flow, on the other hand, is unable to cross isobaths. However, geostrophic flow is still able to accelerate or decelerate according to the bathymetric gradients; as depth contours converge, the transport between these contours must remain constant, so the flow accelerate to maintain the same transport through a narrower cross-section. Flow on closed bathymetric contours, for example a seamount, will be isolated from the surrounding flow. This effect is often referred to as a \emph{Taylor column}\index{Taylor column}, where the vertical rigidity of geostrophic flow prevents onto or off of a localized shallow region.
Large-scale flow in the coastal ocean is very nearly geostrophic. However, as we have seen above, the equations are degenerate -- the geostrophic momentum equations automatically satisfy the continuity equation. Thus, actual solutions must be sought by examining the balance in smaller terms. While it is clear that geostrophy is the dominant, first-order balance for large-scale shelf circulation, there is not one single clear choice for what the second-order balance should be in all circumstances. For smaller scale processes, geostrophy looses its preeminence; it is common for flow very near shore or within an estuary to have a dominant balance that is not geostrophic.
\section{Potential vorticity}\index{Potential vorticity}
Conservation of potential vorticity is one of the most powerful concepts in geophysical fluid dynamics. For the shallow water equations, we will derive this for the linear shallow water equations, where the advective terms are excluded, but the time derivative terms are retained; this requires low Rossby number flow conditions. We will also, for now, consider a domain with constant depth, $h=H$. The starting point is then
\begin{align}
\frac{\partial u}{\partial t} - f v
&= -g\frac{\partial \eta}{\partial x} \label{eq:u-shallow-linear} \\
\frac{\partial v}{\partial t} + f u
&= -g\frac{\partial \eta}{\partial y} \label{eq:v-shallow-linear} \\
H\left(\frac{\partial u}{\partial x} + \frac{\partial v}{\partial y}\right)
+ \frac{\partial \eta}{\partial t}
&= 0. \label{eq:cont-shallow-linear}
\end{align}
To proceed, we will first take the curl of the momentum equations, and add them together. Notice, here, the pressure gradient terms cancel,
\begin{equation}
v_{xt} + f u_x - u{yt} + f v_y = \zeta_t - \frac{f}{H}\eta_t = 0
\end{equation}
where $\zeta = v_x - u_y$ is the curl of the velocity, and the continuity equation has been used to exchange the flow divergence for the time derivative of sea surface height. This is a statement of {\it conservation of potential vorticity}, or
\begin{equation}
\frac{\partial}{\partial t}\left(\frac{\zeta}{f} - \frac{\eta}{H} \right) = 0.
\label{eq:linear-pv-conservation}
\end{equation}
A more general form of potential vorticity conservation may be derived from the shallow water equations, including the advective terms and variations in bathymetry, as
\begin{equation}
\frac{D}{Dt} \left( \frac{f + \zeta}{h} \right) = 0 .
\label{eq:pv-conservation}
\end{equation}
This requires a more lengthy derivation, and it is sometimes easier to work both backwards from the final statement and forwards from the shallow water equations to prove this.
Consider quiescent flow in a region with constant bathymetric gradients, $h = H + h_y \Delta y$. The potential vorticity is then, assuming that $h_y\,\Delta y\,H^{-1} \ll 1$, approximately
\begin{equation}
\frac{f}{H} \left( \frac{1}{1 + h_y\,\Delta y\,H^{-1}} \right)
\sim \frac{f}{H}\left(1 - \frac{h_y\,\Delta y}{H}\right)
= \frac{f - f\,h_y\,H^{-1}\,\Delta y }{H}.
\end{equation}
Here, it is clear that $f h_y H^{-1}$ acts as a potential vorticity gradient term, similar to $\beta$ in the $\beta$-plane approximation used in large-scale ocean dynamics, $f=f_0+\beta y$. For our purposes here, we may ignore latitudinal differences in $f$; the primary potential vorticity gradients are those caused by topographic gradients. The potential vorticity gradient is then proportional to both the (constant) Coriolis parameter, $f$, and topographic gradients, $h_y$, and inversely proportional to the total depth, $H$. The ratio $h_y H^{-1}$ may be thought of as a percent change in depth per unit distance offshore. A depth profile with $h$ increasing exponentially offshore results in a constant ambient potential vorticity gradient.
Equations~\ref{eq:linear-pv-conservation} and~\ref{eq:pv-conservation} may be demonstrated to be essentially identical statements by considering a small perturbation to the water column thickness. Say a water column initially at rest (with $\eta=0$) is thickened slightly, such that $\eta' H^{-1}$ = 0.01 in equation~\ref{eq:linear-pv-conservation}, or $h' = 1.01 h$ in equation\ref{eq:pv-conservation} where $h'$ is the new, perturbed water column thickness. Conservation of potential vorticity requires that the initial and final values of potential vorticity are identical, for example,
\begin{equation}
\frac{\eta'}{H} - \frac{\zeta'}{f} = 0
\end{equation}
so that $\zeta' f^{-1} = 0.01$ for equation~\ref{eq:linear-pv-conservation}, or
\begin{equation}
\frac{f + \zeta'}{h'} = \frac{f}{h}
\end{equation}
so that $\zeta' f^{-1} = 0.01$ also for equation~\ref{eq:pv-conservation}.
Both statements of potential vorticity conservation are essentially just statements of conservation of total angular momentum -- the angular momentum associated with the vorticity of the flow (the {\it relative vorticity}) and the angular momentum associated with the rotation of the earth (the {\it planetary vorticity}). After all, we derived the conservation of potential vorticity equation by taking the curl of the horizontal momentum conservation equations.
%%%% Note, that we only consider vertical vorticity in either case, vorticity parallel to gravity.
%%%% is this due to the small aspect ratio or gravity? Check on this....
Consider a cylinder of water, with height $h$, radius $R$, and total mass $M$. The angular inertial, $I$, of this cylinder is $I=\frac{1}{2} M R^2$. The angular momentum, $L$ is then $L=I \omega=\frac{1}{2} M R^2 \omega$, where $\omega$ is the angular velocity or rotation rate. Now, if the fluid that comprises the cylinder is incompressible -- like water under the Bousinesq approximation -- mass conservation implies volume is also conserved, thus $V = h \pi R^2 = \mathrm{constant}$. Assuming that angular momentum is conserved, $L=\mathrm{constant}$, and eliminating $R$ from the volume and angular momentum equations, we get that $\omega h^{-1}=\mathrm{constant}$, or
\begin{equation}
\frac{D}{Dt}\left( \frac{\omega}{h} \right) = 0.
\end{equation}
If the the angular velocity, $\omega$ is replaced with the sum of the relative and planetary vorticity, equation\ref{eq:pv-conservation} is reproduced.
The origin of the relative vorticity term, $\zeta$, in the linear potential vorticity conservation equation~\ref{eq:linear-pv-conservation} came from the combination of the two time-derivative terms in the momentum equations. For the more general potential vorticity conservation equation~\ref{eq:pv-conservation}, the $\zeta$ term comes from both the time-derivative terms and the advective terms. As the dominant dynamical balance is geostrophic, these terms are generally considered to be small. Assuming that $\zeta=0$ implies geostrophic flow, as the flow is now vertically ridged and must follow bathymetric contours. The relative vorticity then represents (small) departures from geostrophy. Note that the ratio of the relative vorticity to planetary vorticity is the Rossby number\index{Rossby number!vorticity},
\begin{equation}
\frac{\zeta}{f} \sim \frac{U}{f L} = Ro.
\end{equation}
\section{The Adjustment Problem}\index{Adjustment problem}
\index{Adjustment problem:step}
In this section, three versions of the {\it adjustment problem} are considered. Adjustment problems are idealized case studies where flow at rest is impulsively changes, for example by removing a gate. While these problems to not represent an actual flow scenario -- there is no large gate at geophysical scales -- these problems offer considerable insight into nature of geophysical flow, and may be considered an idealized limit of many realistic flow phenomena.
\subsubsection{Step adjustment}
The problem of the adjustment of a single step in sea surface elevation is considered more thoroughly by \citet{gill:82}, Chapter 7. Gill discusses both the steady and non-steady solutions to the adjustment of a sea surface height step, here we will only consider the steady solution, the flow structure after the transients have all propagated far away from the initial step. The initial condition is a constant depth ocean at rest, $u=v=0$, with an initial sea surface distribution as
\begin{displaymath}
\eta_I =
\begin{cases}
- \eta_0 & : x < 0 \\
\eta_0 & : x > 0.
\end{cases}
\end{displaymath}
We will seek steady solutions to this initial condition using the linearized shallow water equations. The initial condition may be thought of as removing a gate separating fluids of different thicknesses, and the final condition is the structure of the sea surface after all of the transient waves have had time to propagate away. The final condition must be continuous in both sea surface elevation and velocity across the step. We will connect the initial and final conditions through conservation of potential vorticity,
\begin{equation}
\frac{\eta_I}{H} = \frac{\eta}{H} - \frac{\zeta}{f}.
\end{equation}
Now, as there are initially no gradients in the $y$-direction and no boundaries to create gradients, it may be assumed that $\frac{\partial}{\partial y}$ of any property is zero everywhere and always. Thus, the relative vorticity may be written
\begin{equation}
\zeta = v_x = \frac{g}{f} \eta_{xx}
\end{equation}
where the second relation comes about because the flow is geostrophic. Substitution of this relation into the conservation of potential vorticity equation gives rise to a second order differential equation
\begin{equation}
\label{eq:step_adjustment_field}
\frac{g\,H}{f^2} \eta_{xx} + \eta = \eta_I.
\end{equation}
which has two homogeneous solutions (exponential terms) and a particular solution ($\eta=\eta_I$), so that
\begin{equation}
\eta = A e^{x/R_d} + B e^{-x/R_d} + \eta_I
\end{equation}
where we have used the definition of the deformation radius
\begin{equation}
R_d = \frac{\sqrt{g\,H}}{f}.
\end{equation}
Note this solution must be solved separately for $x>0$ and $x<0$, for a total of four unknowns. We will use the matching conditions ($u|_{x=0^+} = u|_{x=0^-}$ and $\eta|_{x=0^+} = \eta|_{x=0^-}$) and the requirement that $\eta|_{x=\pm\infty}$ must be bounded as our four boundary conditions to solve the four unknown constants, $A_{\pm}$ and $B_{\pm}$, to get the final solution
\begin{displaymath}
\eta =
\begin{cases}
\eta_0\,e^{x/Rd} - \eta_0 & : x < 0 \\
\eta_0 - \eta_0\,e^{-x/Rd} & : x > 0 .
\end{cases}
\end{displaymath}
The corresponding velocity profile may be calculated from the geostrophic balance
\begin{displaymath}
v =
\begin{cases}
\eta_0\sqrt{\frac{g}{H}}\,e^{x/Rd} & : x < 0\\
\eta_0\sqrt{\frac{g}{H}}\,e^{-x/Rd} & : x > 0.
\end{cases}
\end{displaymath}
This solution shows that the initial step in the sea surface slumps over a region characterized by the deformation radius. An jet-like flow forms at the location of the initial step, also with a width characterized by the deformation radius. Through this example, we see that the natural scales of a rotating system are the deformation radius, and persistent circulation features in the ocean have horizontal scales of the deformation radius or greater.
\begin{figure}[tb]
\centering
\includegraphics[width=5in]{tophat}
\caption{The initial condition for the localized feature adjustment problem, with the two step conditions that may be added to create the localized initial condition. Summing the final condition for the two step conditions will then result in the final solution for the localized feature.}
\label{fig:tophat}
\end{figure}
\subsubsection{Tophat adjustment}
\index{Adjustment problem:step}
The solution for an initial step for a non-rotating fluid will eventually produce a flat sea surface, \emph{i.e.}, all of the potential energy will be lost from the system. A fundamental difference in the rotating system is that the potential energy is largely maintained within the system. To explore this further, let us consider a slightly more complicated initial configuration, one in which a localized region with a width of $2a$ is raised $2\eta_0$ above an otherwise flat, quiescent sea. A diagram of this configuration is shown in figure~\ref{fig:tophat}. Note that the solution of this initial condition may be derived as the superposition of two laterally solutions to the initial step problem; this is also shown in figure~\ref{fig:tophat}. The solution now has two initial step points, and thus three regions in which to calculate the solution. The sea surface is given by
\begin{displaymath}
\label{eq:tophat-solution}
\eta =
\begin{cases}
\eta_0 \left( e^{(x+a)/Rd} - e^{(x-a)/Rd} \right) & : x < -a \\
\eta_0 \left( 2 - e^{-(x+a)/Rd} - e^{(x-a)/Rd} \right) & : -a < x < a \\
\eta_0 \left( -e^{-(x+a)/Rd} + e^{-(x-a)/Rd} \right) & : x > a .
\end{cases}
\end{displaymath}
From this relationship, we can calculate the amount of potential energy retained in the system relative to the initial potential energy. Here the potential energy at a point is defined as $PE = \rho_0\,g\,z$. Integrating this vertically, from the sea floor to the sea surface gives
\begin{equation}
\int_{-H}^{\eta} PE\,dz = \frac{1}{2}\rho_0\,g ( \eta^2 - H^2).
\end{equation}
However, we will only be concerned with the {\it available potential energy}. There is a very large reservoir of potential energy, associated with the $H^2$ term, that is constant in time and is not available for conversion to kinetic energy. We will define the potential energy of the ocean with $\eta=0$ as as our reference, the and subtract it from our potential energy to get
\begin{equation}
APE = \int_{-H}^{\eta} PE\,dz - \int_{-H}^{0} PE\,dz = \frac{1}{2}\rho_0\,g \eta^2.
\end{equation}
This expression can be integrated across the feature in the $x$-direction to an expression of the available potential energy per unit length of the feature (in the $y$-direction). Initially, this is simply $\int_{-\infty}^{\infty} APE\,dx = 4 \rho_0\,g\,a\,\eta_0^2$. The final $APE$ may also be calculated by integrating $\eta^2$ from equation~\ref{eq:tophat-solution}. If this result is then normalized by the initial $APE$, the percentage of the potential energy retained follows the relation
\begin{equation}
\frac{APE_{\mathrm{Final}}}{APE_{\mathrm{Initial}}} = 1 - \frac{3}{2a'} + \left( \frac{1}{2} + \frac{3}{2a'} \right) e^{-a'}
\end{equation}
where $a' = 2 a R_d^{-1}$, \emph{i.e.}, the total initial width of the feature normalized by the deformation radius\footnote{See the \emph{Mathematica} notebook {\tt tophat\_adjustment.nb} in the supplementary materials.}. This solution is shown in figure~\ref{fig:APE_tophat}.
% The limits of this equation are require L'Hospital's rule; note $(e^{-a'} - 1) a^{-1}|_{a'=0} = 1$.
The percentage of the $APE$ retained when the feature width is much smaller than the deformation radius is zero. This makes sense: a glass of water poured into the ocean will not create a permanent feature. On the other hand, essentially all of the $APE$ is retained when the feature is initially much larger than the deformation radius. Thus, very large features are persistent in the ocean. For a feature that is initially exactly the width of the deformation radius ($2 a = R_d$), the final state retains about~24\% of the initial $APE$.
\begin{figure}
\centering
\includegraphics[width=4.0in]{APE_tophat}
\label{fig:APE_tophat}
\caption{The percentage of available potential energy retained in the final state, relative to the initial state as a function of the initial width of the feature for the tophat adjustment problem.}
\end{figure}
\subsubsection{Impulsive adjustment}
\index{Adjustment problem:impulse}
The final adjustment example shows how flow may be generated by forced lateral motion, similar to the way a conductor passing through a magnetic field generates current. Consider a movable barrier oriented parallel to the $x$-axis in an ocean at rest. As before, since there are no initial gradients or obstacles in the $x$-direction, we will assume that no gradients of any property develop in the $x$-direction. The barrier acts as a piston, and pushes into the ocean a distance $\Delta y$. To solve for the structure of the flow, we require a Lagrangian view of the fluid parcels touching the barrier, noting that the velocity of water at the wall is $v = D \Delta y /Dt$,
\begin{equation}
\frac{Du}{Dt} - fv = \frac{D}{Dt}\left( u - f\,\Delta y \right) = 0 \; .
\end{equation}
Integrating in time from a state of rest gives
\begin{equation}
\label{eq:u_soln_impulse}
u|_{y=\Delta y} = f\,\Delta y,
\end{equation}
thus a flow is generated along the edge of the barrier. Since the potential vorticity of the fluid must be conserved, the solution of the flow seaward of the barrier is very similar to that already derived for the initial step. Noting that far from the wall, the steady solution is $\eta|_{y\rightarrow\infty}=0$, the solution to equation~\ref{eq:linear-pv-conservation} is
\begin{equation}
\eta = \eta_0 e^{-y/R_d} \; .
\end{equation}
with an associated velocity field
\begin{equation}
u = \frac{g}{f}\eta_x = \eta_0 \sqrt{\frac{g}{H}} e^{-y/Rd}
\end{equation}
Now, we can determine the sea level at the coastal wall, $y = \Delta y$, using equation~\ref{eq:u_soln_impulse},
\begin{equation}
\eta|_{y=\Delta y} = \frac{\Delta y\,H}{R_d}
\end{equation}
Note, that integrating the sea-level from the coastal wall outward, gives
\begin{equation}
\int_{\Delta y}^{\infty} \eta\,dy = \Delta y\, H
\end{equation}
which is exactly the volume of water that was displaced by the motion of the wall. The moving barrier pushes water into the coastal ocean, but this excess water is trapped near to the coast, with a trapping scale of the deformation radius. Thus, both the amplitude of the sea level and the magnitude of the coastal jet are proportional to the magnitude of the barrier displacement.
\section{The Kelvin Wave}\index{Kelvin wave}
In this section, we will consider the most basic coastal wave. The domain is a coastal region of constant depth, bounded on one side by a straight coastal wall oriented along the $x$-axis such that the offshore direction is in the positive $y$-direction. We will use the linearized shallow water equations, but will retain time dependence. The primary assumption is that the coastal constraint, no normal flow at the wall, or $v|_{y=0} = 0$, influences flow throughout the ocean, such that $v=0$ everywhere. The governing equations under these simplifying assumptions are then
\begin{align}
\frac{\partial u}{\partial t} &= -g\frac{\partial \eta}{\partial x} \label{eq:u-kelvin} \\
f u &= -g\frac{\partial \eta}{\partial y} \label{eq:v-kelvin} \\
H\ \frac{\partial u}{\partial x} + \frac{\partial \eta}{\partial t} &= 0. \label{eq:cont-kelvin}
\end{align}
Equations~\ref{eq:u-kelvin} and~\ref{eq:cont-kelvin} may be combined, by eliminating $u$, to form the classic (non-rotating) shallow water wave equation, $\eta_{tt} = c^2 \eta_{xx}$. Thus, very generally, we expect solutions to behave like shallow water gravity waves in the along-shore ($x$-) direction, with a phase speed of $c=\sqrt{g\,H}$. The general form of the wave equation is
\begin{equation}
\label{eq:wave-solution-kelvin}
\eta = F_+(y) \phi_+(x - c t) + F_-(y) \phi_-(x + c t) = F_\pm(y) \phi_\pm(x \mp c t)
\end{equation}
The two {\it cross-shore structure functions}, $F_\pm(y)$, act as wave amplitudes for the two waves propagating in the $\pm x$-direction, and are still unknown. The `plus' solutions represent waves propagating in the positive $x$-direction (later, we will call this direction {\it downcoast}), the `minus' solutions propagate in the negative $x$-direction ({\it upcoast}). The waveforms follow {\it characteristics}, lines of constant phase, which are the arguments to the two wave solutions $\xi_\pm = x \mp c t$.
Now, combining the equations~\ref{eq:v-kelvin} and~\ref{eq:cont-kelvin}) by eliminating $u$ from both equations gives
\begin{equation}
\label{eq:F-solution-kelvin}
\frac{g H}{f} \eta_{x y} = \eta_t
\end{equation}
Plugging in our general solution form (equation~\ref{eq:wave-solution-kelvin}) into this differential equation gives for each wave propagation direction separately gives
\begin{align}
\frac{g H}{f} \frac{\partial F_\pm}{\partial y} \phi_\pm' = \mp c \,F_\pm\,\phi_\pm'
\end{align}
Now, $\phi_\pm'$, the derivative with respect to the characteristic, $\xi=x \pm c t$ may be eliminated from both sides, to get a differential equation that defines the cross-shore structure function
\begin{equation}
\label{eq:F-eqn-kelvin}
\frac{\sqrt{gH}}{f} \frac{\partial F_\pm}{\partial y} = \mp F_\pm \; ,
\end{equation}
with solutions
\begin{equation}
F_\pm = N_0 e^{\mp y / Rd}.
\end{equation}
For solutions to remain finite as $x \rightarrow \infty$, only the decaying solution is valid.
Although this is a very simple solution obtained under very restrictive assumptions, there are three aspects of this solution that are general to many other coastal wave problems. First, this solution is associated with the positive characteristics, or the `plus' solution with waves traveling in the positive $x$-direction. Waves traveling in the negative $x$-direction result in cross-shore structure functions that are unbounded, and are thus not permitted. The cross-shore structure function thus constrains the waves to travel in only one direction. This direction is the positive-$x$ direction in this example, but is generally a wave traveling with the coast to the right of the wave propagation direction in the northern hemisphere. Coastal waves travel with the coast on their left in the southern hemisphere. This direction is referred to as downcoast, the Kelvin wave propagation direction, or the shelf wave propagation direction. Thus, information carried by large-scale waves about forcing conditions, a storm for example, travels downcoast with few exceptions.
Second, the waves are also bounded to the coast, or \emph{coastally trapped}, with maximum values of sea surface elevation at the coastal wall decaying offshore with characteristic scales of the deformation radius. The flow is similarly bounded, such that the strongest currents are at the coast. Note that equation~\ref{eq:v-kelvin} asserts that the along-shore flow, $u$, is geostrophic; the cross-shore flow was assumed to be zero. The fact that these waves are trapped near the coast means that the Kelvin wave does not influence the circulation in the interior of the ocean, far ($y \gg R_d$) from the coastal wall.
Third, the general approach to the solution, assuming wave-like solutions in the along-shore direction, modulated by some cross-shore structure function that decays in the offshore direction is the typical approach for understanding periodic coastal flows. With the inclusion of bathymetric variations, for example, there can be a series of cross-shore structure functions that solve the equation (cross-shore {\it modes} -- the Kelvin wave solution has only one mode). In this case, the phase speed of each mode is related to the eigenvalue associated with that mode, such that different modes propagate at unique speeds. However, the general form of the solution is identical: a decaying function in the cross-shore direction modulating a wave-like solution in the along-shore direction.
An alternate derivation approach directly assumes a periodic solution with a specified wavenumber, $k$, in the along-shore direction; this often simplifies the derivation. Let us assume a form of the solution
\begin{equation}
\eta = F(y) e^{i(k x - \omega t)}
\end{equation}
We can plug this solution directly into equation\ref{eq:F-solution-kelvin}, and get
\begin{equation}
\frac{g H}{f} k F_y = -\omega F
\end{equation}
Recall that $\pm \omega k^{-1} = \pm c = \pm \sqrt{g H}$ is the phase speed for shallow water gravity waves. So, this equation reduces to
\begin{equation}
\pm R_d F_y = - F
\end{equation}
which can be seen to be identical to equation~\ref{eq:F-eqn-kelvin}. The only difference here is then that a particular wavenumber is chosen, so that the along-shore wave motions are sinusoidal, rather than a general waveform. However, the waves are non-dispersive -- all wavenumbers travel at the same speed, $c=\sqrt{g H}$ -- an a general waveform may be constructed from a set of sinusoidal waveforms using Fourier decomposition.
\section{Divergence : Curl :: Waves : Vorticity}
We have seen in the two preceding examples, that we may find two classes of governing equations. The general approach of eliminating the velocity variables to create a single equation in $\eta$ has two possible paths. First, we can take an $x$-derivative of the $u$-momentum equation, a $y$-derivative of the $v$-momentum equation, and add these two equations. This is similar to taking the {\it divergence} of the momentum equations. There will be a flow divergence term resulting from the two acceleration terms that may exchanged using the continuity equation resulting in a $\eta_{tt}$ term. The pressure terms here take a laplacian form. Thus, taking the divergence of the momentum equations results in a wave-like equation, possibly with extra terms, depending on the assumptions made.
The other path is to take the {\it curl} of the momentum equations -- the $x$-derivative of the $v$-momentum equation minus the $y$-derivative of the $u$-momentum equation. In this case, the pressure terms cancel because $\nabla \times \nabla \phi = 0$. A divergence term is created from the two Coriolis terms, and this is exchanged using the continuity equation. Taking the curl of the momentum equations results in a vorticity balance equation.
\section{A jet impinging on a coastal wall\\
\normalsize\citet{whitehead:85}}
\index{Jet!Impinging}
\begin{figure}[tb]
\centering
\includegraphics[width=6.5in]{impinging-jet}
\caption{The configuration of a jet impinging on a coastline, and the control volume used in the analysis of the resulting flow. Note the angle, $\alpha$, shown in the figure is negative.}
\label{fig:impinging-jet}
\end{figure}
Consider a geostrophic, barotropic jet, perhaps similar to the solution for the step adjustment problem, impinging on a coastal wall. This example is based on a study by \citet{whitehead:85}, the primary difference being he examined a baroclinic jet, which is slightly more complicated. We will examine the structure of the flow after the jet has come into contact with the wall by using a control volume approach. A diagram of this configuration is shown in figure~\ref{fig:impinging-jet}. We will assume the flow at the boundaries of the control volume is geostrophic, however, we allow for the possibility that the flow is non-linear within the control volume. Also, as we will perform a momentum balance over this region, the advection of momentum in and out of the control volume will be critical in determining the evolution of the flow, thus, for this analysis the advective terms are retained. For simplicity, however, we will only consider steady solutions. Our governing equations are then
\begin{align}
u u_x + v u_y - f v &= g \eta_x \label{eq:jet-u}\\
u v_x + v v_y + f u &= g \eta_t \label{eq:jet-v}\\
u_x + v_y &= 0. \label{eq:jet-continuity}
\end{align}
We will define a transport streamfunction, $\psi$, such that
\begin{equation}
\psi_x = H v \quad ; \quad \psi_y = - H u.
\end{equation}
Note, that for geostrophic flow, but only for geostrophic flow, the streamfunction is proportional to the sea surface elevation, plus an integration constant, $\psi_0$
\begin{equation}
\label{eq:eta_psi}
\psi = \frac{g\,H}{f}\eta + \psi_0 \; .
\end{equation}
We are free to choose this integration constant, as the transport only depends on gradients of the streamfunction. This integration constant is set to zero, $\psi_0 = 0$, so that $\eta=0$ regions are associated with $\psi=0$ regions.
The transport between two values of the stream function is constant, and depends only on the difference between the two streamfunction values, no matter how closely spaced or far apart these streamfunction contours are, since
\begin{equation}
H \int_{\beta}^{\gamma} v\, dx = \psi\bigg|_{\gamma} - \psi\bigg|_{\beta}.
\end{equation}
A similar relation is also true for sea surface elevation, but only when the flow is geostrophic.
Using the continuity relation to rearrange the advective terms, and substituting streamfunction gradients for the velocity in the Coriolis terms, we get
\begin{align}
(u^2)_x + (u v)_y - \frac{f}{H} \psi_x &= -g \eta_x \\
(u v)_x + (v^2)_y - \frac{f}{H} \psi_y &= -g \eta_y.
\end{align}
Integrating the first equation, the $x$-momentum equation, over the control volume,
\begin{equation}
\int_{-a}^a \int_0^b (u^2)_x + (u v)_y - f H^{-1} \psi_x + g \eta_x\;dx\,dy = 0.
\end{equation}
gives
\begin{equation}
\int_0^b u^2 - f H^{-1} \psi + g \eta\;dy \bigg|_{x=-a}^a + \int_{-a}^{a} u v\;dx \bigg|_{x=0}^b = 0
\end{equation}
If we assume that, at $x=\pm a$ there is no flow normal to the coast, and that there are no along-shore gradients, the flow there must be geostrophic by equation~\ref{eq:eta_psi}, thus the $\eta$ and $\psi$ terms cancel. Also, there is no flow normal to the wall at the coast, $v|_{y=0} = 0$, leaving,
\begin{equation}
\int_0^b u^2 \;dy \bigg|_{x=a}
- \int_0^b u^2\;dy \bigg|_{x=-a}
+ \int_{-a}^{a} u v\;dx \bigg|_{y=b} = 0 \; .
\end{equation}
This statement requires that the integrated momentum flux through all of the open boundaries must balance. The sign of each integral is set totally, for the first two terms, and in part, for the third term, by the direction of integration. The conservation of along-shore momentum is more clearly stated if we set each integral such that the order of integration represents a positive momentum flux out of the control volume, \emph{i.e.}, integrating counter-clockwise around the control volume,
\begin{equation}
\underbrace{\int_0^b u^2 \;dy \bigg|_{x=a}}_{\mathrm{Downcoast~outgoing}}
+ \underbrace{\int_b^0 u^2\;dy \bigg|_{x=-a}}_{\mathrm{Upcoast~outgoing}}
= \underbrace{\int_{a}^{-a} u v\;dx \bigg|_{y=b}}_{\mathrm{Offshore~incoming}} \; .
\end{equation}
Notice that the advective terms are essential to this balance -- if the derivation is followed backwards, all three remaining terms in the final momentum balance can be seen to have originated in the advective terms.
Now, let us apply this balance to an arbitrary jet flowing in towards the coast, potentially at some angle, $\alpha$, skew to perpendicular. Because the flow is geostrophic at the entry and exit points, the flow at a particular value of the streamfunction must have the same structure -- the same relative vorticity and sea surface elevation. Thus, the presence of the coast splits the jet, but the branches of the jet eventually retain their original structure, with one branch exiting in the positive $x$-direction, and one branch exiting in the negative $x$-direction. We can re-write the incoming flow in terms of a new coordinate, $\xi$, normal to the flow direction, defined as $\xi = x\,\mathrm{cos}(\alpha)$, where $\alpha$ is the angle between the two coordinates, $\xi$ and $x$. This relation is a consequence of the fact that the span of the current in the $x$-direction is larger than it is in the $\xi$-direction for non-zero $\alpha$. If we define the incoming flow, $\hat{v}$, is a function only of $\xi$, we can write the inflowing momentum as
\begin{equation}
\int_{-a}^{a} u v\;dx =
\int_{-a}^{a} (\hat{v}\mathrm{sin}(\alpha))
(\hat{v}\mathrm{cos}(\alpha))\;\frac{d\xi}{\mathrm{cos}(\alpha)}
= \mathrm{sin}(\alpha) \int_{-a}^{a} \hat{v}^2\;d\xi.
\end{equation}
Next we need to determine the point in the incoming flow distribution that defines the point where the jet will split. Because there is no flow normal to the coastline, the streamfunction along the coast is constant, since $\psi_x|_{y=0} = v|_{y=0} = 0$. This coastal streamfunction is also the streamfunction that bisects the jet. The reason that the streamfunction must be used to define this bifurcation point, instead of simply using $\eta$, is that the streamfunction may be guaranteed to be constant along the coastal wall, but $\eta$ is only constant if the flow is purely geostrophic. In other words, $\eta$ is not expected to be constant along the wall in the region where the jet hits the wall. We may follow the coastal streamfunction value from the wall all the way up to the incoming geostrophic current, and as values of the streamfunction cannot cross for non-divergent flow this streamfunction separates the upcoast and downcoast flows. Dividing the flow with respect to transport would not depend on the structure of the flow, a particular streamline divides the transport proportionally to the distance between the endmember streamfunctions that define the boundaries of the jet. Here, we need to divide the flow with respect to momentum, \emph{i.e.}, $u^2$ instead of $u$, and this does depend on the details of the flow structure.
Since the (single) incoming and two outgoing jets are geostrophic, we know that the streamfunction is directly proportional to the sea level elevation, $\eta$. This means that the streamfunction and sea level elevation at the bifurcation point in the inflowing jet, and along the coast for the two outflowing jets are all identical, as $\psi$ is the same at all those locations. In all cases the far-field conditions for both $\eta$ and $\psi$ are also shared between each side of the inflowing jet and the corresponding outflowing jet. Because the flow is geostrophic, the relative vorticity may be written as $\zeta = g f^{-1} \nabla^2 \eta$. Thus for each side of the inflowing jet, and each branch of the outflowing jets, we may write a boundary value problem in $\eta$, similar to equation~\ref{eq:step_adjustment_field}, based on the values either at the bifurcation point or along the coastal wall and the far field. As the governing equations and boundary conditions are identical, it follows that the flow must have the same structure for each side of the incoming jet, and the corresponding outflow.
Because the structure of the flow is retained through the split -- at least in the outer regions where geostrophic flow may be assumed -- the axis perpendicular to the flow may be simply rotated to direct the incoming flow to be along-shore. So, we can define the branch point with the equation using a single coordinate to define the the flow profiles,
\begin{equation}
\int_{-a}^\Xi \hat{v}^2 \;d\xi - \int_\Xi^a \hat{v}^2\;d\xi = \mathrm{sin}(\alpha) \int_{-a}^{a} \hat{v}^2\;d\xi,
\end{equation}
and solve for $\Xi$, the point in the velocity profile where the flow will split. This is straightforward to solve numerically for arbitrary flow profiles. From this, the streamfunction and sea surface elevation structure of the two branches leaving the control volume may also be calculated. Listing~\ref{lst:bifurcation}The following code calculates the bifurcation point.
\begin{lstlisting}[float=tp,
caption={Numerical solution to find bifurcation point in a flow profile. See {\tt split\_jet.py} for the full code.},
label=lst:bifurcation]
# An illustration of how to calculate the bifurcation point in a flow profile
# given the velocity, vhat, defined along the cross-flow coordinate, xi.
ip = np.trapz(vhat**2, xi) # The total, integrated momentum
# Calculate the momentum at each point along the flow profile
ipi = np.empty_like(xi)
for n in range(1, len(xi)):
ipi[n-1] = np.trapz(vhat[:n]**2, xi[:n])
ipi[n] = np.trapz(vhat**2, xi)
# Find the mid-point of the momentum profile, adjusted for the angle
# of the flow, alpha, such that the bifurcation point is defined by
# ipi=0
ipi -= 0.5 * (1 - np.sin(alpha)) * ip
# Find the lowest index with positive ipi
idx = np.argwhere(ipi >= 0)
# Now, find the bifurcation point, xo
if idx is None:
xo = xi[-1] # all transport goes right
i = idx.min()
if i == 0:
xo = xi[0] # all transport goes left
# Linearly interpolat between the ipi points on either side of ipi=0
# to calcualte the exact position of the bifurcation, xo
yu = ipi[i]
yl = ipi[i-1]
xu = xi[i]
xl = xi[i-1]
xo = xl - (xu-xl)*yl/(yu-yl)
\end{lstlisting}
\subsection*{Further reading}
See problem~\ref{prob:step_wall_adjustment} for a comparison between non-linear solutions of a jet impinging on a wall, and combination of linear step adjustment and Kelvin wave solutions.\\
\noindent
Pichevin, T. and Nof, D. (1997). The momentum imbalance paradox. \emph{Tellus}, {\bf 49}A:298--319.\nocite{pichevin.nof:97}
\section{Frictional effects on vorticity}\index{Potential vorticity!Friction}
Normally, in fluid mechanics, boundary stresses are defined using the quadratic drag law, \emph{e.g.}, $\tau = c_D\,\rho\,u^2$. The along-shore surface wind stress\footnote{{\it Kinematic stress} is used throughout for the surface wind stresses, $X$ and $Y$, with units of velocity squared, or m$^2$~s$^{-2}$. Internal stresses, $\tau$, are defined as the {\it dynamic stresses}, with units of N~m$^{-2}$. These quantities are related; the kinematic stress is simply the dynamic stress divided by the reference water density, $\rho_0$.}, for example, is defined as
\begin{equation}
X = \frac{\tau_{\mathrm{surface}}^{x}}{\rho_0} = c_D\, (\frac{\rho_{\mathrm{air}}} {\rho_0})\,|\mathbf{u}_{\mathrm{wind}}| u_{\mathrm{wind}} \; .
\end{equation}
Notice, for wind stress only only, the ratio of the air density, $\rho_{\mathrm{air}}$, to water density, $\rho_0$, since the \emph{dynamic} wind stress is determined by the density of air, $c_D\,\rho_{\mathrm{air}}|\mathbf{u}_{\mathrm{wind}}| u_{\mathrm{wind}}$. For bottom stress,
\begin{equation}
\frac{\tau_{\mathrm{bottom}}^{x}}{\rho_0} = c_D\, |\mathbf{u}_{\mathrm{near-bottom}}| u_{\mathrm{near-bottom}} \; .
\end{equation}
Technically, we should define the surface stress as the velocity differential between the air and water. However, the wind stress is usually assumed to be specified by the wind speed alone -- an independent, specified forcing parameter -- since current speeds are typically so much smaller than wind speeds, so that the water may simply be considered to be stationary in the stress calculation. The bottom stress, however, is proportional to the flow speed, which is part of the solution. In order to ensure mathematically tractable problems, the bottom stress is often defined in simple analytical models as a linear stress, \emph{e.g.}, $\tau_{\mathrm{bottom}}^{x} \rho_0^{-1} = r\,u$, where $r$ is a linear friction coefficient. The relationship between the linear and quadratic drag laws is then $r \simeq c_D u'$, where $u'$ represents high-frequency currents, unresolved by the model (\emph{e.g.}, tides), and is considered to be a specified parameter. Typical values for $c_D$ are 1-3$\times$10$^{-3}$, and typical values for $r$ are 1-5$\times$10$^{-4}$~m~s$^{-1}$. (Note, $c_D$ is non-dimensional, but $r$ is dimensional). The vertically averaged stress terms in the momentum equations, $X h^{-1}$ and $r u h^{-1}$, arrises because the average vertical stress divergence, $(h \rho_0)^{-1} \int_{-h}^{\eta} (\tau_z)_z\,dz$ is a perfect integral, resulting in the difference between the surface and bottom stress terms divided by the total depth, $h+\eta \simeq h$. Because of the small aspect ratio of the coastal ocean, we will ignore horizontal stresses for simplicity and only consider vertical stresses.
Let us revisit our derivation of the potential vorticity equation, done for the step adjustment problem, but this time, add bottom friction. The governing equations are
\begin{align}
\frac{\partial u}{\partial t} - f v
&= -g\frac{\partial \eta}{\partial x}
+ \frac{X}{H} - \frac{r u}{H} \label{eq:u-shallow-linear-drag} \\
\frac{\partial v}{\partial t} + f u
&= -g\frac{\partial \eta}{\partial y}
+ \frac{Y}{H} - \frac{r v}{H} \label{eq:v-shallow-linear-drag} \\
H\left(\frac{\partial u}{\partial x} + \frac{\partial v}{\partial y}\right)
+ \frac{\partial \eta}{\partial t}
&= 0. \label{eq:cont-shallow-linear-drag}
\end{align}
Following the same approach of taking the curl of the momentum equations, and substituting for the flow divergence using continuity, we arrive at
\begin{equation}
\frac{\partial}{\partial t} \left( \frac{\zeta}{f} - \frac{\eta}{H} \right) =
\frac{1}{f H} \left( \nabla\times\mathbf{X} - r \zeta \right)
\end{equation}
where $\nabla\times\mathbf{X}$ is the curl of the wind stress. Thus, potential vorticity is not conserved in the presence of friction. A positive wind stress curl is associated with positive vorticity, and a depressed sea surface, this can be seen by imagining a divergent surface Ekman transport. However, in coastal ocean dynamics, we typically ignore the wind stress curl. Bottom friction reduces the magnitude of potential vorticity, and fills in or erodes local sea surface maxima. This can be seen by considering the fact that bottom Ekman layer transport is toward the minimum for a local depression, and away from the maximum for a local high. As the sea surface extremes are reduces, the associated geostrophic flow is also reduced, corresponding to a reduction in potential vorticity magnitude.
It is typically assumed that the effects of friction are limited to a thin surface and bottom boundary layer of thickness $\delta = \sqrt{\kappa\,f^{-1}}$. In the interior of the water column, frictional effects are considered to be negligible; this is referred to as the {\it geostrophic interior}. However, near the coast, as the bathymetry shoals, the surface and bottom boundary layers will eventually merge, and friction will become dominant throughout the water column. This region is referred to as the {\it coastal boundary layer}.
\section{The Arrested Topographic Wave\\
\normalsize\citet{csanady:78}}
\index{Arrested topographic wave}
In this section, we will consider the steady state response of the ocean to a steady wind stress. To ensure that currents do not accelerate without bound in response to the wind forcing, bottom friction must also then be included. In practical terms, neither the forcing nor the response needs to be perfectly steady, but must have timescales much, much longer than the inertial period, $\partial/\partial t \sim \omega \ll f$. In other words, approximately steady for timescales of a few days or longer.
The steady shallow water equations, including both surface and bottom stresses are then
\begin{align}
- f v &= -g\frac{\partial \eta}{\partial x} + \frac{X}{h} - \frac{r u}{h} \label{eq:u-atwi} \\
f u &= -g\frac{\partial \eta}{\partial y} + \frac{Y}{h} - \frac{r v}{h} \label{eq:v-atwi} \\
\frac{\partial}{\partial x} (u h) + \frac{\partial}{\partial y} (v h) &= 0. \label{eq:cont-atwi}
\end{align}
We will assume that along-shore length scales are much longer than cross-shore length scales, $L_x \gg L_y$, typical for most continental shelves, and an assumption in all of the following examples. This can also be written as $ k \sim \partial/\partial x \ll l \sim \partial / \partial y$, where $k$ and $l$ are the along- and cross-shore wavenumbers, respectively.
The cross-shore momentum balance, equation~\ref{eq:v-atwi} is usually assumed to be in geostrophic balance, so that the two frictional terms are neglected in the cross-shore balance. No such simplification is possible in the along-shore balance, equation~\ref{eq:u-atwi}. This is because $u$ is assumed to be much larger than $v$, in particular,
\begin{equation}
\frac{v}{u} \sim \frac{L_y}{L_x} \ll 1.
\end{equation}
If we assume that all of the terms in the along-shore equation are similar in magnitude, this implies that $f v h (r u)^{-1} \sim \mathcal{O}(1)$, which then requires $f u h (r v)^{-1} \sim L_x^2 L_y^{-2} \gg 1$. Thus, we can neglect the bottom friction term in the cross-shore equation. Assuming that the along-shore flow is in geostrophic balance with cross-shore sea surface gradients is very common in coastal dynamics problems; this assumption will be made in nearly all of the following examples as well. That is, we will assume cross-shore wind stress is small compared to the two geostrophic terms, $Y h^{-1} \ll fu$. Of course, since $Y$ is a specified forcing parameter, it cannot be {\it a priori} be eliminated through scaling. However, the geostrophic terms, $fu$ and $\eta_x$, are both considered `large' terms in the scaling, and frictional terms are generally considered `small,' so there is some motivation for neglecting $Y$. Ignoring cross-shore wind stress in the cross-shore momentum balance will be addressed in more detail in the next section on the wind-forced Kelvin wave by comparing along- and cross-shore forcing more explicitly to provide motivation for this assumption.
We will assume that the atmospheric forcing is isotropic, that is the along- and cross-shore scales of the wind are similar, and both very large. It will be this forcing scale that determines the shelf response to the wind, and will in part determine the along-shore scales of the flow. So, while along-shore gradients in wind forcing may be important, we will neglect cross-shore gradients in wind forcing. The shelf is assumed to be much narrower than the atmospheric forcing scales, and the along-shore wind may be considered to be uniform in the cross-shore direction. In other words, we will neglect the wind stress curl. While wind stress curl is an important aspect of wind forcing in the open ocean (\emph{e.g.}, Ekman pumping) wind stress curl is generally not considered important in coastal ocean dynamics. Rather the divergence of Ekman transport at the coast -- coastal upwelling and downwelling -- provides the principal forcing mechanism in wind-driven coastal circulation.