Загрузка...

Three-sided parabolic resonators with Dirichlet and Neumann boundary conditions

The domains in this wave simulation are "parabolic resonators" with three sides. This means that the boundaries are pieces of parabolas that share the central point as focal point. As a result, circular waves emitted from that point turn to planar waves upon reflection on the sides. Since the number of sides is odd, they do not switch back to circular waves, as they would for an even number of sides.
So far, most 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.
This video compares the effect of Dirichlet and Neumann boundary conditions in elliptical cavities. It has two parts, showing similar simulations with two different representations:
2D view: 0:00
3D view: 1:47
The color hue, as well as the z-coordinate in the 3D part, depend on the wave height. The domain with Neumann boundary conditions is at the right in the 2D part, and at the bottom right at the beginning of the 3D part. In the 3D part, the observer rotates around the simulated region in the course of the video.

Render time: Part 1 - 18 minutes 31 seconds
Part 2 - 41 minutes 2 seconds
Compression: crf 25
Color scheme: Plasma by Nathaniel J. Smith and Stefan van der Walt
https://github.com/BIDS/colormap

Music: "The Light" by Alex Jones/Xander Jones@/UCN9CZDQuFZf2h0ehVvqXdGg

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 #resonator #harmonics

Видео Three-sided parabolic resonators with Dirichlet and Neumann boundary conditions канала Nils Berglund
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять