//Created by libAntimony v2.4 model gall_1999__environment(time_) // Variable initializations: time_ = ; end model gall_1999__membrane(V, time_, i_Ca, i_K, i_K_Ca, i_Na_Ca) // Rate Rules: V' = -(i_K + i_Ca + i_K_Ca + i_Na_Ca) / Cm; // Variable initializations: V = -76.0; Cm = 5310.0; time_ = ; i_Ca = ; i_K = ; i_K_Ca = ; i_Na_Ca = ; end model gall_1999__rapidly_activating_K_current_n_gate(n, V, time_) // Assignment Rules: n_infinity := 1.0 / (1.0 + exp((V_n - V) / S_n)); tau_n := c / (exp((V - V_) / a) + exp((V_ - V) / b)); // Rate Rules: n' = lamda * ((n_infinity - n) / tau_n); // Variable initializations: n = 0.1; lamda = 1.6; V_n = -15.0; S_n = 5.6; a = 65.0; b = 20.0; c = 6.0; V_ = -75.0; V = ; time_ = ; end model gall_1999__rapidly_activating_K_current(i_K, V_K, time_, V, n) // Sub-modules, and any changes to those submodules: rapidly_activating_K_current_n_gate: gall_1999__rapidly_activating_K_current_n_gate(n, V, time_); // Assignment Rules: i_K := g_K * n * (V - V_K); // Variable initializations: V_K = -75.0; g_K = 2500.0; end model gall_1999__calcium_current_m_gate(m_infinity, V, time_) // Assignment Rules: m_infinity := 1.0 / (1.0 + exp((V_m - V) / S_m)); // Variable initializations: V_m = 4.0; S_m = 14.0; V = ; time_ = ; end model gall_1999__calcium_current_h_gate(h, V, time_) // Assignment Rules: h := 1.0 / (1.0 + exp((V_h - V) / S_h)); // Variable initializations: V_h = -10.0; S_h = -10.0; V = ; time_ = ; end model gall_1999__calcium_current(i_Ca, time_, V, m_infinity, h) // Sub-modules, and any changes to those submodules: calcium_current_m_gate: gall_1999__calcium_current_m_gate(m_infinity, V, time_); calcium_current_h_gate: gall_1999__calcium_current_h_gate(h, V, time_); // Assignment Rules: i_Ca := g_Ca * m_infinity * h * (V - V_Ca); // Variable initializations: V_Ca = 110.0; g_Ca = 1400.0; end model gall_1999__calcium_activated_K_current(i_K_Ca, V_K, time_, V, Ca_i) // Assignment Rules: i_K_Ca := g_K_Ca * (Ca_i / (K_d + Ca_i)) * (V - V_K); // Variable initializations: g_K_Ca = 30000.0; K_d = 100.0; V_K = ; time_ = ; V = ; Ca_i = ; end model gall_1999__Na_Ca_exchanger_current(i_Na_Ca, time_, V, Ca_i, Ca_o, Na_i, Na_o) // Assignment Rules: i_Na_Ca := g_Na_Ca * (power(Ca_i, nH) / (power(K_1_2, nH) + power(Ca_i, nH))) * (V - V_Na_Ca); V_Na_Ca := RT_F * (3.0 * ln(Na_o / Na_i - ln(Ca_o / Ca_i))); // Variable initializations: g_Na_Ca = 234.0; K_1_2 = 1.5; RT_F = 26.54; nH = 5.0; time_ = ; V = ; Ca_i = ; Ca_o = ; Na_i = ; Na_o = ; end model gall_1999__ionic_concentrations(Ca_i, Ca_o, Na_i, Na_o, time_, i_Ca, i_Na_Ca) // Rate Rules: Ca_i' = f * (- alpha * (i_Ca - 2.0 * i_Na_Ca) - k_Ca * Ca_i); // Variable initializations: Ca_i = 0.52; Ca_o = 2600.0; Na_i = 10.0; Na_o = 140.0; f = 0.001; k_Ca = 0.03; alpha = 0.0000045055; time_ = ; i_Ca = ; i_Na_Ca = ; end model *gall_1999____main() // Sub-modules, and any changes to those submodules: environment: gall_1999__environment(time_); membrane: gall_1999__membrane(V, time_, i_Ca, i_K, i_K_Ca, i_Na_Ca); rapidly_activating_K_current: gall_1999__rapidly_activating_K_current(i_K, V_K, time_, V, n); calcium_current: gall_1999__calcium_current(i_Ca, time_, V, m_infinity, h); calcium_activated_K_current: gall_1999__calcium_activated_K_current(i_K_Ca, V_K, time_, V, Ca_i); Na_Ca_exchanger_current: gall_1999__Na_Ca_exchanger_current(i_Na_Ca, time_, V, Ca_i, Ca_o, Na_i, Na_o); ionic_concentrations: gall_1999__ionic_concentrations(Ca_i, Ca_o, Na_i, Na_o, time_, i_Ca, i_Na_Ca); end