Skip to main content

Barkley model.

Project description

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

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

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

finitewave_model_barkley-0.3.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

finitewave_model_barkley-0.3.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file finitewave_model_barkley-0.3.0.tar.gz.

File metadata

File hashes

Hashes for finitewave_model_barkley-0.3.0.tar.gz
Algorithm Hash digest
SHA256 f6b05fb713f53811cceed1865dd5b89b48e4da4a4da6c59f472917ae4c08ea8b
MD5 1b53a0e4c4513f3664e7d77b51f15238
BLAKE2b-256 e27224ce7d9ee413414fe02d2a54f1a5b4e783bf5d66466deb53ea42f8e858e6

See more details on using hashes here.

File details

Details for the file finitewave_model_barkley-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for finitewave_model_barkley-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6be84e002c78e000776aa62bd2060cb3fe03620df38aa46a57d561121e84bcad
MD5 90f843ed14012920fd3d701155c9264c
BLAKE2b-256 28539cfd9d17d2540ea029a96b0e66ecc345a9d0bc794f63e4d10b78506f022c

See more details on using hashes here.

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