I Shallow Water Wave Equation Simulation: Reverse Shoaling?

Click For Summary
The simulation of the shallow water wave equation in MATLAB is designed to model traveling waves, reflection, superposition, diffraction, and refraction using specific equations. However, it encounters an issue where the wave height decreases as the water depth decreases, contrary to expected behavior. The creator questions whether this decrease is a characteristic of the shallow water equations or a flaw in their model. They reference a previous successful simulation of tsunami run-up that used a quasi-linear formulation, which resulted in increased wave height with decreasing depth. The discussion seeks clarity on the accuracy of the current model's predictions.
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!

 
Physics news on Phys.org
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:
1650023269635.png

1650023331485.png

This definitely did increase the waveheight with decreasing depth.
 
Hello, I'm joining this forum to ask two questions which have nagged me for some time. I am in no way trolling. They both are presumed obvious, yet don't make sense to me. Nobody will explain their positions, which is...uh...aka science. I also have a thread for the other question. Yes, I'm questioning the most elementary physics question we're given in this world. The classic elevator in motion question: A person is standing on a scale in an elevator that is in constant motion...