Shallow Water Wave Equation Simulation: Reverse Shoaling?

1 reply · 2K views · last reply
person123
Messages
326
Reaction score
52
TL;DR
My simulation of water waves using the shallow water equations predicts decreasing wave height as depth decreases.
I'm creating a simulation of the shallow water wave equation in MATLAB. I'm using the equations:

$$\frac{\partial v}{\partial t}=-g\frac{\partial \eta}{\partial x}$$
$$\frac{\partial h}{\partial t}=-h\frac{\partial v}{\partial x}$$

Iteratively updating the velocity from neighboring heights and then the height from neighboring velocities.

It's able to modeling traveling waves traveling at ##c=\sqrt{gh}## as well as reflection, superposition of waves, and (in 2D) diffraction and refraction. However, when the depth decreases over the distances, it predicts the wave height decreases instead of increases. In the attached video, for example, the water depth decreases linearly from a maximum to ##0## with increasing ##x##.

Is this decrease in wave height predicted with the shallow water equations, or do you think this is an issue with my model? Thanks!

 
It may be the model? I've done a 1D tsunami run-up simulation as exercise a lifetime ago, but I used a quasi-linear formulation:
Two coupled PDEs in LaTeX: du/dt + u du/dx + g dh/dx = -g db/dx, and dh/dt + d(hu)/dx = 0, the 1D shallow water (nonlinear long-wave) equations with velocity u, depth h and bottom elevation b.

Diagram of a shallow-water channel with a sloped bottom: a wavy blue free surface at height h(x,t) above a bed b(x) that rises linearly to the right, with horizontal velocity u(x,t), a flat section of length W at the left, and axis x.

This definitely did increase the waveheight with decreasing depth.