@NilsBerglund
  @NilsBerglund
Nils Berglund | Waves of two different frequencies crossing a diffraction grating @NilsBerglund | Uploaded May 2024 | Updated October 2024, 55 seconds ago.
In this simulation, waves emitted at two different frequencies encounter a diffraction grating, made of regularly spaced circular reflectors. The frequency of the lower source is three times the frequency of the upper one. The resulting wavelengths are such that the open intervals in the grating are between both wavelengths. As a result, waves of the lower source pass the grating more easily, as can be best seen on the energy plot.
This video has two parts, showing the same evolution with two different color gradients:
Wave height: 0:00
Averaged wave energy: 1:04
In the first part, the color hue depends on the height of the wave. In the second part, it depends on the energy of the wave, averaged over a sliding time window.
There are absorbing boundary conditions on the borders of the simulated rectangle. The display at the bottom shows the signal along the horizontal symmetry axis of the simulated rectangular area.

Render time: 33 minutes 33 seconds
Compression: crf 23
Color scheme: Part 1 - Twilight by Bastian Bechtold
github.com/bastibe/twilight
Part 2 - Inferno by Nathaniel J. Smith and Stefan van der Walt
github.com/BIDS/colormap

Music: "Ready-Set-Go!" by Magic In The Other@MagicInTheOther

See also https://images.math.cnrs.fr/Des-ondes-dans-mon-billard-partie-I.html 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 #diffraction #grating
Waves of two different frequencies crossing a diffraction gratingA shallower laminar flow over an immersed dodecahedronHow does the particle size sorter work at very low friction?A hexagonal parabolic resonatorA more symmetric version of resonances in a circle excited by five out of phase sourcesDNA-like molecules in a boxAlmost a branched flow: Waves crossing a finer percolation-style arrangementMore stable vortices in Eulers equations on a rotating sphereVortices on a sphere like octahedral symmetrySimulation of a meteor impact in the Atlantic OceanWhen waves crossing a square lattice have a larger phase than group velocityMega-hextris: Coagulating falling hexagons

Waves of two different frequencies crossing a diffraction grating @NilsBerglund

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER