This is not Tetris: Interacting falling squares

Sdílet
Vložit
  • čas přidán 7. 07. 2024
  • Like the video • More rigid falling pen... , this one shows "molecules" composed of neutral and charged particles subject to gravity and a Coulomb interaction. The difference is that here, the molecules have a square shape, which allows them to assemble into a more regular structure.
    Each molecule is composed of 9 atoms, all interacting via a stiff harmonic potential, making them hard to deform. The molecules have a square symmetry, except that the symmetry is broken by the charge they are carrying. Each molecule carries two atoms with positive charge and two atoms with a negative charge, the other atoms being neutral. When molecules come close enough, they can merge, gradually forming larger clusters.
    The particles interact via a Coulomb potential when they belong to different molecules, and a harmonic potential within the same molecule. The Coulomb potential is complemented by a Lennard-Jones interaction between particles of opposite charge, to avoid their collapse on a single point. The temperature is controlled by a thermostat with increasing temperature.
    This simulation has two parts, showing the evolution with two different color gradients:
    Charge: 0:00
    Orientation: 1:08
    In the first part, the particles' color depends on their charge, while the background indicates the local charge density, slightly averaged over space and time. In the second part, the molecules' color depends on the orientation modulo 90 degrees, because of the four-fold symmetry.
    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 temperature is controlled by a thermostat, implemented here with the "Nosé-Hoover-Langevin" algorithm introduced by Ben Leimkuhler, Emad Noorizadeh and Florian Theil, see reference below. The idea of the algorithm is to couple the momenta of the system to a single random process, which fluctuates around a temperature-dependent mean value. Lower temperatures lead to lower mean values.
    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...
    Render time: 45 minutes 45 seconds
    Compression: crf 23
    Color scheme: Part 1 - Twilight by Bastian Bechtold
    github.com/bastibe/twilight
    Part 2 - HSL/Jet
    Music: "Modern Time" by An Jones‪@SOYEMILIA‬
    Reference: Leimkuhler, B., Noorizadeh, E. & Theil, F. A Gentle Stochastic Thermostat for Molecular Dynamics. J Stat Phys 135, 261-277 (2009). doi.org/10.1007/s10955-009-97...
    www.maths.warwick.ac.uk/~theil...
    Current version of the C code used to make these animations:
    github.com/nilsberglund-orlea...
    www.idpoisson.fr/berglund/sof...
    Some outreach articles on mathematics:
    images.math.cnrs.fr/_Berglund...
    (in French, some with a Spanish translation)
    #molecular_dynamics #ions #Tetris
  • Věda a technologie

Komentáře • 11

  • @humanhuman7280
    @humanhuman7280 Před 15 dny +18

    My nose building a indestructible wall after a tiny harmless pollen got inside

  • @user-vt4bz2vl6j
    @user-vt4bz2vl6j Před 15 dny +2

    WOW TETRIS!

  • @onlyontuesdays99
    @onlyontuesdays99 Před 10 dny

    Would love to see what would happen with different shapes or in 3d... Maybe both

  • @devjock
    @devjock Před 13 dny +2

    Okay, hear me out; What if it was though?

    • @NilsBerglund
      @NilsBerglund  Před 13 dny +2

      Don't tell Blue Scuti and co.

    • @devjock
      @devjock Před 12 dny

      ​@@NilsBerglund I bet Blue Scuti would be able to make the simulation fail eventually ;)

  • @tau73
    @tau73 Před 15 dny +2

    totally not tetris

  • @not_estains
    @not_estains Před 11 dny

    is this tetris