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.5.0.tar.gz (7.2 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.5.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for finitewave_model_barkley-0.5.0.tar.gz
Algorithm Hash digest
SHA256 dd3ff911c60771affcc4568163dc84e2412279d53b7afd9beb982fde639147c8
MD5 990be79dad8645902444a5630c5a01b2
BLAKE2b-256 e9724d07ef1e81405d7582e539a0b30fec5f9fcf9672f208e018066bacb10a26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finitewave_model_barkley-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58389b24e678891c60d372b6fc32320353a8f4bed5c70699e8bc5ed26af7201b
MD5 f033dea89bf857a70ec27e172d3ca79a
BLAKE2b-256 5b3aba99ffb646a8c62a1b79a5fa2e6e685003105ba9a998cac18e081b210d4e

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