psychoactive.com · simulations
Soap-film energy minimizer
Click empty space to add a pole (up to nine) and drag poles to move them. Junctions are pulled by the films attached to them, the films act like constant tension, and the network keeps shrinking until the pulls balance. At a balanced junction three films meet at 120 degrees, as in Plateau's laws for soap films. The network can stop in a local minimum that is longer than the best one, which is easy to see with five or more poles. Shake it to give it a chance to find a shorter one.
The code is in this page's source.
More simulations · Andrés Gómez Emilsson · @algekalipso