Basharat WantPhysics · University of Kashmir
Menu

Physics Behind the Website

Square lattices, magnetic domain reversal and Brownian diffusion in the site’s three animations.

Lattice Genesis

Even the favicon is physics

The BW monogram is a programmatically constructed two-dimensional square Bravais lattice, governed by the equation

Rij=a(ix^+jy^),i,j∈Z\mathbf{R}_{ij} = a(i\hat{\mathbf{x}} + j\hat{\mathbf{y}}),\qquad i,j \in \mathbb{Z}

Here aa is the uniform lattice constant, and i,ji,j are integer lattice indices.

Every atomic site occupies a mathematically precise position, with a constant nearest-neighbour separation.

∣Ri+1,j−Rij∣=∣Ri,j+1−Rij∣=a\left|\mathbf{R}_{i+1,j}-\mathbf{R}_{ij}\right| = \left|\mathbf{R}_{i,j+1}-\mathbf{R}_{ij}\right| = a

The initials emerge exclusively through selective highlighting of substitutional sites, without introducing any positional displacement in the idealised lattice.

ΔRij=0\Delta\mathbf{R}_{ij} = 0

The site occupancy can be represented by a binary function.

s(i,j)={1,(i,j)∈SBW0,(i,j)∉SBWs(i,j)=\begin{cases}1, & (i,j)\in\mathcal{S}_{BW} \\ 0, & (i,j)\notin\mathcal{S}_{BW}\end{cases}

Here SBW\mathcal{S}_{BW} denotes the subset of lattice sites selected to form the initials BW.

Inspired by atomic manipulation, scanning tunnelling microscopy (STM) and substitutional defect engineering, the design illustrates how information can be encoded within an idealised crystalline structure.

The favicon was generated entirely through Python and rendered as a scalable vector graphic (SVG). The image is a mathematical representation. No experimental STM micrograph was used.

BW initials highlighted in the original square-lattice favicon
Original BW favicon

Magnetic Memory

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\}
Basharat Want inscribed in a magnetic spin lattice
Original Magnetic Memory animation

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.

Entropy — Order Lost

Even the error page obeys physics

The 404 page visualises Brownian diffusion and the gradual dispersal of spatial information. At the start, 12,000 particles form the number 404. Their stochastic motion gradually dissolves the inscription.

Each particle follows a two-dimensional Brownian diffusion process.

dRi(t)=2D(t) dWi(t)d\mathbf{R}_i(t)=\sqrt{2D(t)}\,d\mathbf{W}_i(t)

D(t)D(t) is the time-dependent diffusion coefficient, and Wi(t)\mathbf{W}_i(t) is a two-dimensional Wiener process.

The corresponding probability density evolves according to the diffusion equation.

∂ρ∂t=D(t)∇2ρ\frac{\partial\rho}{\partial t}=D(t)\nabla^2\rho

As the particles disperse, their coarse-grained spatial entropy generally increases.

Scg(t)=−kB∑jpj(t)ln⁡pj(t)S_{\mathrm{cg}}(t)=-k_B\sum_j p_j(t)\ln p_j(t)

pj(t)p_j(t) is the probability of finding a particle in spatial region jj. The particles redistribute while their total number stays fixed, making the information in the initial arrangement progressively less distinguishable.

N(t)=N0=12,000N(t)=N_0=12{,}000

Generated in Python through numerical computation, the animation represents idealised stochastic diffusion. Its entropy measure describes the coarse-grained spatial distribution alone. Complete thermodynamic entropy lies outside the scope of the model.

Replay restores the initial conditions by resetting the computation. The second law of thermodynamics is unaffected.

The website begins with order, concludes with magnetic ordering, and when something goes wrong, entropy wins.