Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Percolation Problem Analysis

NotificationsYou must be signed in to change notification settings

sebSR/percolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

General info

The site percolation problem on a square lattice and each site of a lattice is occupied independently with probabilityp. In Monte Carlo simulation, we investigate

  • connection between the first and the last row:The Burning Method
  • distribution of clusters:Hoshen–Kopelman algorithm

Code implementation has made in Python3.Trials configurations of system was made by use pseudo-random numbers and advantage of Python is that core oflibrary generate random numbers use the Mersenne Twister generator which is really good for simulations.

Results

  1. plot_percolation_threshold.png -> probability that there is connection between two sides of lattice
  2. plot_min_path.png -> the shortest path between two sides of lattice
  3. plot_average_cluster.png -> average size of clusters
  4. plot_maximum_cluster.png -> maximum size of clusters

Run

Because of different complexity of used algorithms, we run both methods separately (initial parameters: config.json)

python3 main.py --method burning

python3 main.py --method clustering

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp