SkillAgentSearch skills...

DiffusionLimitedAggregation

Simulation of 3D cluster formation through diffusion using Cython, NumPy and VPython

Install / Use

/learn @jrieke/DiffusionLimitedAggregation
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

DiffusionLimitedAggregation

Simulation of 3D cluster formation through diffusion using Cython, NumPy and VPython.<br> Diffusion limited aggregation (DLA) is a process whereby diffusive particles attach to each other and form highly fractal clusters (<a href="http://en.wikipedia.org/wiki/Diffusion-limited_aggregation">Wikipedia</a>, see also <a href="http://pmc.polytechnique.fr/pagesperso/dg/cours/biblio/PRB%2027,%205686%20(1983)%20Witten,%20Sander%20%5BDiffusion-limited%20aggregation%5D.pdf">Witten / Sander 1983</a>). DLA occurs in many diffusion-controlled systems, e. g. formation of snow flakes. <br> <br> This program uses random particle walks to simulate DLA in three dimensions. The particles are created on a random spot surrounding the center and perform a random walk until they come close to another particle and attach.<br> The alogrithm uses Cython (a Python package allowing C functionality inside Python) for speed-up and VPython for 3D visualization.<br> <br> Run src/run.py to start. Requires Python 3.3, NumPy, Cython and VPython. <br><hr> Simulation inside a cube of edge length 400 (various zoom levels, colors indicate particle order): <br><br> <img src="/pictures%20n%20=%20400/1.png" height=250px> <img src="/pictures%20n%20=%20400/4.png" height=250px> <img src="/pictures%20n%20=%20400/5.png" height=250px>

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated2y ago
Forks1

Languages

Python

Security Score

55/100

Audited on Apr 9, 2023

No findings