An open API service indexing awesome lists of open source software.

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

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):