Skip to main content

Barkley Finitewave model

The Barkley model is a simplified two-variable reaction–diffusion system originally developed to study wave propagation in excitable media. While it is not biophysically detailed, it captures essential qualitative features of cardiac-like excitation dynamics such as spiral waves, wave break, and reentry.

This model implementation can be used separately from the Finitewave, allowing for standalone simulations and testing of the model dynamics without the need for the entire framework.

Reference

Barkley, D. (1991). A model for fast computer simulation of waves in excitable media. Physica D: Nonlinear Phenomena, 61-70.

DOI: https://doi.org/10.1016/0167-2789(86)90198-1.

How to use (quickstart)

python -m examples.barkley_example

Alt text

How to test

python -m pytest -q

Repository structure

.
├── barkley/                 # equations package (ops.py)
│   ├── __init__.py
│   └── ops.py               # model equations (pure functions)
├── implementation/          # 0D model implementation
│   ├── __init__.py
│   └── barkley_0d.py
├── example/
│   └── barkley_example.py   # minimal script to run a short trace
├── tests/
│   └── test.py              # smoke test; reproducibility checks
├── .gitignore
├── LICENSE                  # MIT
├── pyproject.toml           # configuration file
└── README.md                # this file

Variables

  • u — Transmembrane potential (dimensionless).
  • v — Recovery variable (dimensionless).

Parameters

  • a = 0.75 - Threshold-like parameter controlling excitability.
  • b = 0.02 - Recovery time scale.
  • eps = 0.02 - Controls sharpness of the activation term (nonlinear gain).

Metadata

Release files for finitewave-model-barkley 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for finitewave-model-barkley 0.6.0
File Size Uploaded
finitewave_model_barkley-0.6.0.tar.gz 80.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for finitewave-model-barkley 0.6.0
File Interpreter ABI Platform
finitewave_model_barkley-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 84.6 kB

Release files / finitewave_model_barkley-0.6.0.tar.gz

Download URL finitewave_model_barkley-0.6.0.tar.gz
Size 80.4 kB
Tags Source
SHA-256 checksum
How to use checksums
aca477756f81da514121ede7b3e893040b5cc83577f3ba2f2d086c204fd69c43
BLAKE2b-256 checksum
How to use checksums
b82dbdb6c864712c0de7595a9b61ee5765b3717f0f075d544e03c639f6305bf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.9

Release files / finitewave_model_barkley-0.6.0-py3-none-any.whl

Download URL finitewave_model_barkley-0.6.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1977d1a263fdb4c228308731fd0bf4e9b1b9a03e122a42959d002b12b2b90b6
BLAKE2b-256 checksum
How to use checksums
ce420e7ee1491d5afc8bb176ef690464df4fedbc970e49f696ec2e6a7132aa96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page