Fenton-Karma model.
Project description
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)
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_fenton_karma-0.5.0.tar.gz.
File metadata
- Download URL: finitewave_model_fenton_karma-0.5.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37c4b19721be724f2fc296b09beaf41ebb24b113cec646d9792f91c5eecb3e1f
|
|
| MD5 |
99c89bed769c38293b12393e63eb9766
|
|
| BLAKE2b-256 |
6cc3d9d4c5b5d66e82b286da74c2f6c828e10c080cca1092a0ec942a05c338cd
|
File details
Details for the file finitewave_model_fenton_karma-0.5.0-py3-none-any.whl.
File metadata
- Download URL: finitewave_model_fenton_karma-0.5.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a057c5848b6bc57eb1b4b45e10ae22f0aa51d48a8705665de42c88f391d6aafd
|
|
| MD5 |
3f70af74ae9d59ec26b2a99a9f853ec8
|
|
| BLAKE2b-256 |
68f9328e3f9918316b30eb82f2ac49186be74b8abda31fd18be5abfc220249eb
|