This simulation visualizes a Complex Scalar Field evolving under the Ginzburg-Landau equation. Instead of arrows, you see a continuous field of color and light.
These are Vortices 🌀. In this model, the field wants to have a magnitude of 1 (bright), but if the phase twists by 360° around a specific point, the math forces the magnitude to drop to zero at the center to avoid a discontinuity.
Think of them as the "particles" of this universe. They are stable knots that cannot just fade away; a vortex must collide with an anti-vortex to annihilate 💥.
The universe is a Torus 🍩 (it wraps around). A Torus cannot hold a single topological charge (+1) without breaking. When you click to spawn one vortex, the math creates a Branch Cut—a "seam" where the phase doesn't match up at the edge of the world.
The physics engine instantly spawns a ghost Anti-Vortex (-1) at the seam to heal this tear and restore the total charge to zero. This violent correction is why you see the "messy" birth of particles!
Try double-clicking! The simulation alternates between spawning a +1 vortex and a -1 vortex on each click (like flipping a switch). If you click roughly in the same spot twice, the second vortex will cancel out the first one, and the field will heal back to a smooth state.
Yes, but with a twist! You are simulating a Macroscopic Wavefunction. Unlike the Schrödinger equation which describes a single particle, this field describes a "Condensate" (like a Superconductor or Superfluid) where billions of particles lock into the exact same state and behave like a single, giant quantum object.
This uses the Time-Dependent Ginzburg-Landau (TDGL) equation:
∂ψ/∂t = D∇²ψ + ψ(1 - |ψ|²)
It describes systems undergoing a phase transition, such as:
This controls how the simulation is drawn, illustrating a key difference between computational methods and physical theory:
Related Project:
Interactive U(1) XY Model Simulation →
Find the source code on GitHub.