Sacha BINDER. Étude de l’observation et de la modélisation des ondes de surface en eau peu profonde. Physique-Informatique.TIPE session 2021.
Python model solving the wave equations in 1D and 2D. All the process of calculation is based on finite difference method. The simulation include a variation of wave's velocity in the spatial domain. Scripts are using NumPy, Matplotlib and SciPy libraries.
The script 1D_WAVE-EQ_variable-velocity.py can be used to simulate several situations :
- Wave propagation at constant speed (left) and variable speed (right) :
- Wave propagation with several boundary conditions such as Dirichlet, Neumann and Mur's (Impedance matching) :
The script 2D_WAVE-EQ_variable-velocity.py is a two-dimensional generalisation of what was presented previously :