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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file finitewave_model_barkley-0.3.0.tar.gz.
File metadata
- Download URL: finitewave_model_barkley-0.3.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6b05fb713f53811cceed1865dd5b89b48e4da4a4da6c59f472917ae4c08ea8b
|
|
| MD5 |
1b53a0e4c4513f3664e7d77b51f15238
|
|
| BLAKE2b-256 |
e27224ce7d9ee413414fe02d2a54f1a5b4e783bf5d66466deb53ea42f8e858e6
|
File details
Details for the file finitewave_model_barkley-0.3.0-py3-none-any.whl.
File metadata
- Download URL: finitewave_model_barkley-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6be84e002c78e000776aa62bd2060cb3fe03620df38aa46a57d561121e84bcad
|
|
| MD5 |
90f843ed14012920fd3d701155c9264c
|
|
| BLAKE2b-256 |
28539cfd9d17d2540ea029a96b0e66ecc345a9d0bc794f63e4d10b78506f022c
|