phase transition (gas ↔ square lattice) with hysteresis
✓ Published0🌍 Public
JJazzTap
Last edited Oct 13, 2017
Created on Oct 13, 2017
This example demonstrates a phase transition between a gaseous and square-lattice state, with hysteresis, using a NetLogo agent-based model. Turtles compute a stress value based on local crowding and clumping, which drives their movement speed and turning behavior. The visualization renders turtles as semi-transparent gray particles whose opacity and position reveal collective ordering; two plots track the mean and variance of stress over time, highlighting the transition and memory effect. The code uses NetLogo’s `turtles-own`, `ask`, and `plot` primitives to simulate and display the dynamics.
AI-generated description