@NilsBerglund
  @NilsBerglund
Nils Berglund | A mass spectrometer @NilsBerglund | Uploaded October 2024 | Updated October 2024, 1 hour ago.
This simulation illustrates the principle of a mass spectrometer, which is a device allowing to sort charged particles according the their mass/charge ratio.
The particles injected on the left side have an random radius, a mass proportional to their radius squared, and a constant positive charge. There is a constant electric field, directed from left to right, that accelerates the particles. In the middle of the simulation region, there is a constant magnetic field, perpendicular to the simulation plane. The particles interact via a Lennard-Jones potential, and are subject to a viscous drag, in order to avoid numerical instability. The Coulomb interaction between particles has been turned off, however, since otherwise they would not stay in the bins at the right (in practice, one uses more elaborate ways to collect the separated particles).
The particles' acceleration, resulting from the Lorentz force, is proportional to the ratio between their charge and their mass. Therefore, lighter particles are deflected more, and tend to land in lower bins than heavier particles.
The video has two parts, showing the same simulation with two different color gradients.
Particle size: 0:00
Kinetic energy: 2:44
In part 1, the particles' color depends on their size. In part 2, in depends on their kinetic energy, which is proportional to their mass times their speed squared.
To save on computation time, particles are placed into a "hash grid", each cell of which contains between 3 and 10 particles. Then only the influence of other particles in the same or neighboring cells is taken into account for each particle.
The Lennard-Jones potential is strongly repulsive at short distance, and mildly attracting at long distance. It is widely used as a simple yet realistic model for the motion of electrically neutral molecules. The force results from the repulsion between electrons due to Pauli's exclusion principle, while the attractive part is a more subtle effect appearing in a multipole expansion. For more details, see en.wikipedia.org/wiki/Lennard-Jones_potential

Render time: 4 minutes 15 seconds
Compression: crf 23
Color scheme: Turbo, by Anton Mikhailov
gist.github.com/mikhailov-work/6a308c20e494d9e0ccc29036b28faa7a

Music: "Trips" by Topher Mohr and Alex Elena

Current version of the C code used to make these animations:
github.com/nilsberglund-orleans/YouTube-simulations
https://www.idpoisson.fr/berglund/software.html
Some outreach articles on mathematics:
https://images.math.cnrs.fr/auteurs/nils-berglund/
(in French, some with a Spanish translation)

#molecular_dynamics #mass_spectrometer
A 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)Waves of two different frequencies crossing a biconvex lens3D representation of a gradient index lensClassics revisited: A hexagonal parabolic resonatorWaves of two different frequencies crossing a randomized square lattice

A mass spectrometer @NilsBerglund

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER