Skip to content

Commit

Permalink
added new skills
Browse files Browse the repository at this point in the history
  • Loading branch information
rageSpin committed Jun 20, 2024
1 parent e08fefe commit ba1bb2f
Show file tree
Hide file tree
Showing 13 changed files with 814 additions and 44 deletions.
Binary file added assets/images/sections/skills/cassandra.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 34 additions & 2 deletions content/posts/physics/percolation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ menu:
parent: physics
weight: 9
hero: images/lattice_illustration.png
tags: ["Science", ""]
tags: ["Science", "Physics", "Statistics"]
categories: ["Physics"]
---
## Introduction
Expand All @@ -25,7 +25,37 @@ Percolation theory is important because it provides insights into the behavior o
* **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
* **Geophysics**: In oil recovery, percolation theory models the flow of fluids through porous rocks, helping to optimize extraction processes
* **Forest Fires**: Percolation models can simulate the spread of forest fires, helping in the development of strategies for fire prevention and control
.


## Mathematical and Physics Theory

Percolation theory can be studied using site percolation or bond percolation models. In site percolation, each site (or node) on a lattice is either occupied with probability $ p $ or empty with probability $ 1 - p $. In bond percolation, each bond (or edge) between sites is open with probability $ p $ or closed with probability $ 1 - p $.

### Step-by-Step Explanation:

1. **Define the Lattice**: Consider a 2D square lattice or a 3D cubic lattice. For simplicity, let's use a 2D square lattice.

2. **Assign Probabilities**: For each site (or bond), assign a probability $ p $ that it is occupied (or open).

3. **Cluster Formation**: Identify clusters of connected sites (or bonds). Two sites are in the same cluster if there is a path of occupied sites (or open bonds) connecting them.

4. **Critical Threshold $ p_c $**: Determine the critical probability $ p_c $ at which an infinite cluster first appears. For a 2D square lattice, it has been rigorously shown that $ p_c \approx 0.5927 $.

5. **Mathematical Formulation**: The percolation probability $ P(p) $ is the probability that a given site belongs to the infinite cluster. Near the critical threshold, this follows a power-law behavior:
$$
P(p) \sim (p - p_c)^\beta
$$
where $ \beta $ is a critical exponent and equal to $\frac{5}{36}$ for 2D squared lattice.

6. **Correlation Length $ \xi $**: The average size of finite clusters below $ p_c $ is characterized by the correlation length $ \xi $, which diverges as:
$$
\xi \sim |p - p_c|^{-\nu}
$$
where $ \nu $ is another critical exponent

7. **Conductivity and Other Properties**: In practical applications, properties like electrical conductivity in materials can be modeled by considering the effective medium theory or numerical simulations to calculate the likelihood of percolation and the size of clusters.

By analyzing these steps, percolation theory provides a comprehensive understanding of how macroscopic properties emerge from microscopic randomness, revealing universal behaviors that transcend specific systems.

## Python Simulation Code

Expand Down Expand Up @@ -119,6 +149,7 @@ for i, p in enumerate(p_values):
# Adjust spacing between subplots
plt.subplots_adjust(wspace=0.1, hspace=0.1)


# Show the plot
plt.show()
```
Expand All @@ -132,6 +163,7 @@ In further version, also a connected path from left to right can be considered.

## Conclusion
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.
In general, this confirms the numerical value of $p_c$ that can be found in [literature](https://arxiv.org/abs/cond-mat/0005264) of 0.5927

In further articles we will explore some [python libraries](https://pypercolate.readthedocs.io/en/stable/) to develop a more advanced and practical example.

Expand Down
13 changes: 12 additions & 1 deletion data/en/sections/skills.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ skills:
# logo: /images/sections/skills/prometheus.png
# summary: "Capable of setup, configure Prometheus metrics. Experienced with PromQL, AlertManager. Also, experienced with writing metric exporters."
# url: "https://prometheus.io/"
- name: Apache Cassandra DB
logo: /images/sections/skills/cassandra.png
summary: "Experience with NoSQL and distributed database"

- name: _Apache_ Spark
logo:
summary: Big Data Analytics and Processing. Used with Scala and Python.

- name: TCAD Sentaurus
logo:
summary: "Nanodevices design and electrical simulation (FinFET, GAAFET, NanoWires, InfraRed Pixels)"

- name: Linux
logo: /images/sections/skills/linux.png
Expand All @@ -55,4 +66,4 @@ skills:

- name: C++
logo: /images/sections/skills/c++.png
summary: "Know basic C/C++ programming. Used often to accelerate python computational time"
summary: "Know basic C/C++ programming. I used often to accelerate python computational time"
50 changes: 49 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,54 @@ <h5 class="card-title">Edge Computing</h5>
<div class="card">
<div class="card-head d-flex">

<h5 class="card-title">Cassandra DB</h5>

</div>
<div class="card-body">
<p class="card-text">Experience with NoSQL and distributed database</p>
</div>
</div>
</a>
</div>


<div class="col-xs-12 col-sm-6 col-lg-4 pt-2">
<a class="text-decoration-none" >
<div class="card">
<div class="card-head d-flex">

<h5 class="card-title">Spark</h5>

</div>
<div class="card-body">
<p class="card-text">Big Data Analytics and Processing. Used with Scala and Python.</p>
</div>
</div>
</a>
</div>


<div class="col-xs-12 col-sm-6 col-lg-4 pt-2">
<a class="text-decoration-none" >
<div class="card">
<div class="card-head d-flex">

<h5 class="card-title">TCAD Sentaurus</h5>

</div>
<div class="card-body">
<p class="card-text">Nanodevices design and electrical simulation (FinFET, GAAFET, NanoWires, InfraRed Pixels)</p>
</div>
</div>
</a>
</div>


<div class="col-xs-12 col-sm-6 col-lg-4 pt-2">
<a class="text-decoration-none" >
<div class="card">
<div class="card-head d-flex">




Expand Down Expand Up @@ -878,7 +926,7 @@ <h5 class="card-title">C&#43;&#43;</h5>

</div>
<div class="card-body">
<p class="card-text">Know basic C/C++ programming. Used often to accelerate python computational time</p>
<p class="card-text">Know basic C/C++ programming. I used often to accelerate python computational time</p>
</div>
</div>
</a>
Expand Down
2 changes: 1 addition & 1 deletion public/index.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions public/posts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,10 @@ <h5 class="card-title">Percolation</h5>
<li class="rounded"><a href="/tags/science/" class="btn btn-sm btn-info">Science</a></li>


<li class="rounded"><a href="/tags/" class="btn btn-sm btn-info"></a></li>
<li class="rounded"><a href="/tags/physics/" class="btn btn-sm btn-info">Physics</a></li>


<li class="rounded"><a href="/tags/statistics/" class="btn btn-sm btn-info">Statistics</a></li>

</ul>
</div>
Expand All @@ -412,7 +415,7 @@ <h5 class="card-title">Percolation</h5>
<div class="card-footer">
<span class="float-start">
Saturday, June 8, 2024
| 4 minutes </span>
| 5 minutes </span>
<a
href="/posts/physics/percolation/"
class="float-end btn btn-outline-info btn-sm">Read</a>
Expand Down
7 changes: 5 additions & 2 deletions public/posts/physics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,10 @@ <h5 class="card-title">Percolation</h5>
<li class="rounded"><a href="/tags/science/" class="btn btn-sm btn-info">Science</a></li>


<li class="rounded"><a href="/tags/" class="btn btn-sm btn-info"></a></li>
<li class="rounded"><a href="/tags/physics/" class="btn btn-sm btn-info">Physics</a></li>


<li class="rounded"><a href="/tags/statistics/" class="btn btn-sm btn-info">Statistics</a></li>

</ul>
</div>
Expand All @@ -370,7 +373,7 @@ <h5 class="card-title">Percolation</h5>
<div class="card-footer">
<span class="float-start">
Saturday, June 8, 2024
| 4 minutes </span>
| 5 minutes </span>
<a
href="/posts/physics/percolation/"
class="float-end btn btn-outline-info btn-sm">Read</a>
Expand Down
56 changes: 51 additions & 5 deletions public/posts/physics/percolation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<meta property="article:published_time" content="2024-06-08T08:06:25+06:00">
<meta property="article:modified_time" content="2024-06-08T08:06:25+06:00">
<meta property="article:tag" content="Science">
<meta property="article:tag" content="Physics">
<meta property="article:tag" content="Statistics">


<meta name="twitter:card" content="summary">
Expand Down Expand Up @@ -351,7 +353,7 @@
<div class="author-profile ms-auto align-self-lg-center">
<img class="rounded-circle" src='/images/author/profile_hu8a567cefac8c1a165d433ac0796ac418_3088978_120x120_fit_q75_box.jpg' alt="Author Image">
<h5 class="author-name">Stefano Giannini</h5>
<p class="text-muted">Saturday, June 8, 2024 | 4 minutes</p>
<p class="text-muted">Saturday, June 8, 2024 | 5 minutes</p>
</div>


Expand All @@ -369,7 +371,10 @@ <h1>Percolation</h1>
<li class="rounded"><a href="/tags/science/" class="btn btn-sm btn-info">Science</a></li>


<li class="rounded"><a href="/tags/" class="btn btn-sm btn-info"></a></li>
<li class="rounded"><a href="/tags/physics/" class="btn btn-sm btn-info">Physics</a></li>


<li class="rounded"><a href="/tags/statistics/" class="btn btn-sm btn-info">Statistics</a></li>

</ul>
</div>
Expand All @@ -385,9 +390,43 @@ <h2 id="why-is-percolation-important-useful-applications">Why is Percolation Imp
<li><strong>Epidemiology</strong>: 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</li>
<li><strong>Network Theory</strong>: 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</li>
<li><strong>Geophysics</strong>: In oil recovery, percolation theory models the flow of fluids through porous rocks, helping to optimize extraction processes</li>
<li><strong>Forest Fires</strong>: Percolation models can simulate the spread of forest fires, helping in the development of strategies for fire prevention and control
.</li>
<li><strong>Forest Fires</strong>: Percolation models can simulate the spread of forest fires, helping in the development of strategies for fire prevention and control</li>
</ul>
<h2 id="mathematical-and-physics-theory">Mathematical and Physics Theory</h2>
<p>Percolation theory can be studied using site percolation or bond percolation models. In site percolation, each site (or node) on a lattice is either occupied with probability $ p $ or empty with probability $ 1 - p $. In bond percolation, each bond (or edge) between sites is open with probability $ p $ or closed with probability $ 1 - p $.</p>
<h3 id="step-by-step-explanation">Step-by-Step Explanation:</h3>
<ol>
<li>
<p><strong>Define the Lattice</strong>: Consider a 2D square lattice or a 3D cubic lattice. For simplicity, let&rsquo;s use a 2D square lattice.</p>
</li>
<li>
<p><strong>Assign Probabilities</strong>: For each site (or bond), assign a probability $ p $ that it is occupied (or open).</p>
</li>
<li>
<p><strong>Cluster Formation</strong>: Identify clusters of connected sites (or bonds). Two sites are in the same cluster if there is a path of occupied sites (or open bonds) connecting them.</p>
</li>
<li>
<p><strong>Critical Threshold $ p_c $</strong>: Determine the critical probability $ p_c $ at which an infinite cluster first appears. For a 2D square lattice, it has been rigorously shown that $ p_c \approx 0.5927 $.</p>
</li>
<li>
<p><strong>Mathematical Formulation</strong>: The percolation probability $ P(p) $ is the probability that a given site belongs to the infinite cluster. Near the critical threshold, this follows a power-law behavior:
$$
P(p) \sim (p - p_c)^\beta
$$
where $ \beta $ is a critical exponent and equal to $\frac{5}{36}$ for 2D squared lattice.</p>
</li>
<li>
<p><strong>Correlation Length $ \xi $</strong>: The average size of finite clusters below $ p_c $ is characterized by the correlation length $ \xi $, which diverges as:
$$
\xi \sim |p - p_c|^{-\nu}
$$
where $ \nu $ is another critical exponent</p>
</li>
<li>
<p><strong>Conductivity and Other Properties</strong>: In practical applications, properties like electrical conductivity in materials can be modeled by considering the effective medium theory or numerical simulations to calculate the likelihood of percolation and the size of clusters.</p>
</li>
</ol>
<p>By analyzing these steps, percolation theory provides a comprehensive understanding of how macroscopic properties emerge from microscopic randomness, revealing universal behaviors that transcend specific systems.</p>
<h2 id="python-simulation-code">Python Simulation Code</h2>
<p>Here is a simple example of a site percolation simulation on a square lattice in Python:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-python" data-lang="python"><span style="display:flex;"><span><span style="color:#75715e"># -*- coding: utf-8 -*-</span>
Expand Down Expand Up @@ -477,6 +516,7 @@ <h2 id="python-simulation-code">Python Simulation Code</h2>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Adjust spacing between subplots</span>
</span></span><span style="display:flex;"><span>plt<span style="color:#f92672">.</span>subplots_adjust(wspace<span style="color:#f92672">=</span><span style="color:#ae81ff">0.1</span>, hspace<span style="color:#f92672">=</span><span style="color:#ae81ff">0.1</span>)
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span><span style="color:#75715e"># Show the plot</span>
</span></span><span style="display:flex;"><span>plt<span style="color:#f92672">.</span>show()
</span></span></code></pre></div><p>This code generates a square lattice of size <code>n</code> with site vacancy probability <code>p</code>, checks if the lattice percolates (i.e., if there is a connected path from the top to the bottom), and plots the lattice.</p>
Expand All @@ -495,7 +535,8 @@ <h3 id="results">Results</h3>
>

<h2 id="conclusion">Conclusion</h2>
<p>The previous plot shows that with <em>p&gt;0.58</em> 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 <em>p&gt;0.60</em> percolation happens more than 90% of the time.</p>
<p>The previous plot shows that with <em>p&gt;0.58</em> 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 <em>p&gt;0.60</em> percolation happens more than 90% of the time.
In general, this confirms the numerical value of $p_c$ that can be found in <a href="https://arxiv.org/abs/cond-mat/0005264" target="_blank" rel="noopener">literature</a> of 0.5927</p>
<p>In further articles we will explore some <a href="https://pypercolate.readthedocs.io/en/stable/" target="_blank" rel="noopener">python libraries</a> to develop a more advanced and practical example.</p>
<!-- ## GitHub Repositories
Expand Down Expand Up @@ -648,6 +689,11 @@ <h5 class="text-center ps-3">Table of Contents</h5>
<ul>
<li><a href="#introduction">Introduction</a></li>
<li><a href="#why-is-percolation-important-useful-applications">Why is Percolation Important? Useful Applications</a></li>
<li><a href="#mathematical-and-physics-theory">Mathematical and Physics Theory</a>
<ul>
<li><a href="#step-by-step-explanation">Step-by-Step Explanation:</a></li>
</ul>
</li>
<li><a href="#python-simulation-code">Python Simulation Code</a>
<ul>
<li><a href="#results">Results</a></li>
Expand Down
Loading

0 comments on commit ba1bb2f

Please sign in to comment.