Uploaded November 2026 | Updated November 2026, 6 hours ago
This simulation shows waves in a Sinai billiard with Neumann boundary conditions. A Sinai billiard consists in the exterior of a disc, in a rectangular domain with periodic boundary conditions. The concave boundary of the disc tends to expand the reflected wavefront, causing the wave to quickly occupy the possible space. The same effect makes the classical Sinai billiard, which describes the zero-wavelength limit of ray optics (or geometric optics) chaotic, as illustrated by the video youtu.be/fYZwGySt-zw
Dirichlet boundary conditions are very easy to implement in a finite difference scheme: it suffices to keep the wave height equal to zero outside the domain, and use this zero value when computing the discrete Laplacian. For Neumann boundary conditions, however, one has to implement the condition that the normal derivative of the wave height is zero at the boundary. This is implemented here by adding "ghost" points next to the grid points in the domain, and computing their value in such a way that the normal derivative is approximately zero. These points are then used to compute the discrete Laplacian at points in the domain next to the boundary.
The color hue depends on the wave height.
Render time: 42 minutes 26 seconds
Compression: crf 25
Color scheme: Parula, originally from Matlab
mathworks.com/help/matlab/ref/colormap.html
Music: "Good Gig In the Clouds" by Joel Cummins@JCStriking
See also
https://images.math.cnrs.fr/des-ondes-dans-mon-billard-partie-i/ for more explanations (in French) on a few previous simulations of wave equations.
The simulation solves the wave equation by discretization. The algorithm is adapted from the paper hplgit.github.io/fdm-book/doc/pub/wave/pdf/wave-4print.pdf
C code: github.com/nilsberglund-orleans/YouTube-simulations
https://www.idpoisson.fr/berglund/software.html
Many thanks to Marco Mancini and Julian Kauth for helping me to accelerate my code!
#wave #obstacles #diffraction
This simulation shows waves in a Sinai billiard with Neumann boundary conditions. A Sinai billiard consists in the exterior of a disc, in a rectangular domain with periodic boundary conditions. The concave boundary of the disc tends to expand the reflected wavefront, causing the wave to quickly occupy the possible space. The same effect makes the classical Sinai billiard, which describes the zero-wavelength limit of ray optics (or geometric optics) chaotic, as illustrated by the video youtu.be/fYZwGySt-zw
Dirichlet boundary conditions are very easy to implement in a finite difference scheme: it suffices to keep the wave height equal to zero outside the domain, and use this zero value when computing the discrete Laplacian. For Neumann boundary conditions, however, one has to implement the condition that the normal derivative of the wave height is zero at the boundary. This is implemented here by adding "ghost" points next to the grid points in the domain, and computing their value in such a way that the normal derivative is approximately zero. These points are then used to compute the discrete Laplacian at points in the domain next to the boundary.
The color hue depends on the wave height.
Render time: 42 minutes 26 seconds
Compression: crf 25
Color scheme: Parula, originally from Matlab
mathworks.com/help/matlab/ref/colormap.html
Music: "Good Gig In the Clouds" by Joel Cummins@JCStriking
See also
https://images.math.cnrs.fr/des-ondes-dans-mon-billard-partie-i/ for more explanations (in French) on a few previous simulations of wave equations.
The simulation solves the wave equation by discretization. The algorithm is adapted from the paper hplgit.github.io/fdm-book/doc/pub/wave/pdf/wave-4print.pdf
C code: github.com/nilsberglund-orleans/YouTube-simulations
https://www.idpoisson.fr/berglund/software.html
Many thanks to Marco Mancini and Julian Kauth for helping me to accelerate my code!
#wave #obstacles #diffraction








![[Flash warning] Poisson disc wave protections: Comparison of two different small wavelengths
The lower panel of this simulation shows some mild flashing due to the high frequency of the left boundary condition.
This is a variant of the simulation https://youtu.be/i6W0eiR0L8Q in which the wavelengths have been halved, so that more waves are able to pass in the lower panel. It compares the effect of the wavelength on random wave protections with Neumann boundary condition. In both panels, the wave protection consists in circular obstacles placed on a Poisson disc process, which is a random distribution with the constraint that the minimal distance between the discs is given. The planar waves generated at the left side of the simulated rectangle have half the frequency, and thus twice the wavelength, in the top panel.
Many simulations of the wave equation in a domain on this channel used Dirichlet boundary conditions, meaning that the wave height is zero at the boundary of the domain. This is a good model for an elastic membrane, for instance for a drum, or for sound waves. For water waves, however, it would be more realistic to use Neumann boundary conditions, meaning the the wave height has a horizontal tangent at the boundary.
Dirichlet boundary conditions are very easy to implement in a finite difference scheme: it suffices to keep the wave height equal to zero outside the domain, and use this zero value when computing the discrete Laplacian. For Neumann boundary conditions, however, one has to implement the condition that the normal derivative of the wave height is zero at the boundary. This is implemented here by adding ghost points next to the grid points in the domain, and computing their value in such a way that the normal derivative is approximately zero. These points are then used to compute the discrete Laplacian at points in the domain next to the boundary.
The color hue depends on the wave height. The curve on the right shows the wave height along a vertical strip near the right boundary.
Render time: 52 minutes 23 seconds
Compression: crf 25
Color scheme: Turbo, by Anton Mikhailov
https://gist.github.com/mikhailov-work/6a308c20e494d9e0ccc29036b28faa7a
Music: Breathe by Slenderbeats@/UCDRGxJ2e4K9eyncdXbFcYhw
See also
https://images.math.cnrs.fr/des-ondes-dans-mon-billard-partie-i/ for more explanations (in French) on a few previous simulations of wave equations.
The simulation solves the wave equation by discretization. The algorithm is adapted from the paper https://hplgit.github.io/fdm-book/doc/pub/wave/pdf/wave-4print.pdf
C code: https://github.com/nilsberglund-orleans/YouTube-simulations
https://www.idpoisson.fr/berglund/software.html
Many thanks to Marco Mancini and Julian Kauth for helping me to accelerate my code!
#wave #obstacles #diffraction [Flash warning] Poisson disc wave protections: Comparison of two different small wavelengths](https://i.ytimg.com/vi/_x4HTVRJQ5k/mqdefault.jpg)

