I Shallow Water Wave Equation Simulation: Reverse Shoaling?

AI Thread 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 Summary
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.
 
Thread 'Gauss' law seems to imply instantaneous electric field'
Imagine a charged sphere at the origin connected through an open switch to a vertical grounded wire. We wish to find an expression for the horizontal component of the electric field at a distance ##\mathbf{r}## from the sphere as it discharges. By using the Lorenz gauge condition: $$\nabla \cdot \mathbf{A} + \frac{1}{c^2}\frac{\partial \phi}{\partial t}=0\tag{1}$$ we find the following retarded solutions to the Maxwell equations If we assume that...
Hello! Let's say I have a cavity resonant at 10 GHz with a Q factor of 1000. Given the Lorentzian shape of the cavity, I can also drive the cavity at, say 100 MHz. Of course the response will be very very weak, but non-zero given that the Loretzian shape never really reaches zero. I am trying to understand how are the magnetic and electric field distributions of the field at 100 MHz relative to the ones at 10 GHz? In particular, if inside the cavity I have some structure, such as 2 plates...
Back
Top