You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/posts/physics/percolation/index.md
+89-37
Original file line number
Diff line number
Diff line change
@@ -8,43 +8,37 @@ menu:
8
8
identifier: percolation
9
9
parent: physics
10
10
weight: 9
11
+
hero: images/lattice_illustration.png
11
12
tags: ["Science", ""]
12
13
categories: ["Physics"]
13
14
---
14
-
15
15
## Introduction
16
16
17
-
Percolation theory is a fundamental concept in statistical physics and mathematics that describes the behavior of connected clusters in a random graph. It is a model for understanding how a network behaves when nodes or links are added, leading to a phase transition from a state of disconnected clusters to a state where a large, connected cluster spans the system. This transition occurs at a critical threshold, known as the percolation threshold. The theory has applications in various fields, including material science, epidemiology, and network theory.
17
+
[Percolation theory](https://en.wikipedia.org/wiki/Percolation_theory) is a fundamental concept in statistical physics and mathematics that describes the behavior of connected clusters in a random graph. It is a model for understanding how a network behaves when nodes or links are added, leading to a phase transition from a state of disconnected clusters to a state where a large, connected cluster spans the system. This transition occurs at a critical threshold, known as the percolation threshold. The theory has applications in various fields, including material science, epidemiology, and network theory.
18
18
19
19
## Why is Percolation Important? Useful Applications
20
20
21
-
Percolation theory provides insights into the behavior of complex systems and phase transitions. Here are some key applications:
22
-
23
-
### Material Science
24
-
25
-
Percolation theory helps understand the properties of composite materials, such as electrical conductivity and strength. For example, the electrical conductivity of a composite material can change dramatically when the concentration of conductive filler reaches the percolation threshold.
26
-
27
-
### Epidemiology
28
-
29
-
In studying disease spread, percolation models can predict the outbreak and spread of epidemics. The percolation threshold represents the critical point at which a disease becomes widespread in a population.
30
-
31
-
### Network Theory
21
+
Percolation theory is important because it provides insights into the behavior of complex systems and phase transitions. Here are some key applications:
32
22
33
-
Percolation theory is used to study the robustness and connectivity of networks like the internet or social networks. It helps understand how networks can be disrupted and how to make them more resilient.
34
-
35
-
### Geophysics
36
-
37
-
In oil recovery, percolation theory models the flow of fluids through porous rocks, helping to optimize extraction processes.
38
-
39
-
### Forest Fires
40
-
41
-
Percolation models can simulate the spread of forest fires, aiding in the development of strategies for fire prevention and control.
23
+
***Material Science**: Percolation theory helps in understanding the properties of composite materials, such as conductivity and strength. For example, the electrical conductivity of a composite material can change dramatically when the concentration of conductive filler reaches the percolation threshold
24
+
***Epidemiology**: In the study of disease spread, percolation models can predict the outbreak and spread of epidemics. The percolation threshold can represent the critical point at which a disease becomes widespread in a population
25
+
***Network Theory**: Percolation theory is used to study the robustness and connectivity of networks, such as the internet or social networks. It helps in understanding how networks can be disrupted and how they can be made more resilient
26
+
***Geophysics**: In oil recovery, percolation theory models the flow of fluids through porous rocks, helping to optimize extraction processes
27
+
***Forest Fires**: Percolation models can simulate the spread of forest fires, helping in the development of strategies for fire prevention and control
28
+
.
42
29
43
30
## Python Simulation Code
44
31
45
32
Here is a simple example of a site percolation simulation on a square lattice in Python:
46
33
47
34
```python
35
+
# -*- coding: utf-8 -*-
36
+
"""
37
+
Created on Wed Jun 19 07:15:50 2024
38
+
39
+
@author: stefa
40
+
"""
41
+
48
42
import numpy as np
49
43
import matplotlib.pyplot as plt
50
44
import scipy.ndimage
@@ -55,34 +49,93 @@ def generate_lattice(n, p):
55
49
56
50
defpercolates(lattice):
57
51
"""Check if the lattice percolates."""
52
+
intersection = get_intersection(lattice)
53
+
return intersection.size >1
54
+
55
+
defget_intersection(lattice):
56
+
"""Check if the bottom labels or top labels have more than 1 value equal """
This code generates a square lattice of size `n` with site vacancy probability `p`, checks if the lattice percolates (i.e., if there is a connected path from the top to the bottom), and plots the lattice.
84
127
85
-
## GitHub Repositories
128
+
In further version, also a connected path from left to right can be considered.
The previous plot shows that with _p>0.58_ a percolation path starts to be observed. However, this is so not alwasy happening for stochastical reasons. Hence that plot is the result of several iteration to find the most interesting plot. With _p>0.60_ percolation happens more than 90% of the time.
135
+
136
+
In further articles we will explore some [python libraries](https://pypercolate.readthedocs.io/en/stable/) to develop a more advanced and practical example.
137
+
138
+
<!-- ## GitHub Repositories
86
139
87
140
For more advanced simulations and visualizations, you can refer to the following GitHub repositories:
88
141
@@ -92,7 +145,6 @@ For more advanced simulations and visualizations, you can refer to the following
92
145
These resources provide a comprehensive starting point for understanding and simulating percolation processes using Python.
0 commit comments