Simulate the forming of crystal lattice of 2-atom molecule

Concepted and developed by Henrik Somogyi, 2021-2022

           

Your browser does not support the HTML 5 Canvas

Users Guide

This animation mimics the freezing, the forming of crystal lattice of 2-atom molecule material. Atoms (regardless which molecule they belong to) attract (when farther) or repulse (when too close) each other. Attraction force is inverse proportional with square of distance. Repulsion is inverse proportional with 3rd power of distance. Molecules bounce back from the sides (without loss of motion energy). The molecules keep their form : the atomic distance is constant. The initial molecule speeds are random. Initial molecule location and postion are random (uniform distributions). When friction is on, then each molecule loses a proportional part of its motion energy (both linear and angular) by time. Total sum of motion energy (from linear motion anf from spinning) is displayed. Friction on/off as well.

Watch how the matter gets into circular shape (surface tension) and how molecules attempt get into a certain grid at low temperature. Note, that due to calculational simplification, sometimes some molecules get a high angular velocity. To compensate this, you may wish to press a few times the "Coold down" button.

Button "Cool down" : when pressed, each molecule loses a fix percentage from its motion energy.
Button "Warmp up" : when pressed, each molecule gains a fix percentage to its motion energy.
Button "Reset" : when pressed, each molecule gets to a random start position, with random speed and random angular velocity.
Button "Friction" : toggles if friction is on or off.