Implements the ten Tusscher–Panfilov 2006 (TP06) human ventricular ionic model.
The TP06 model is a detailed biophysical model of the human ventricular action potential, designed to simulate realistic electrical behavior in tissue including alternans, reentrant waves, and spiral wave breakup.
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.
ten Tusscher KH, Panfilov AV. Alternans and spiral breakup in a human ventricular tissue model. Am J Physiol Heart Circ Physiol. 2006 Sep;291(3):H1088–H1100.
DOI: 10.1152/ajpheart.00109.2006
python -m examples.ten_tusscher_panfilov_2006_examplepython -m pytest -q.
├── ten_tusscher_panfilov_2006/ # equations package (ops.py)
│ ├── __init__.py
│ └── ops.py # model equations (pure functions)
├── implementation/ # 0D model implementation
│ ├── __init__.py
│ └── ten_tusscher_panfilov_2006_0d.py
├── example/
│ └── ten_tusscher_panfilov_2006_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
u = -84.5- Membrane potential (mV)cai = 0.00007- Intracellular calcium concentration (mM)casr = 1.3- SR calcium concentration (mM)cass = 0.00007- Subspace calcium concentration (mM)nai = 7.67- Intracellular sodium concentration (mM)Ki = 138.3- Intracellular potassium concentration (mM)m = 0.0- Sodium activation gateh = 0.75- Sodium inactivation gatej = 0.75- Sodium inactivation gatexr1 = 0.0- Rapid delayed rectifier potassium activation gatexr2 = 1.0- Rapid delayed rectifier potassium activation gatexs = 0.0- Slow delayed rectifier potassium activation gater = 0.0- Transient outward potassium activation gates = 1.0- Transient outward potassium inactivation gated = 0.0- L-type calcium channel activation gatef = 1.0- L-type calcium channel inactivation gatef2 = 1.0- L-type calcium channel inactivation gatefcass = 1.0- Calcium release inactivation gaterr = 1.0- Ryanodine receptor activation gateoo = 0.0- Ryanodine receptor open probability
-
ko = 5.4- Potassium extracellular concentration -
cao = 2.0- Calcium extracellular concentration -
nao = 140.0- Sodium extracellular concentration -
Vc = 0.016404- Cytoplasmic volume (in uL) -
Vsr = 0.001094- Sarcoplasmic reticulum volume -
Vss = 0.00005468- Subsarcolemmal space volume -
Bufc = 0.2- Cytoplasmic buffer concentration -
Kbufc = 0.001- Cai half-saturation constant for cytoplasmic buffer -
Bufsr = 10.0- SR buffer concentration -
Kbufsr = 0.3- CaSR half-saturation constant for sarcoplasmic buffer -
Bufss = 0.4- Subsarcolemmal buffer concentration -
Kbufss = 0.00025- CaSS half-saturation constant for subspace buffer -
Vmaxup = 0.006375- Maximal calcium uptake rate -
Kup = 0.00025- Calcium uptake affinity -
Vrel = 0.102- Calcium release rate from SR -
k1_ = 0.15- Transition rate for SR calcium release -
k2_ = 0.045- Transition rate for SR calcium release -
k3 = 0.060- Transition rate for SR calcium release -
k4_ = 0.005- Alternative transition rate -
EC = 1.5- Calcium-induced calcium release sensitivity -
maxsr = 2.5- Maximum value of kcasr -
minsr = 1.0- Minimum value of kcasr -
Vleak = 0.00036- SR calcium leak rate -
Vxfer = 0.0038- Calcium transfer rate from subspace to cytosol -
R = 8314.472- Universal gas constant (J/(kmol·K)) -
F = 96485.3415- Faraday constant (C/mol) -
T = 310.0- Temperature (Kelvin, 37°C) -
RTONF = 26.71376- RT/F constant for Nernst equation -
CAPACITANCE = 0.185- Membrane capacitance (μF/cm²) -
gkr = 0.153- Rapid delayed rectifier K+ conductance -
gks = 0.392- Slow delayed rectifier K+ conductance -
gk1 = 5.405- Inward rectifier K+ conductance -
gto = 0.294- Transient outward K+ conductance -
gna = 14.838- Fast Na+ conductance -
gbna = 0.00029- Background Na+ conductance -
gcal = 0.00003980- L-type Ca2+ channel conductance -
gbca = 0.000592- Background Ca2+ conductance -
gpca = 0.1238- Sarcolemmal Ca2+ pump current conductance -
KpCa = 0.0005- Sarcolemmal Ca2+ pump affinity -
gpk = 0.0146- Na+/K+ pump current conductance -
pKNa = 0.03- Na+/K+ permeability ratio -
KmK = 1.0- Half-saturation for K+ activation -
KmNa = 40.0- Half-saturation for Na+ activation -
knak = 2.724- Maximal Na+/K+ pump rate -
knaca = 1000- Maximal Na+/Ca2+ exchanger current -
KmNai = 87.5- Half-saturation for Na+ binding -
KmCa = 1.38- Half-saturation for Ca2+ binding -
ksat = 0.1- Saturation factor -
n_ = 0.35- Exponent for Na+ dependence
