Skip to main content

Simulations of spatial networks growth

Project description

Reticuler

PyPI Documentation Status Code style: black

Python package to simulate the growth of spatial transport networks in nature.

Documentation

Setup

External dependencies:

FreeFEM++ - PDE solver

Package installation

pip install reticuler

Usage

Four command line scripts are installed during the installation:

  • reticulate - runs the simulation
  • reticulate_back - runs the the Backward Evolution Algorithm
  • clip_ret - clips the network to one of the growth thresholds: maximum forward evolution step, length, height, evolution time, or BEA step
  • plot_ret - plots the network based on the .json file from the simulation
  • script_ret - prepares a FreeFEM++ script based on the .json file

To use just type in the command line: reticulate -h

Typical network growth simulation:

reticulate -out test --growth_params {\"growth_thresh_type\":1,\"growth_thresh\":2}
  • output file: test,
  • growth threshold type: maximum network height,
  • growth threshold: 2

How to cite

[1] Through history to growth dynamics: backward evolution of spatial networks, S. Żukowski, P. Morawiecki, H. Seybold, P. Szymczak, Sci. Rep. 12, 20407 (2022).

[2] Breakthrough-induced loop formation in evolving transport networks, S. Żukowski, A. J. M. Cornelissen, F. Osselin, S. Douady, P. Szymczak, PNAS 121 (29), e2401200121 (2024). Materials

References: The thin-finger growth algorithm used in this package was based on an earlier code described in the paper Bifurcation dynamics of natural drainage networks (A. Petroff, O. Devauchelle, H. Seybold, and D. H. Rothman. Philos. Trans. Royal Soc. A 371, 20120365, 2013)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reticuler-4.0.tar.gz (48.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reticuler-4.0-py3-none-any.whl (56.1 kB view details)

Uploaded Python 3

File details

Details for the file reticuler-4.0.tar.gz.

File metadata

  • Download URL: reticuler-4.0.tar.gz
  • Upload date:
  • Size: 48.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for reticuler-4.0.tar.gz
Algorithm Hash digest
SHA256 f5508400dcf70ce8fb548f461265d959b3777183acc3248b60e3fdabcfebe603
MD5 4afc58e08ef8f72887d4c1004cd4bd78
BLAKE2b-256 128d137985fbae366319fdf6d6c84d37db09679edae6c05ad16ac9f275aab2de

See more details on using hashes here.

Provenance

The following attestation bundles were made for reticuler-4.0.tar.gz:

Publisher: pypi.yml on stzukowski/reticuler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file reticuler-4.0-py3-none-any.whl.

File metadata

  • Download URL: reticuler-4.0-py3-none-any.whl
  • Upload date:
  • Size: 56.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for reticuler-4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6eed907e712b6d48f8b4c919ddc877615867a70a027ce5a35268de2b044f6088
MD5 ecd6ef15e6c7f415cc7a59b1d7cb4744
BLAKE2b-256 5d8ff8f4d3baf018e3eda0705b0c2c16395008dee6fc43bc0ab7ba1a0e17481c

See more details on using hashes here.

Provenance

The following attestation bundles were made for reticuler-4.0-py3-none-any.whl:

Publisher: pypi.yml on stzukowski/reticuler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page