Dynamics II
Lecture: May 4, 2026 (Monday), 14:00 Prof. Dr. Gerrit Lohmann
It is all about rotation
\[ \underline{D_t \Theta_d \quad = \frac{\partial \Psi_d}{\partial x_d} + \nabla_d^2 \Theta_d \quad} \]
Galerkin approximation: Get a low-order model
\[ \mbox{ Saltzman (1962): Expand } \Psi, \Theta \mbox{ in double Fourier series in x and z: } \]
\[ \Psi (x,z,t) \, = \, \sum_{k=1}^\infty \sum_{l=1}^\infty \Psi_{k,l} (t) \, \, \sin \left(\frac{k \pi a}{H} x \right) \, \times \, \sin \left(\frac{ l \pi}{H} z \right) \] \[ \Theta (x,z,t) \, = \, \sum_{k=1}^\infty \sum_{l=1}^\infty \Theta_{k,l} (t) \cos \left(\frac{k \pi a}{H} x \right) \, \times \, \sin \left( \frac{l \pi}{H} z \right) \]
From partial differential equations to ordinary differential equations for \(\Psi_{k,l}(t)\) and \(\Theta_{k,l}(t)\).
Approximation: Just 3 Modes X(t), Y(t), Z(t)
\[ \frac{a}{1+a^2} \, \kappa \, \Psi = X \sqrt{2} \sin\left(\frac{\pi a}{H} x \right) \sin\left(\frac{\pi}{H} z \right) \]
\[ \pi \frac{R_a}{R_c} \frac{1}{\Delta T} \, \Theta = Y \sqrt{2} \cos\left(\frac{\pi a}{H} x\right) \sin\left(\frac{\pi}{H} z \right) - Z \sin\left(2 \frac{\pi}{H} z \right) \]
Rayleigh number Ra: Buoyancy & Viscosity
\[ \mbox{Motion develops if } \quad R_a = \frac{g \alpha H^3 \Delta T}{\nu \kappa} \quad \mbox{exceeds a critical } \quad R_c \]
As the Rayleigh number increases, the gravitational force becomes more dominant. The critical Rayleigh number can be obtained analytically for a number of different boundary conditions by doing a perturbation analysis on the linearized equations in the stable state.
\(R_c = \pi^4 \frac{\left(1+a^2\right)^3}{a^2} = \pi^4 \frac{27}{4}= 657.51\) with \(a^2 = 1/2\)
\[\mbox{When } R_a < R_c,\mbox{ heat transfer is due to conduction} \]
\[\mbox{When } R_a > R_c, \mbox{ heat transfer is due to convection.} \]
Lorenz system
Bifurcation at \[ r = R_a/R_c = 1\]
Famous low-order model:
\[ \dot X = -\sigma X + \sigma Y \]
\[ \dot Y = r X - Y - X Z \]
\[ \dot Z = -b Z + X Y \]
Lorenz system r=0.9
r=0.9
s=10
b=8/3
dt=0.01
x=1.1
y=0.1
z=11.1
vx<-c(0)
vy<-c(0)
vz<-c(0)
for(i in 1:100){
x1=x+s*(y-x)*dt
y1=y+(r*x-y-x*z)*dt
z1=z+(x*y-b*z)*dt
vx[i]=x1
vy[i]=y1
vz[i]=z1
x=x1
y=y1
z=z1}
plot(vx,type="l",xlab="time",ylab="x")
plot(vy,type="l",xlab="time",ylab="y")
Lorenz system r=24
r=24
s=10
b=8/3
dt=0.01
x=0.1
y=0.1
z=0.1
vx<-c(0)
vy<-c(0)
vz<-c(0)
for(i in 1:10000){
x1=x+s*(y-x)*dt
y1=y+(r*x-y-x*z)*dt
z1=z+(x*y-b*z)*dt
vx[i]=x1
vy[i]=y1
vz[i]=z1
x=x1
y=y1
z=z1}
plot(vx,vy,type="l",xlab="x",ylab="y")
plot(vy,vz,type="l",xlab="y",ylab="z")
North Atlantic Current & Gulfstream
brings warm water northward where it cools.
returns southward as a cold, deep, western-boundary current.
Ocean Conveyor Belt
Thermohaline ocean circulation
Modelled meridional overturning streamfunction in Sv 10^6 = m^3 /s in the Atlantic Ocean. Grey areas represent zonally integrated smoothed bathymetry
=======================================================
Vorticity dynamics of meridional overturning (y,z)
\[ \frac{\partial}{\partial t} v \quad = \quad - \frac{1}{\rho_0} \frac{\partial p}{\partial y} \quad - \quad f u \quad - \quad \kappa v \]
\[ \frac{\partial}{\partial t} w \quad = \quad - \frac{1}{\rho_0} \frac{\partial p}{\partial z} \quad - \quad \frac{g}{\rho_0} (\rho -\rho_0) \quad - \quad \kappa w \] \(\kappa\) as parameter for Rayleigh friction.
Vorticity equation
Eliminating pressure yields
\[ \frac{\partial}{\partial t} \nabla^2 \Phi = - f \frac{\partial u}{\partial z} + \frac{g}{\rho_0} \frac{\partial \rho}{\partial y} - \kappa \nabla^2 \Phi \]
The Coriolis term is typically absorbed into the damping term for simplicity.
Galerkin Approximation
We expand the streamfunction as
\[ \Phi(y,z,t) = \sum_{k=1}^{\infty}\sum_{l=1}^{\infty} \Phi_{k,l}(t) \sin\left(\frac{\pi k y}{L}\right) \sin\left(\frac{\pi l z}{H}\right) \]
Single-mode truncation
We retain only the dominant mode:
\[ \Phi(y,z,t) = \Phi_{max}(t) \sin\left(\frac{\pi y}{L}\right) \sin\left(\frac{\pi z}{H}\right) \]
This satisfies no-normal-flow boundary conditions.
Time tendency term
\[ \nabla^2 \left[ \sin\left(\frac{\pi y}{L}\right) \, \sin\left(\frac{\pi z}{H}\right)\right] = - \left[ \left(\frac{\pi}{H}\right)^2 + \left(\frac{\pi}{L}\right)^2 \right] \, \sin\left(\frac{\pi y}{L}\right) \, \sin\left(\frac{\pi z}{H}\right) \] ## Projection onto the dominant mode
We project the vorticity equation onto the chosen basis function:
\[ \int_0^L dy \int_0^H dz \, (\cdot) \]
\[ - \left[ \left(\frac{\pi}{H}\right)^2 + \left(\frac{\pi}{L}\right)^2 \right] \, \int_0^L dy \sin\left(\frac{\pi y}{L}\right) \, \int_0^H dz \, \sin\left(\frac{\pi z}{H}\right) \] With \[ \int_0^L dy \sin\left(\frac{\pi y}{L}\right) \, = \frac{L}{\pi} \int_0^{\pi} d\varphi \sin \varphi = \frac{L}{\pi} \cos \varphi |_0^{\pi} = \frac{2 L}{\pi} \] and \[ \int_0^H dz \, \sin\left(\frac{\pi z}{H}\right) \, = \frac{H}{\pi} \int_0^{\pi} d\varphi \, \sin \varphi = \frac{L}{\pi} \cos \varphi |_0^{\pi} = \frac{2 H}{\pi} \]
this yields \[ \int \frac{\partial}{\partial t} \nabla^2 \Phi = 4 L H \left(\frac{1}{L^2} + \frac{1}{H^2}\right) \frac{d \Phi_{max}}{dt} \]
Density forcing term
\[ \int \frac{g}{\rho_0} \frac{\partial \rho}{\partial y} = \frac{g}{\rho_0} H (\rho_{north} - \rho_{south}) \]
Friction term
\[ \int \kappa \nabla^2 \Phi = 4 L H \kappa \left(\frac{1}{L^2} + \frac{1}{H^2}\right) \Phi_{max} \]
Final low-order model
Combining all terms gives
\[ \frac{d}{dt} \Phi_{max} = \frac{a}{\rho_0} (\rho_{north} - \rho_{south}) - \kappa \Phi_{max} \]
with
\[ a = \frac{g L H^2}{4 (L^2 + H^2)} \]
Diagnostic limit
Assuming fast adjustment (e.g. Kelvin waves), we obtain
\[ \Phi_{max} = \frac{a}{\rho_0 \kappa} (\rho_{north} - \rho_{south}) \]
This shows that the overturning circulation depends on the density differences on the right and left boxes.
It is simplified to a diagnostic relation
\[ \Phi_{max} = \frac{a}{\rho_0 \, \kappa} \, \, (\rho_{north} - \rho_{south}) \quad \]
because the adjustment of \(\Phi_{max}\) is quasi-instantaneous due to adjustment processes, e.g. Kelvin waves.
North-south density gradient in an ocean basin
Primary north-south gradient in balance with an eastward geostrophic current: generates a secondary high & low pressure system, northward current
Connection to Box Models
The density difference can be written as
\[ \rho_{north} - \rho_{south} = - \rho_0 (\alpha \Delta T - \beta \Delta S) \]
leading to the classical Stommel-type relation
\[ \Phi = - c (\alpha \Delta T - \beta \Delta S) \]
Schematic picture of the hemispheric two box model (a) and of the interhemispheric box model
=======================================================
- The Atlantic surface density is mainly related to temperature
differences.
- But the pole-to-pole differences are caused by salinity differences. }
Box model of the thermohaline circulation
hemispheric (Stommel-type) or interhemispheric (Rooth-type)
Box model of the thermohaline circulation
hemispheric (Stommel-type) or interhemispheric (Rooth-type)
\[ \Phi \, = \, - c \, ( \alpha \Delta T - \beta \Delta S ) \qquad , \] where \(\alpha\) and \(\beta\) are the thermal and haline expansion coefficients,
\(\Delta\) denotes the meridional difference operator applied to temperature T and salinity S, respectively.
single hemispheric view:
The meridional density differences are clearly dominated by temperature
Salinity difference breakes the temperature difference
both hemispheres:
densities at high northern and southern latitudes are close,
the pole-to-pole differences are caused by salinity differences.
Ocean: multiple equilibria in GCM
Ocean response: Hosing the North Atlantic
- AMOC indices of North Atlantic hosing for different hosing areas. Units are Sv. Black line represents the unperturbed LGM experiment. Hosing is for the period 840–990. (b) Annual mean sea surface salinity anomaly between LGM and the perturbation experiment LGM with 0.2 Sv for the model years 900–950.
-> Multi-scale Ocean GCM
Conveyor belt: climate change
left: 55%
halting or reversing the ocean circulation
interpretation of Greenland ice core records
climate states with different ocean modes
Abrupt climate change, termination of ice sheets, Climate System II
Ocean box model
Ocean: Temperature
Euler forward for ocean temperature
Tnln = Tnl + dts * ((Hfnl)/(rcz2)-(Tnl-Tml)*phi/Vnl);
Tmln = Tml + dts * ((Hfml)/(rcz1)-(Tml-Tsl)*phi/Vml);
Tsln = Tsl + dts * ((Hfsl)/(rcz2)-(Tsl-Td)*phi/Vsl);
Tdn = Td + dts * (-(Td-Tnl)*(phi/Vd));
Atmosphere
Box model
3) Boxmodel (Version using R-shiny)
How to setup and run the Boxmodel R-shiny app
password: DynamicsII2020
Box model with jupyter
for the box model, you can download sevenbox_jupyter.ipynb
conda create -n jupyter-R
conda activate jupyter-R
conda install -y -c conda-forge pip notebook nb_conda_kernels jupyter_contrib_nbextensions
conda install -y -c conda-forge r r-irkernel r-ggplot2 r-dplyr
jupyter-notebook sevenbox_jupyter.ipynb
you have to download conda (or miniconda). Here a good web site: https://conda.io/projects/conda/en/latest/user-guide/install/index.html
Boxmodel with R-shiny
Download link password: DynamicsII2020
go to the folder where the boxmodel is located (ui.R): setwd(’ … ’)
install.packages(“shiny”)
library(shiny)
runApp()
a browser window should open that displays the boxmodel controls
first click on the button Spin-Up to create a new spin up
a new window opens, click on Run SpinUp
afterwards click on Apply, then Cancel
define parameters for the model simulation
run the simulation by clicking on Start Simulation
Rossby number Ro
\[ \underbrace{\frac{\partial \mathbf{v}}{\partial t}}_{ U/T \sim 10^{-8} } + \underbrace{\mathbf{v} \cdot \nabla \mathbf{v}}_{ U^2/L \sim 10^{-8} } = {\underbrace{- \frac{1}{\rho} \nabla p}_{ \bf \delta P/(\rho L) \sim 10^{-5}} + \underbrace{2 \mathbf{\Omega \times v}}_{ \bf f_0 U \sim 10^{-5} } + \underbrace{fric}_{ \nu U/H^2 \sim 10^{-13}}} \]
\[ Ro = \frac{ \mbox{Inertial (the left hand side)} }{ \mbox{Coriolis term } } \]
\[ Ro = \frac{(U^2/L)}{(f U)} = \frac{U}{f L} \quad \]
characterizes the importance of Coriolis acceleration
Ro is small when the flow is in a so-called geostrophic balance.
Vorticity is the rotation of the fluid
\[ \zeta \equiv \frac{\partial v}{\partial x}-\frac{\partial u}{\partial y} \]
or in 3D:
\[ \equiv \nabla \times \boldsymbol{ u} \]
Example: Rigid body rotating
\[ \boldsymbol{ u} = \begin{pmatrix} u \\ v \\ w \end{pmatrix}\ = \boldsymbol{ \Omega} \times \boldsymbol{ r} = \begin{pmatrix} \omega_1 \\ \omega_2 \\ \omega_3 \end{pmatrix}\ \times \ \begin{pmatrix} x \\ y \\ z \end{pmatrix}\ = \begin{pmatrix} \omega_2 z- \omega_3 y\\ \omega_3 x- \omega_1 z \\ \omega_1 y - \omega_2 x \end{pmatrix}\ \]
Rotation vector
\[ \nabla \times \boldsymbol{ u} = \begin{pmatrix} \partial_x \\ \partial_y \\ \partial_z \end{pmatrix}\ \times \ \begin{pmatrix} u \\ v \\ w \end{pmatrix}\ = \begin{pmatrix} \partial_x \\ \partial_y \\ \partial_z \end{pmatrix}\ \times \ \begin{pmatrix} \omega_2 z- \omega_3 y \\ \omega_3 x- \omega_1 z \\ \omega_1 y - \omega_2 x \end{pmatrix}\ \]
\[ = \begin{pmatrix} \partial_y (\omega_1 y - \omega_2 x) - \partial_z (\omega_3 x- \omega_1 z ) \\ \\ \\ \end{pmatrix}\ \]
\[ = \begin{pmatrix} \omega_1 + \omega_1 \\ \omega_2 + \omega_2 \\ \omega_3 + \omega_3 \end{pmatrix}\ = 2 \boldsymbol{ \Omega} \]
Example: Vorticity from shear
Tomczak & Godfrey: Regional Oceanography
\[u=0, v=v\left(x\right)\]
\[\zeta= \partial v\left(x\right)/\partial x \]
Estimate for \(\zeta\) off Cape Hatteras:
the velocity changes by \(1 \, {m}{s}^{-1}\) in 100 km
\[ \zeta= \frac{\partial v}{\partial x} = \frac{ 1 \, {m}{s}^{-1}}{100 \, {km}} = 10^{-5} \, \frac{1}{s} \]
still much smaller than
\[ f= 2 \Omega \sin \varphi = 2 \, \frac{2 \pi}{day} \sin \varphi \approx \, 10^{-4} \, \frac{1}{s} \]
Planetary and relative vorticity
\[ \mbox{Absolute Vorticity }\equiv\left(\zeta+f\right) \]
\[ \frac{Du}{Dt}-f\;v = -\frac{1}{\rho}\frac{\partial p}{\partial x} \] \[ \frac{Dv}{Dt}+f\;u = -\frac{1}{\rho}\frac{\partial p}{\partial y} \]
\[ \mbox{subtract } \partial/\partial y \mbox{ of (u-equation) from } \partial /\partial x \mbox{ of (v-equation) } \]
Use \[ \frac{D}{Dt} f = v \, \partial_y f: \]
to obtain
\[ \underline{ \frac{D}{Dt}\left(\zeta+f\right) + \left(\zeta + f\right)\left(\frac{\partial u}{\partial x}+\frac{\partial v}{\partial y}\right)=0 } \quad \]
Examples for Vorticity: Ocean with depth h(x,y)
\[ \mbox{Because of the continuity equation } \quad \partial_x \left( u h \right) + \partial_y \left( v h \right) \quad = \quad 0 \]
\[ \quad \frac{D}{Dt} h + h \left( \partial_x u + \partial_y v \right) = \quad 0 \]
Therefore, \[ \underline{ \frac{D}{Dt}\left(\zeta+f\right) + \left(\zeta + f\right)\left(\frac{\partial u}{\partial x}+\frac{\partial v}{\partial y}\right)=0 } \quad \]
\[ \frac{D}{Dt}\left(\zeta +f\right)-\frac{\left(\zeta+f\right)}{h}\frac{Dh}{Dt}=0 \]
\[ \frac{1}{h} \frac{D}{Dt}\left(\zeta+f\right) - \left(\zeta + f\right) \frac{D_t h}{h^2} =0 \]
\[ \underline{ \frac{D}{Dt}\left( \frac{\zeta+f}{h}\right) = 0 } \quad \]
Potential vorticity is conserved along a fluid trajectory.
Potential vorticity: Examples
\[ \frac{D}{Dt}\left(\zeta+f\right) + \left(\zeta + f\right)\left(\frac{\partial u}{\partial x}+\frac{\partial v}{\partial y}\right)=0 \quad \]
Ocean/Atmosphere with depth h(x,y)
\[ \frac{D}{Dt}\left( \frac{\zeta+f}{h}\right) = 0 \quad \]
Couples depth, vorticity, latitude
– Changes in the depth results in change in \(\zeta\).
– Changes in latitude require a corresponding change in \(\zeta\).
Example: Vorticity from shear
Tomczak & Godfrey: Regional Oceanography
\[u=0, v=v\left(x\right)\]
\[\zeta= \partial v\left(x\right)/\partial x \]
Estimate for \(\zeta\) off Cape Hatteras:
the velocity changes by \(1 \, {m}{s}^{-1}\) in 100 km
\[ \zeta= \frac{\partial v}{\partial x} = \frac{ 1 \, {m}{s}^{-1}}{100 \, {km}} = 10^{-5} \, \frac{1}{s} \]
still much smaller than
\[ f= 2 \Omega \sin \varphi = 2 \, \frac{2 \pi}{day} \sin \varphi \approx \, 10^{-4} \, \frac{1}{s} \]
Planetary and relative vorticity
\[ \mbox{Absolute Vorticity }\equiv\left(\zeta+f\right) \]
\[ \frac{Du}{Dt}-f\;v = -\frac{1}{\rho}\frac{\partial p}{\partial x} \] \[ \frac{Dv}{Dt}+f\;u = -\frac{1}{\rho}\frac{\partial p}{\partial y} \]
\[ \mbox{subtract } \partial/\partial y \mbox{ of (u-equation) from } \partial /\partial x \mbox{ of (v-equation) } \]
Use \[ \frac{D}{Dt} f = v \, \partial_y f: \]
to obtain
\[ \underline{ \frac{D}{Dt}\left(\zeta+f\right) + \left(\zeta + f\right)\left(\frac{\partial u}{\partial x}+\frac{\partial v}{\partial y}\right)=0 } \quad \]
Examples for Vorticity: Ocean with depth h(x,y)
\[ \mbox{Because of the continuity equation } \quad \partial_x \left( u h \right) + \partial_y \left( v h \right) \quad = \quad 0 \]
\[ \quad \frac{D}{Dt} h + h \left( \partial_x u + \partial_y v \right) = \quad 0 \]
Therefore, \[ \underline{ \frac{D}{Dt}\left(\zeta+f\right) + \left(\zeta + f\right)\left(\frac{\partial u}{\partial x}+\frac{\partial v}{\partial y}\right)=0 } \quad \]
\[ \frac{D}{Dt}\left(\zeta +f\right)-\frac{\left(\zeta+f\right)}{h}\frac{Dh}{Dt}=0 \]
\[ \frac{1}{h} \frac{D}{Dt}\left(\zeta+f\right) - \left(\zeta + f\right) \frac{D_t h}{h^2} =0 \]
\[ \underline{ \frac{D}{Dt}\left( \frac{\zeta+f}{h}\right) = 0 } \quad \]
Potential vorticity is conserved along a fluid trajectory.
Potential vorticity: Examples
\[ \frac{D}{Dt}\left(\zeta+f\right) + \left(\zeta + f\right)\left(\frac{\partial u}{\partial x}+\frac{\partial v}{\partial y}\right)=0 \quad \]
Ocean/Atmosphere with depth h(x,y)
\[ \frac{D}{Dt}\left( \frac{\zeta+f}{h}\right) = 0 \quad \]
Couples depth, vorticity, latitude
– Changes in the depth results in change in \(\zeta\).
– Changes in latitude require a corresponding change in \(\zeta\).
Dietrich et al. (1980)
Steward, Oceanography
What drives the ocean currents?
Friction: transfer of momentum from atmosphere to oceanic Ekman layer
Vorticity dynamics for the ocean and include the wind stress term
\[ D_t u - f v = - \frac{1}{\rho} \frac{\partial p}{\partial x} + \frac{1}{\rho} \partial_z \tau_{xz} \] \[ D_t v + f u = - \frac{1}{\rho} \frac{\partial p}{\partial y} + \frac{1}{\rho} \partial_z \tau_{yz} \]
\[ \frac{D}{Dt} \left( {\zeta+f}\right) - \frac{\left(\zeta+f \right)}{h} \frac{D}{Dt} h \, = \, \frac{1}{\rho} \underbrace{\left( \frac{\partial}{\partial x} \, \partial_z \tau_{yz} - \frac{\partial}{\partial y}\, \partial_z \tau_{xz} \right)}_{curl \, \partial_z \tau} \quad . \]
\[ \frac{D}{Dt} \left( \frac{\zeta+f}{h}\right) = \frac{1}{\rho \, h} \, \mbox{curl} \, \partial_z \tau \, \]
Sverdrup transport
\[ \beta v = \frac{1}{\rho } \, \mbox{curl} \, \partial_z \tau \, \]
\[ \int_{-H}^0 dz \, \beta v = \frac{1}{\rho } \, \int_{-H}^0 dz \, \mbox{curl} \, \partial_z \tau \, = \frac{1}{\rho } \, \mbox{curl} \, \tau \, \]
\[ V = \frac{1}{\rho \beta} \, \left( \frac{\partial \tau_{yz} }{\partial x} \, - \frac{\partial \tau_{xz}}{\partial y}\, \right) = \frac{1}{\rho \beta} \, \, \operatorname{curl} \, \tau \]
applied globally using the wind stress from Hellerman and Rosenstein (1983). Contour interval is \(10\) Sverdrups (Tomczak and Godfrey, 1994).
Ekman Pumping & Sverdrup Transport
The center of a subtropical gyre is a high pressure zone: clockwise on the Northern Hemisphere
Ekman surface currents towards the center of the gyre
The Ekman vertical velocity balanced by \[ w_E=w_g \] vertical geostrophic current in the interior
geostrophic flow towards the equator
returned flow towards the pole in western boundary currents
Ekman Pumping: vertical velocity at the bottom of the Ekman layer E
\(w_E\) as the Ekman vertical velocity the bottom of the Ekman layer \[ w_E = - \int_{-E}^0 \frac{\partial w}{\partial z} dz = \frac{\partial}{\partial x} U_E + \frac{\partial}{\partial y} V_E \]
\(\operatorname{curl} \mathbf{\tau}\) produces a divergence of the Ekman transports leading to \(w_E\) at the bottom E
\[ w_E = \, \frac{\partial }{\partial x} \left( \frac{ \tau_{y}}{\rho \;f }\, \right) - \frac{\partial }{\partial y}\, \left( \frac{ \tau_{x}}{\rho \;f }\, \right) =\operatorname{curl}\left(\frac{\mathbf{\tau}}{\rho\;f}\right) \simeq \frac{1}{\rho\;f} \, \operatorname{curl} \mathbf{\tau} \]
The order of magnitude of the Ekman vertical velocity:
typical wind stress variation of \(0.2 N m^{-2}\) per 2000 km in y-direction:
\[ w_E \simeq - \frac{ \Delta \tau_{x}}{\rho \;f_0 \Delta y}\, \simeq \frac{1 }{10^3 kg m^{-3}} \frac{0.2 N m^{-2} }{10^{-4} s^{-1}\, \, 2 \cdot 10^6 m} \simeq 32 \, \, \frac{m}{yr} \]