https://github.com/jrieke/diffusionlimitedaggregation
Simulation of 3D cluster formation through diffusion using Cython, NumPy and VPython
https://github.com/jrieke/diffusionlimitedaggregation
Last synced: 5 months ago
JSON representation
Simulation of 3D cluster formation through diffusion using Cython, NumPy and VPython
- Host: GitHub
- URL: https://github.com/jrieke/diffusionlimitedaggregation
- Owner: jrieke
- Created: 2014-03-17T21:42:10.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-10-22T22:48:31.000Z (almost 5 years ago)
- Last Synced: 2025-03-05T23:41:49.612Z (7 months ago)
- Language: Python
- Size: 1.3 MB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
DiffusionLimitedAggregation
===========================Simulation of 3D cluster formation through diffusion using Cython, NumPy and VPython.
Diffusion limited aggregation (DLA) is a process whereby diffusive particles attach to each other and form highly fractal clusters (Wikipedia, see also Witten / Sander 1983).
DLA occurs in many diffusion-controlled systems, e. g. formation of snow flakes.
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.
The alogrithm uses Cython (a Python package allowing C functionality inside Python) for speed-up and VPython for 3D visualization.
Run src/run.py to start. Requires Python 3.3, NumPy, Cython and VPython.
Simulation inside a cube of edge length 400 (various zoom levels, colors indicate particle order):
![]()
![]()
![]()