Undergrad 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.
 
Topic about reference frames, center of rotation, postion of origin etc Comoving ref. frame is frame that is attached to moving object, does that mean, in that frame translation and rotation of object is zero, because origin and axes(x,y,z) are fixed to object? Is it same if you place origin of frame at object center of mass or at object tail? What type of comoving frame exist? What is lab frame? If we talk about center of rotation do we always need to specified from what frame we observe?

Similar threads

  • · Replies 5 ·
Replies
5
Views
530
  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K