@NilsBerglund
  @NilsBerglund
Nils Berglund | [Flash warning] Two planar waves crossing a gradient index lens @NilsBerglund | Uploaded April 2024 | Updated October 2024, 2 hours ago.
The first part of this video shows some flashing due to the formation of standing waves.
This is a variant of the simulation youtu.be/CdpTq3dSrXA , with a different wave form. Though it looks like several parallel beams, the incoming wave is actually obtained by superimposing two planar waves, one of them angled upwards, and the other one downwards. This results in two spots forming in the focal plane of the lens.
The videos are inspired by Huygens Optics' recent short youtube.com/shorts/VGd3Ajnp6e0 showing the principle of a gradient index lens.
Lenses focus incoming rays of light by delaying them more near the center of the lens than at its periphery. This is often done with a material of constant index of refraction, by making the lens thicker near the center, as shown for instance in the simulation youtu.be/rrJJBh9ubUE . However, one can also build lenses of constant thickness, by making the index of refraction of their material depend on the location in the lens. In this simulation, the index decreases like sqrt(n0² - a*r²), where r is the distance to the axis of symmetry. This results in the incoming planar waves being focused at two points in the (estimated) focal plane, marked by a vertical line. The plot to the right shows a time-averaged value of the field along that plane.
This video has two parts, showing the same evolution with two different color gradients:
Wave height: 0:00
Averaged wave energy: 1:08
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 periodic boundary conditions between the top and bottom boundaries, absorbing boundary conditions on the right boundary, and a time-periodic signal is imposed on the left boundary. The display at the right shows the signal along the focal plane, which is indicated by a vertical line.

Render time: 32 minutes 40 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: "Surrender" by Asher Fulero@AsherFulero

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 #lens #gradient_index
[Flash warning] Two planar waves crossing a gradient index lensConveyor belts with a separatorWaves from a point source crossing a percolation-style arrangement of obstaclesDNA-like molecules with dissociation of non-matching base pairsUnzipping more flexible DNA-like molecules with enzymesModeling the 2023 tsunami due to a landslide and glacier collapse in eastern GreenlandA conveyor beltA pentagonal foam bath in a boxA conveyor belt with shovelsCreating rotating waves in a circle with ten angled secondary cavitiesAn asteroid impact in the North Atlantic Ocean, with tsunami-induced floodingFoam bath: Coagulating pentagonal molecules

[Flash warning] Two planar waves crossing a gradient index lens @NilsBerglund

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER