A linear wave hitting a diffraction grating 2: slightly larger angle
Автор: Nils Berglund
Загружено: 2023-07-25
Просмотров: 835
Описание:
In this variant of the simulation • A linear wave hitting a diffraction grating , a linear wave hits a diffraction grating at a slightly larger angle. One can note that as in the previous video, while wave crests move to the right, their intensity follows a largely stationary interference pattern, which is made more evident in the second part of the video.
Diffraction gratings are optical devices that can have weird effects on light, such as splitting it into several beams traveling in different directions. This simulation illustrates such an effect for waves encountering a grating made of evenly spaced circular obstacles.
The video has two parts, showing the same simulation with two different color schemes:
Wave height: 0:00
Average energy (log scale): 1:45
In the first part, the color hue shows the wave height. In the second part, it shows the energy, averaged from the beginning of the simulation, on a logarithmic scale. There are oscillating boundary conditions on the left border of the simulation, and absorbing boundary conditions on the right one. Since periodic boundary conditions between the top and bottom would not go well with the waves arriving at an angle, the simulation uses a solution of the 1D wave equation there.
Render time: 28 minutes 6 second
Color scheme: Part 1 - Twilight by Bastian Bechtold
https://github.com/bastibe/twilight
Part 2 - Inferno by Nathaniel J. Smith and Stefan van der Walt
https://github.com/BIDS/colormap
Music: "Hydra" by Huma-Huma
See also https://images.math.cnrs.fr/Des-ondes... 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...
C code: https://github.com/nilsberglund-orlea...
https://www.idpoisson.fr/berglund/sof...
Many thanks to Marco Mancini and Julian Kauth for helping me to accelerate my code!
#wave_equation #waves #diffraction #diffraction_grating
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: