@NilsBerglund
  @NilsBerglund
Nils Berglund | Energy flux of waves of two different frequencies crossing a diffraction grating @NilsBerglund | Uploaded May 2024 | Updated October 2024, 4 minutes ago.
This is a variant of the simulation youtu.be/kPsCquKggeU , showing the energy flux instead of the wave height and energy, with sources slightly further apart.
The 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 flux intensity plot.
This video has two parts, showing the same evolution with two different color gradients:
Direction of energy flux: 0:00
Intensity of energy flux: 1:04
In the first part, the color hue depends on the direction of the wave's energy flux, which is proportional to the product of the spatial gradient of the wave height and its time derivative. The luminosity depends on the norm of the energy flux. In the second part, the color hue depends on the norm of the energy flux.
There are absorbing boundary conditions on the borders of the simulated rectangle. The display at the bottom shows the squared of the signal along the horizontal symmetry axis of the simulated rectangular area, averaged over a time window.

Render time: 40 minutes 31 seconds
Compression: crf 25
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: "Jaguar" by Quincas Moreira@QuincasMoreira

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
Energy flux of waves of two different frequencies crossing a diffraction gratingBloopers 18: Numerical blow-up in the shallow water equation on the sphereNon-coherent waves of higher frequency in a magnetron-shaped resonatorExciting resonant modes in a circle, with fewer sources than cavitiesA laminar flow over an immersed dodecahedronWaves of two different frequencies crossing a hexagonal latticeGrowth of a mono-quasicrystal from pentagonsWaves in shallow water with cube-like symmetry on the sphereVortex dynamics on the sphere with weaker Coriolis forceWaves of two different frequencies crossing a sunflower latticeSorting particles at lower frictionA laminar flow over an immersed cube

Energy flux of waves of two different frequencies crossing a diffraction grating @NilsBerglund

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER