# Tides

## Contents

# Tides#

Geophysical Fluid Dynamics of the Oceans

Tides are very long wavelength and period waves and are characterised by rhythmic rise and fall of sea level over around half or full day. Tidal currents are generated by the Moon and the Sun. Tides are regular and can be predicted.

Earth and Moon rotate about its common centre of mass with a period of \(\sim 27.3\) days. Earth rotates around its axis once per day, so we would expect one high and one low tide. However, in reality there are two highs and two lows per day.

## Tide-genereting force (TGF)#

Recall that gravitational attraction results in a force:

where \(G=6.67\times10^{-11}\,N\,m^2\,kg^{-2}\), \(r\) the distance between point masses \(m_1\) and \(m_2\) and \(\hat{\mathbf{r}}\) is the unit vector in the direction connecting two masses. This force per unit mass can be expressed as a gradient of a scalar potential:

because gravitational field is conservative, meaning the total work done to move an object in the presence of that field does not depend on the path.

Assuming \(\mathbf{F}\) is the force from the Moon exerted on Earth and only varies in the radial direction:

We would like to find Moon’s gravity influence on an arbitrary point \(P\) at Earth’s surface:

From the cosine law, we know:

We can insert \(r_1\) into potential scalar at point \(P\):

We can expand the terms in the brackets with Legendre polynomials:

Since we know the Earth’s radius and distance to the Moon, their ratio can be approximated as \(\frac{r}{R}\approx \frac{1}{60} \ll 1\). Therefore, any higher order terms in the expansion will become very small and can be ignored.

To find the tide-generating force, we need to take the gradient of this potential and its first three terms:

The first term is a constant so its gradient is zero, it produces no force.

The second term needs to be differentiated with respect to \(r\cos{\phi}\) (the “x” direction) and is a constant:

It acts in the direction along \(R\) on the graph and is the centripetal acceleration.

The final term in the potential creates a **tide-generating force**:

To get the vertical and horizontal force, we need to differentiate it with respect to \(r\) and \(\phi\):

The tide-generating force is inversely proportional to the cubic distance from the Earth to the Moon.

Let’s calculate the vertical and horizontal forces for point London at \(51^\circ N\):

```
import numpy as np
import matplotlib.pyplot as plt
def VerticalTGF(G, mass_moon, planet_radius, distance, lat):
return G*mass_moon*planet_radius/distance**3*(3*np.cos(lat)**2-1)
def HorizontalTGF(G, mass_moon, planet_radius, distance, lat):
return -3/2.*G*mass_moon*planet_radius/distance**3*np.sin(2*lat)
def TidalPotential(G, mass_moon, planet_radius, distance, lat):
return -0.5*G*mass_moon*(planet_radius**2/distance**3)*(3*(np.cos(lat)**2)-1)
```

```
G = 6.67e-11 # Gravitational constant
mass_m =7.34767309e22 # Moon's mass
r = 6378000 # Earth's radius
R = 384400000 # Earth-Moon distance
phi = np.deg2rad(51) # Latitude
print("Vertical force (N) = ", VerticalTGF(G, mass_m, r, R, phi))
print("Horizontal force (N) = ", HorizontalTGF(G, mass_m, r, R, phi))
```

```
Vertical force (N) = 1.0353180375515302e-07
Horizontal force (N) = -8.074315039381746e-07
```

Horizontal force can change its sign when \(\phi\) is zero and when \(\phi = \pm\pi/2\). This explains why it has two bulges on Earth’s surface.

Let’s plot how these forces change with latitude (\(\phi\)):

```
phi = np.linspace(0,np.pi, 100)
plt.plot(phi, HorizontalTGF(G, mass_m, r, R, phi),
c='k', label="Horizontal force")
plt.plot(phi, VerticalTGF(G, mass_m, r, R, phi),
c='b', label="Verical force")
plt.axhline(0, color="gray", lw=0.5)
plt.axvline(np.pi/2, color="gray", lw=0.5)
plt.legend(loc="best")
plt.show()
```

We can plot an exaggerated equilibrium tidal perturbation of the Earth’s surface, assuming it is a perfect sphere:

```
# Create a range of points on Earth surface
theta = np.linspace(0, 2*np.pi, 100)
x = r*np.cos(theta)
y = r*np.sin(theta)
# Create outer shell of 4000 km
# depth (ocean) and scale by a factor of 200
# so it is noticable
factor = 200
r2 = r + factor*4000
x2 = r2*np.cos(theta)
y2 = r2*np.sin(theta)
# Create how Earth's surface deforms
# and scale by factor of 10,000
factor2 = factor*10000
r3 = r2 - factor2*TidalPotential(G, mass_m, r, R, theta)/9.8
x3 = r3*np.cos(theta)
y3 = r3*np.sin(theta)
fig, ax = plt.subplots(1, figsize=(7,7))
plt.plot(x3, y3, c="red", lw=2, dashes=(4,2),
label="equilibrium tidal\nperturbation")
circle1 = plt.Circle((0, 0), r2, color='blue', label="ocean")
circle2 = plt.Circle((0, 0), r, color='gray')
ax.add_artist(circle1)
ax.add_artist(circle2)
plt.text(0,0, """Water depth and
equilibrium tidal
perturbation
massively
exaggerated""",
size=14, ha="center", va="center",
fontweight="bold")
plt.xlim(-1.2e7, 1e7)
plt.gca().set_aspect("equal")
plt.legend(loc="upper left")
plt.axis("off")
plt.show()
```

Horizontal force can be balanced by the sea surface gradient term \(g\times grad(h)\). This is called equilibrium tide - the free surface elevation of water-covered Earth whose pressure gradient balances horizontal TGF and results in steady balanced state:

For Moon \(h_{eq}\sim 0.27\,m\). However, Earth is not entirely water covered so we don’t have an equilibirium state in reality. The tidal bulges would rotate with Earth once every \(24\) hours but land gets in the way.

Moon does not rotate exactly above the equator, so our equations need to be corrected for the angle \(d_l\) (declination of the Moon north of the equator) and \(C_p\) (the Moon’s “hour” angle):

Therefore, the new formula for potential is:

Recall that \(g=\frac{GM_E}{r^2}\) and \(h_eq=-\frac{\Omega_P}{g}\):

Let’s look at the time-dependent coefficients:

First one does not vary with \(C_P\), only depend on declination \(d_l\). These are called the

**long-period tides or species**.Second term also depends on \(d_l\) at twice the frequency as above, but also includes

**diurnal species**at frequency one per lunar cycle (\(\cos{C_P}\) factor).Final term includes

**semi-diurnal species**due to \(\cos{2C_P}\) factor.

Lunar hour angle \(C_P\) is the difference between longitude of point \(P\) and location with the Moon directly overhead. It can be calculated from”

where \(\omega_1=\frac{360^\circ}{24.8412 \,\text{hr}}=14.4921^\circ\,{hr}^{-1}\).

Doodson expanded tidal potential above with Fourier series using fundamental frequencies:

These frequencies are known and can be looked up in a table.

## Tidal frequencies#

The combination of the six fundamental frequencies mentioned above can be used to find important cycles - semi-diurnal cycle (\(\omega_1=12.42\) \(hr\)), spring/neap cycle (\(\omega_0-\omega_1=14.75\) days).

Spring-neap cycles can be explained via superposition of the principal lunar and principal solar tidal constituents:

Using \(M_2\) and \(S_2\), we can plot semi-diurnal and spring-neap cycles:

```
t = np.arange(0, 24*30, 0.05)
M2 = 0.242334*np.cos((2*14.4921)*(np.pi/180)*t)
S2 = 0.112841*np.cos((2*14.4921 + 2*0.549 - 2*0.0411)*(np.pi/180)*t)
fig, axes = plt.subplots(3,1, figsize=(7,7))
plots = [M2, S2, M2+S2]
labels = [r"$M_2: a_{M_2} \cos(2\omega_1 \frac{\pi}{180} t)$",
r"$S_2: a_{S_2}\cos([2\omega_1+2\omega_2-2\omega_3]\frac{\pi}{180}t)$",
"$M_2+S_2$"]
for i, ax in enumerate(axes):
ax.plot(t/24., plots[i], color='k', lw=2, label=labels[i])
ax.legend(loc='upper right')
ax.set_ylim(-0.5,0.5)
ax.set_xlim(0,30)
ax.set_ylabel("Amplitude")
plt.xlabel('Days')
plt.suptitle("Semi-diurnal and Spring-Neap cycles\n(M2 and S2)", fontsize=14)
plt.show()
```

The top graph shows \(57\) highs in \(30\) days, while the middle graph shows \(60\) highs in \(30\) days.

Then we can plot diurnal inequality - \(M_2\) and \(K_1\):

```
M2 = 0.242334*np.cos((2*14.4921)*(np.pi/180)*t);
K1 = 0.141565*np.cos((1*14.4921 + 1*0.549)*(np.pi/180)*t);
fig, axes = plt.subplots(3,1, figsize=(7,7))
plots = [M2, K1, M2+K1]
labels = [r"$M_2: a_{M_2} \cos(2\omega_1 \frac{\pi}{180} t)$",
r"$K_1: a_{K_1}\cos([\omega_1+\omega_2]\frac{\pi}{180}t)$",
"$M_2+K_1$"]
for i, ax in enumerate(axes):
ax.plot(t/24., plots[i], color='k', lw=2, label=labels[i])
ax.legend(loc="upper right")
ax.set_ylim(-0.5,0.5)
ax.set_xlim(0,10)
ax.set_ylabel("Amplitude")
plt.xlabel('Days')
plt.suptitle("Diurnal inequality\n(M2 and K1)", fontsize=14)
plt.show()
```

We can see on the bottom graph that it has high and lows of different magnitudes within a \(24\) hour period.

**References:**

The information in this notebook was compiled based on Geophysical Fluid Dynamics for the Oceans course at ESE