Basharat WantPhysics · University of Kashmir
Menu

Magnetism

Magnetic Memory

A spatially biased Ising model encodes a name through the reversal of magnetic moments on a periodic square lattice.

← Physics Behind the Website
Basharat Want inscribed in a magnetic spin lattice
Original Magnetic Memory animation

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.

sij∈{−1,+1}s_{ij}\in\{-1,+1\}

The physics behind Magnetic Memory

A modified Ising Hamiltonian governs the magnetic interactions.

H=−J∑⟨i,j⟩sisj−∑i(H+hi)si\mathcal{H}=-J\sum_{\langle i,j\rangle}s_i s_j-\sum_i(H+h_i)s_i
  • JJ is the ferromagnetic exchange coupling.
  • HH is the externally applied magnetic field.
  • hih_i is the site-dependent local magnetic bias.
  • sis_i is the orientation of an individual spin.
  • ⟨i,j⟩\langle i,j\rangle denotes nearest-neighbour interactions.

The local magnetic bias encodes the name BASHARAT WANT in the spin lattice.

hij={+h0,(i,j)∈Sname−h0,(i,j)∉Snameh_{ij}=\begin{cases}+h_0, & (i,j)\in\mathcal{S}_{\mathrm{name}}\\-h_0, & (i,j)\notin\mathcal{S}_{\mathrm{name}}\end{cases}

Sname\mathcal{S}_{\mathrm{name}} denotes the subset of sites that form the inscription.

Magnetic domain reversal

The system begins in an idealised state of negative magnetic saturation.

sij(0)=−1s_{ij}(0)=-1

As the external field increases, individual spins reverse stochastically under the Metropolis Monte Carlo algorithm. The energy change for reversing spin ii is given below, with NN(i)NN(i) denoting its nearest neighbours.

ΔEi=2si(J∑j∈NN(i)sj+H+hi)\Delta E_i=2s_i\left(J\sum_{j\in NN(i)}s_j+H+h_i\right)

The Metropolis criterion gives the probability of accepting a spin reversal.

Pflip=min⁡(1,e−ΔEi/(kBT))P_{\mathrm{flip}}=\min\left(1,e^{-\Delta E_i/(k_BT)}\right)

kBk_B is the Boltzmann constant and TT is the absolute temperature. The normalised magnetisation is the mean spin over the NN sites.

m(t)=1N∑i=1Nsi(t)m(t)=\frac{1}{N}\sum_{i=1}^{N}s_i(t)

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.

Rij=a(ix^+jy^)\mathbf{R}_{ij}=a(i\hat{\mathbf{x}}+j\hat{\mathbf{y}})

The lattice constant stays uniform, and positional displacement is zero.

a(t)=a0a(t)=a_0
ΔRij=0\Delta\mathbf{R}_{ij} = 0

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.