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.2.0.tar.gz (6.9 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.2.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for finitewave_model_barkley-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e382f81582e34869f5496b4d19069481bebb0016c479775122240ed74ad07113
MD5 fd9f82cab3f06fe33173eee2f71b172e
BLAKE2b-256 605123e672c528dccce5c0e16fec2e74a5440ab9a73a2c96683c5644ba3c6437

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finitewave_model_barkley-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8836c7baa8b2812c0f9a48a9cf73a7b998ed84c4ec32fe06a75d0d33278531a
MD5 e367cf77efd008f3b798c016cd9b92e8
BLAKE2b-256 8b765541ad5579ef513118f699a1838c24fcd4bc385366ca08ea98203b1c564f

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