Fenton-Karma Finitewave model
The Fenton-Karma model is a simplified mathematical representation of cardiac action potentials, designed to reproduce the essential excitation–recovery dynamics of cardiac cells. Unlike detailed ionic models, it does not explicitly describe individual ion currents but instead uses a reduced set of variables and parameters to capture the key features of cardiac electrophysiology. This abstraction makes the model computationally efficient while retaining the ability to simulate wave propagation, spiral wave dynamics, and arrhythmia mechanisms in cardiac tissue.
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
Fenton, F. H., & Karma, A. (1998). Vortex dynamics in three-dimensional continuous myocardium with fiber rotation: Filament instability and fibrillation. Chaos: An Interdisciplinary Journal of Nonlinear Science, 8(1), 20-47.
DOI: https://doi.org/10.1063/1.166311
How to use (quickstart)
python -m examples.fenton_karma_example
How to test
python -m pytest -q
Repository structure
.
├── fenton_karma/ # equations package (ops.py)
│ ├── __init__.py
│ └── ops.py # fill with the model equations (pure functions)
├── implementation/ # 0D Fenton-Karma implementation
│ ├── __init__.py
│ └── fenton_karma_0d.py
├── example/
│ └── fenton_karma_example.py # minimal script to run a short trace
├── tests/
│ └── fenton_karma_test.py # smoke test; extend with reproducibility checks
├── .gitignore
├── LICENSE # MIT
├── pyproject.toml # placeholders to replace
└── README.md # this file
Variables
Model state variables: description, units and ranges (optional)
u— Transmembrane potential (mV)v- Initial recovery variable (dimensionless)w- Initial activation variable (dimensionless)
Parameters
Parameters and their default values
tau_r = 130- Recovery time constant (ms)tau_o = 12.5- Activation time constant (ms)tau_d = 0.172- Deactivation time constant (ms)tau_si = 127- Slow inactivation time constant (ms)tau_v_m = 18.2- Membrane time constant (ms)tau_v_p = 10- Potential time constant (ms)tau_w_m = 80- Activation time constant forw(ms)tau_w_p = 1020- Activation time constant forw(ms)k = 10- Scaling factor for recovery dynamicsu_c = 0.13- Threshold for recovery variable (dimensionless)uc_si = 0.85- Slow inactivation threshold (dimensionless)
Metadata
Release files for finitewave-model-fenton-karma 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| finitewave_model_fenton_karma-0.6.0.tar.gz | 98.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| finitewave_model_fenton_karma-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 104.9 kB
Release files / finitewave_model_fenton_karma-0.6.0.tar.gz
| Download URL | finitewave_model_fenton_karma-0.6.0.tar.gz |
|---|---|
| Size | 98.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf38a4556cd9d18b64dc147189f05ba8d1443f861da7a3ffebd4d3bcddebe10a
|
|
BLAKE2b-256 checksum How to use checksums |
24530527ab89d9788313aef1b16b500a2974ab0931653359234292b8ce8cc639
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|
Release files / finitewave_model_fenton_karma-0.6.0-py3-none-any.whl
| Download URL | finitewave_model_fenton_karma-0.6.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29be91330e88ca4130ee52e2c8c715a59652d9ecd0c2d7757415a0802933e42b
|
|
BLAKE2b-256 checksum How to use checksums |
5352dba02c9b21d37223f67b0e87a79920f9b2d28044322e4c5ca16ee0fcd750
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.9
|