Skip to content
Modeling the statistical phenomenon of percolation
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE.txt
README.md
clusters.py
interactive.py
invasion-percolation_point.gif
invasion.py
percolation.py
series.py

README.md

Percolation

This repository is a small collection of code to model the statistical phenomenon of percolation, and to possibly visualise the appearance of the infinite percolating cluster, and the corresponding threshold probability.

Site percolation is considered, on a 2 dimensional, square lattice.

Dependencies: python3, numpy, and matplotlib

The notation used in the program is as follows:

  • SIZE : The number of sites along a length of the square lattice. So the total number of sites will be SIZE2.
  • P : The occupation probability of a site.
  • STEPS : The number of distinct stages.

All the files are independent programs, and may be run using python 3. The different programs generate slightly different visualisations of percolation:

  • percolation: A single image of percolation at some P.
  • series : A slide-show of lattices across a range of P values.
  • interactive: Like series, but with a slider.
  • clusters : Identifying the infinite cluster, and also other finite ones.
  • invasion : Emergence of pc from a wetting process

The clusters program is incomplete, and is a WORK-IN-PROGRESS.

You can’t perform that action at this time.