Intracellular calcium concentration pool and calcium-dependent K channels
Model: Calcium Dynamics
Demonstrates decayingPoolConcentrationModel — a first-order calcium pool:
\[\frac{d[\text{Ca}^{2+}]}{dt} = -\frac{I_{Ca}}{2 F \cdot \text{shell}} - \frac{[\text{Ca}^{2+}] - [\text{Ca}^{2+}]_{\text{rest}}}{\tau}\]
This is a granule cell with 7 channel types (Na, KDr, H, CaHVA, KA, KCa, leak) plus the Ca concentration pool. All are expressible as TVBO state variables and derived variables.
import matplotlib.pyplot as pltimport numpy as npfor name, ref_arr in ref_outputs.items(): t = ref_arr[:, 0] *1000 fig, ax = plt.subplots(figsize=(10, 4))for i inrange(1, min(ref_arr.shape[1], 4)): ax.plot(t, ref_arr[:, i], alpha=0.8, label=f'col {i}') ax.set_xlabel("Time (ms)") ax.set_title(f"Ex15: Ca Dynamics — {name}") ax.legend(fontsize=7) ax.grid(True, alpha=0.3) plt.tight_layout() plt.show()
Ca Dynamics in TVBO
The calcium pool ODE and Ca-dependent channel rates are expressible as TVBO state variables and derived variables. The full model (~17 state variables) could be defined as a single TVBO Dynamics.