@NilsBerglund
  @NilsBerglund
Nils Berglund | A magnetron-shaped resonator @NilsBerglund | Uploaded August 2024 | Updated October 2024, 2 minutes ago.
Magnetrons were used in early radars, and are still used in microwave ovens, as sources of the microwaves. Cavity magnetrons use a resonating cavity with several chambers, together with a magnetic field. In this simulation, there is no magnetic field, and waves are produced as pulses in the center of the device, so it does not represent a real magnetron. However, I still found it interesting to look at the effect of the resonating cavities on the output.
Since this simulation is in 2D, I added a channel at one side to act as an outlet for the waves. In 3D, my understanding is that the outlet would rather be along the axis of the device.
This video has two parts, showing the same evolution with two different color gradients:
Wave height: 0:00
Averaged wave energy: 1:28
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. The contrast has been enhanced by a shading procedure, similar to the one I have used in videos of reaction-diffusion equations. The process is to compute the normal vector to a surface in 3D that would be obtained by using the third dimension to represent the field, and then to make the luminosity depend on the angle between the normal vector and a fixed direction.
There are absorbing boundary conditions on the borders of the simulated rectangle. The graph at the right shows a slightly time-averaged version of the signal.

Render time: 31 minutes 16 seconds
Compression: crf 23
Color scheme: Part 1 - Viridis by Nathaniel J. Smith, Stefan van der Walt and Eric Firing
Part 2 - Inferno by Nathaniel J. Smith and Stefan van der Walt
github.com/BIDS/colormap

Music: "Yah Yah" by josh pan@Yoshiberlin

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 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 #resonator #magnetron
A magnetron-shaped resonatorConveyor belts with periodic boundary conditionsClassics revisited: The dark side of the poolMore stable weather with 16 pressure systems - vorticity and wind directionA mass spectrometerWelcome to Gattaca: This starts looking more like DNAAdding tracers in 3D to vortex simulations on a rotating sphereHow tides could look if the Moon were much closer to EarthWaves crossing a less dense percolation-style arrangement of obstaclesNumerical aperture of a lens in a wall (re-upload)Weather on the Earth, with 17 pressure systemsEnhance 34 to 46: DNA replication (short version)

A magnetron-shaped resonator @NilsBerglund

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER