
Magnetic Memory visualises magnetic domain reversal through a spatially biased two-dimensional Ising model implemented in Python. The simulation places 14,400 magnetic moments on a periodic square lattice of 160 × 90 sites. Each moment occupies a fixed site and has one of two spin orientations.
The physics behind Magnetic Memory
A modified Ising Hamiltonian governs the magnetic interactions.
- is the ferromagnetic exchange coupling.
- is the externally applied magnetic field.
- is the site-dependent local magnetic bias.
- is the orientation of an individual spin.
- denotes nearest-neighbour interactions.
The local magnetic bias encodes the name BASHARAT WANT in the spin lattice.
denotes the subset of sites that form the inscription.
Magnetic domain reversal
The system begins in an idealised state of negative magnetic saturation.
As the external field increases, individual spins reverse stochastically under the Metropolis Monte Carlo algorithm. The energy change for reversing spin is given below, with denoting its nearest neighbours.
The Metropolis criterion gives the probability of accepting a spin reversal.
is the Boltzmann constant and is the absolute temperature. The normalised magnetisation is the mean spin over the sites.
The site-dependent bias favours opposing spin orientations inside and outside the inscription, so the name emerges through magnetic reversal. Each visible arrow represents one simulated moment. The spin configuration and global visual contrast settings determine its direction and displayed intensity.
Preservation of lattice geometry
Every magnetic moment remains at a fixed lattice position.
The lattice constant stays uniform, and positional displacement is zero.
Only the spin orientations evolve during the simulation.
Magnetic Memory illustrates spin reversal in an idealised Ising model under a partial field sweep. A patterned magnetic bias encodes the inscription, and playback time represents simulation progress without calibration to physical time.