Skip to main content

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 example.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 for w (ms)
  • tau_w_p = 1020 - Activation time constant for w (ms)
  • k = 10 - Scaling factor for recovery dynamics
  • u_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

finitewave_model_fenton_karma-0.2.0.tar.gz (8.5 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_fenton_karma-0.2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for finitewave_model_fenton_karma-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6191f61f4976c915552bb2651ef064e6814725f6a70dda548c4e6c5b8fa7c9c5
MD5 4a4089ff3940b4c173e934abaaf3488f
BLAKE2b-256 b819d2b3ec877b7b17b98805ee4ddd0f8bf08c1cee2e4658ae21d1b5bf9e6240

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for finitewave_model_fenton_karma-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 871a15f7f0431a53a75570e72c7fb8f9bacaddd862592084f8b69583e4603958
MD5 176e2556f566ad8c449a188e40081ab4
BLAKE2b-256 f3ded95773593e947d3cfd044846373e2edbda395cc88ed42831644232095446

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