PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Thermodynamics

Other simulators in this category — or see all 31.

View category →
NewUniversity / research

Bose–Einstein vs Fermi–Dirac

Grand-canonical occupation f(E) at the same T and μ: FD, BE, and classical Maxwell–Boltzmann comparison.

Launch Simulator
FeaturedSchool

Ideal Gas Simulator

Bouncing particles in a box. See PV=nRT in action.

Launch Simulator
School

Gas Laws Interactive

Boyle's, Charles's, Gay-Lussac's laws with interactive piston.

Launch Simulator
School

Heat Transfer

Conduction, convection, and radiation with temperature gradients.

Launch Simulator
School

Phase Diagram

Temperature-pressure diagram with phase transitions.

Launch Simulator
School

Carnot Engine

PV diagram animation with cycle steps and efficiency.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Thermodynamics/Site Percolation (2D)

Site Percolation (2D)

Site percolation on a square lattice colors each cell independently “open” with probability p and “closed” otherwise. Open cells that share an edge form clusters. Near the critical threshold p_c ≈ 0.592746 on the infinite square lattice, correlation lengths diverge and the spanning cluster (when it exists) is a fractal with fractal dimension D_f = 91/48 in two dimensions. This simulator draws one finite realization at your chosen p, labels connected components, highlights the largest cluster, and reports whether any cluster connects the left and right edges (spanning need not be the largest cluster). A crude box-counting slope on the largest cluster gives a rough D̂ when the cluster is large enough; it is noisy for small systems and should be read as illustrative.

Who it's for: Students learning phase transitions on networks, scaling, and universality in statistical physics.

Key terms

  • Percolation
  • Critical probability p_c
  • Spanning cluster
  • Fractal dimension
  • Box counting
  • Correlation length

Occupation probability

0.59

Independent site percolation: each cell is occupied with probability p. At p_c ≈ 0.5927 the spanning cluster (if present) is fractal; D_f ≈ 91/48 ≈ 1.896 for 2D (textbook value). Box-counting on the largest cluster gives a rough D̂ when it is large enough.

Measured values

Largest cluster3873sites
Fraction of lattice42.02%
Spanning L→R (any cluster)yes
D̂ (box counting)1.87

How it works

Square-lattice site percolation: random occupation, cluster labeling, spanning probability near p_c, and a crude fractal dimension from box counting on the largest cluster.

Frequently asked questions

Why does my estimated D̂ differ from 91/48?
91/48 describes the spanning cluster at criticality in the thermodynamic limit. A single L×L sample is finite, sub-leading corrections matter, and box counting with a handful of box sizes is statistically noisy. Expect qualitative agreement near p_c only when the largest cluster is big and you average many realizations.
Is this bond or site percolation?
Site percolation: vertices (cells) are occupied randomly; edges are implicit between occupied nearest neighbors. Bond percolation would randomize links instead; the critical probability is different.
Does “spanning” require the highlighted largest cluster to cross the system?
No. The gold frame means some open cluster connects the left column to the right column. The largest cluster is highlighted for visualization and for the box-counting estimate D̂, but it might sit in the interior while a thinner cluster provides connectivity.