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

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

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.6.0.tar.gz (80.4 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.6.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for finitewave_model_barkley-0.6.0.tar.gz
Algorithm Hash digest
SHA256 aca477756f81da514121ede7b3e893040b5cc83577f3ba2f2d086c204fd69c43
MD5 e32dc944e3804f4a79910843c41df116
BLAKE2b-256 b82dbdb6c864712c0de7595a9b61ee5765b3717f0f075d544e03c639f6305bf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finitewave_model_barkley-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1977d1a263fdb4c228308731fd0bf4e9b1b9a03e122a42959d002b12b2b90b6
MD5 206a72d6258889673e54a296005443cc
BLAKE2b-256 ce420e7ee1491d5afc8bb176ef690464df4fedbc970e49f696ec2e6a7132aa96

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