93 for (
size_t i = 0; i <
m_nq; ++i)
98 NekDouble var_chaste_interface__membrane__V = inarray[0][i];
100 NekDouble var_chaste_interface__fast_sodium_current_m_gate__m =
103 NekDouble var_chaste_interface__fast_sodium_current_h_gate__h =
106 NekDouble var_chaste_interface__fast_sodium_current_j_gate__j =
110 var_chaste_interface__rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__X_kr =
114 var_chaste_interface__slow_activating_delayed_rectifiyer_K_current_X_ks_gate__X_ks =
118 var_chaste_interface__transient_outward_potassium_current_X_to1_gate__X_to1 =
122 var_chaste_interface__transient_outward_potassium_current_Y_to1_gate__Y_to1 =
125 NekDouble var_chaste_interface__L_type_Ca_current__O = inarray[8][i];
127 NekDouble var_chaste_interface__L_type_Ca_current__O_Ca = inarray[9][i];
129 NekDouble var_chaste_interface__L_type_Ca_current__C0 = inarray[10][i];
131 NekDouble var_chaste_interface__L_type_Ca_current__C1 = inarray[11][i];
133 NekDouble var_chaste_interface__L_type_Ca_current__C2 = inarray[12][i];
135 NekDouble var_chaste_interface__L_type_Ca_current__C3 = inarray[13][i];
137 NekDouble var_chaste_interface__L_type_Ca_current__C4 = inarray[14][i];
139 NekDouble var_chaste_interface__L_type_Ca_current__C_Ca0 =
142 NekDouble var_chaste_interface__L_type_Ca_current__C_Ca1 =
145 NekDouble var_chaste_interface__L_type_Ca_current__C_Ca2 =
148 NekDouble var_chaste_interface__L_type_Ca_current__C_Ca3 =
151 NekDouble var_chaste_interface__L_type_Ca_current__C_Ca4 =
154 NekDouble var_chaste_interface__L_type_Ca_current_y_gate__y =
157 NekDouble var_chaste_interface__RyR_channel__P_O1 = inarray[21][i];
159 NekDouble var_chaste_interface__RyR_channel__P_O2 = inarray[22][i];
161 NekDouble var_chaste_interface__RyR_channel__P_C1 = inarray[23][i];
163 NekDouble var_chaste_interface__RyR_channel__P_C2 = inarray[24][i];
165 NekDouble var_chaste_interface__intracellular_Ca_fluxes__HTRPNCa =
168 NekDouble var_chaste_interface__intracellular_Ca_fluxes__LTRPNCa =
171 NekDouble var_chaste_interface__intracellular_ion_concentrations__Nai =
174 NekDouble var_chaste_interface__intracellular_ion_concentrations__Cai =
177 NekDouble var_chaste_interface__intracellular_ion_concentrations__Ki =
181 var_chaste_interface__intracellular_ion_concentrations__Ca_ss =
185 var_chaste_interface__intracellular_ion_concentrations__Ca_JSR =
189 var_chaste_interface__intracellular_ion_concentrations__Ca_NSR =
194 NekDouble d_dt_chaste_interface__membrane__V;
195 const NekDouble var_membrane__R = 8.314472;
197 const NekDouble var_membrane__F = 96.4853415;
198 const NekDouble var_fast_sodium_current__j =
199 var_chaste_interface__fast_sodium_current_j_gate__j;
200 const NekDouble var_fast_sodium_current__h =
201 var_chaste_interface__fast_sodium_current_h_gate__h;
202 const NekDouble var_fast_sodium_current__g_Na =
204 const NekDouble var_fast_sodium_current__m =
205 var_chaste_interface__fast_sodium_current_m_gate__m;
206 const NekDouble var_fast_sodium_current__V =
207 var_chaste_interface__membrane__V;
208 const NekDouble var_fast_sodium_current__R =
210 const NekDouble var_fast_sodium_current__F =
212 const NekDouble var_standard_ionic_concentrations__Nao =
214 const NekDouble var_fast_sodium_current__Nao =
215 var_standard_ionic_concentrations__Nao;
216 const NekDouble var_fast_sodium_current__Nai =
217 var_chaste_interface__intracellular_ion_concentrations__Nai;
218 const NekDouble var_fast_sodium_current__T = var_membrane__T;
219 const NekDouble var_fast_sodium_current__E_Na =
220 ((var_fast_sodium_current__R * var_fast_sodium_current__T) /
221 var_fast_sodium_current__F) *
222 log(var_fast_sodium_current__Nao /
223 var_fast_sodium_current__Nai);
224 const NekDouble var_fast_sodium_current__i_Na =
225 var_fast_sodium_current__g_Na *
226 pow(var_fast_sodium_current__m, 3.0) * var_fast_sodium_current__h *
227 var_fast_sodium_current__j *
228 (var_fast_sodium_current__V -
229 var_fast_sodium_current__E_Na);
230 const NekDouble var_L_type_Ca_current__O =
231 var_chaste_interface__L_type_Ca_current__O;
232 const NekDouble var_L_type_Ca_current__F =
234 const NekDouble var_L_type_Ca_current__P_Ca =
236 const NekDouble var_standard_ionic_concentrations__Cao =
238 const NekDouble var_L_type_Ca_current__Cao =
239 var_standard_ionic_concentrations__Cao;
240 const NekDouble var_L_type_Ca_current__V =
241 var_chaste_interface__membrane__V;
242 const NekDouble var_L_type_Ca_current__T = var_membrane__T;
243 const NekDouble var_L_type_Ca_current__R =
245 const NekDouble var_L_type_Ca_current__i_Ca_max =
246 ((((var_L_type_Ca_current__P_Ca / (1.0 * 1.0)) * 4.0 *
247 var_L_type_Ca_current__V * pow(var_L_type_Ca_current__F, 2.0) *
249 (var_L_type_Ca_current__R * var_L_type_Ca_current__T)) *
251 exp((2.0 * var_L_type_Ca_current__V * var_L_type_Ca_current__F) /
252 (var_L_type_Ca_current__R * var_L_type_Ca_current__T))) -
253 (0.341 * var_L_type_Ca_current__Cao))) /
254 (exp((2.0 * var_L_type_Ca_current__V * var_L_type_Ca_current__F) /
255 (var_L_type_Ca_current__R * var_L_type_Ca_current__T)) -
257 const NekDouble var_L_type_Ca_current__y =
258 var_chaste_interface__L_type_Ca_current_y_gate__y;
259 const NekDouble var_L_type_Ca_current__O_Ca =
260 var_chaste_interface__L_type_Ca_current__O_Ca;
261 const NekDouble var_L_type_Ca_current__i_Ca =
262 var_L_type_Ca_current__i_Ca_max * var_L_type_Ca_current__y *
263 (var_L_type_Ca_current__O +
264 var_L_type_Ca_current__O_Ca);
265 const NekDouble var_L_type_Ca_current__P_K = 5.79e-07;
266 const NekDouble var_L_type_Ca_current__i_Ca_half =
268 const NekDouble var_L_type_Ca_current__p_prime_k =
269 var_L_type_Ca_current__P_K /
270 (1.0 + (var_L_type_Ca_current__i_Ca_max /
271 var_L_type_Ca_current__i_Ca_half));
272 const NekDouble var_standard_ionic_concentrations__Ko =
274 const NekDouble var_L_type_Ca_current__Ko =
275 var_standard_ionic_concentrations__Ko;
276 const NekDouble var_L_type_Ca_current__Ki =
277 var_chaste_interface__intracellular_ion_concentrations__Ki;
278 const NekDouble var_L_type_Ca_current__i_Ca_K =
279 ((((var_L_type_Ca_current__p_prime_k / (1.0 * 1.0)) *
280 var_L_type_Ca_current__y *
281 (var_L_type_Ca_current__O + var_L_type_Ca_current__O_Ca) *
282 var_L_type_Ca_current__V * pow(var_L_type_Ca_current__F, 2.0)) /
283 (var_L_type_Ca_current__R * var_L_type_Ca_current__T)) *
284 ((var_L_type_Ca_current__Ki *
285 exp((var_L_type_Ca_current__V * var_L_type_Ca_current__F) /
286 (var_L_type_Ca_current__R * var_L_type_Ca_current__T))) -
287 var_L_type_Ca_current__Ko)) /
288 (exp((var_L_type_Ca_current__V * var_L_type_Ca_current__F) /
289 (var_L_type_Ca_current__R * var_L_type_Ca_current__T)) -
291 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current__Ko =
292 var_standard_ionic_concentrations__Ko;
294 var_rapid_activating_delayed_rectifiyer_K_current__f_Ko =
295 sqrt(var_rapid_activating_delayed_rectifiyer_K_current__Ko /
297 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current__Ki =
298 var_chaste_interface__intracellular_ion_concentrations__Ki;
299 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current__R =
301 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current__F =
303 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current__T =
305 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current__E_K =
306 ((var_rapid_activating_delayed_rectifiyer_K_current__R *
307 var_rapid_activating_delayed_rectifiyer_K_current__T) /
308 var_rapid_activating_delayed_rectifiyer_K_current__F) *
309 log(var_rapid_activating_delayed_rectifiyer_K_current__Ko /
310 var_rapid_activating_delayed_rectifiyer_K_current__Ki);
311 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current__V =
312 var_chaste_interface__membrane__V;
313 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current__R_V =
318 var_rapid_activating_delayed_rectifiyer_K_current__V)));
319 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current__X_kr =
320 var_chaste_interface__rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__X_kr;
322 var_rapid_activating_delayed_rectifiyer_K_current__g_Kr =
324 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current__i_Kr =
325 var_rapid_activating_delayed_rectifiyer_K_current__g_Kr *
326 var_rapid_activating_delayed_rectifiyer_K_current__f_Ko *
327 var_rapid_activating_delayed_rectifiyer_K_current__R_V *
328 var_rapid_activating_delayed_rectifiyer_K_current__X_kr *
329 (var_rapid_activating_delayed_rectifiyer_K_current__V -
330 var_rapid_activating_delayed_rectifiyer_K_current__E_K);
331 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__g_Ks =
333 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__Ko =
334 var_standard_ionic_concentrations__Ko;
335 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__Nao =
336 var_standard_ionic_concentrations__Nao;
337 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__Ki =
338 var_chaste_interface__intracellular_ion_concentrations__Ki;
339 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__Nai =
340 var_chaste_interface__intracellular_ion_concentrations__Nai;
341 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__R =
343 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__F =
345 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__T =
347 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__E_Ks =
348 ((var_slow_activating_delayed_rectifiyer_K_current__R *
349 var_slow_activating_delayed_rectifiyer_K_current__T) /
350 var_slow_activating_delayed_rectifiyer_K_current__F) *
351 log((var_slow_activating_delayed_rectifiyer_K_current__Ko +
353 var_slow_activating_delayed_rectifiyer_K_current__Nao)) /
354 (var_slow_activating_delayed_rectifiyer_K_current__Ki +
356 var_slow_activating_delayed_rectifiyer_K_current__Nai)));
357 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__V =
358 var_chaste_interface__membrane__V;
359 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__X_ks =
360 var_chaste_interface__slow_activating_delayed_rectifiyer_K_current_X_ks_gate__X_ks;
361 const NekDouble var_slow_activating_delayed_rectifiyer_K_current__i_Ks =
362 var_slow_activating_delayed_rectifiyer_K_current__g_Ks *
363 pow(var_slow_activating_delayed_rectifiyer_K_current__X_ks, 2.0) *
364 (var_slow_activating_delayed_rectifiyer_K_current__V -
365 var_slow_activating_delayed_rectifiyer_K_current__E_Ks);
366 const NekDouble var_transient_outward_potassium_current__X_to1 =
367 var_chaste_interface__transient_outward_potassium_current_X_to1_gate__X_to1;
368 const NekDouble var_transient_outward_potassium_current__Y_to1 =
369 var_chaste_interface__transient_outward_potassium_current_Y_to1_gate__Y_to1;
370 const NekDouble var_transient_outward_potassium_current__g_to1 =
372 const NekDouble var_transient_outward_potassium_current__E_K =
373 var_rapid_activating_delayed_rectifiyer_K_current__E_K;
374 const NekDouble var_transient_outward_potassium_current__V =
375 var_chaste_interface__membrane__V;
376 const NekDouble var_transient_outward_potassium_current__i_to1 =
377 var_transient_outward_potassium_current__g_to1 *
378 var_transient_outward_potassium_current__X_to1 *
379 var_transient_outward_potassium_current__Y_to1 *
380 (var_transient_outward_potassium_current__V -
381 var_transient_outward_potassium_current__E_K);
382 const NekDouble var_time_independent_potassium_current__Ko =
383 var_standard_ionic_concentrations__Ko;
384 const NekDouble var_time_independent_potassium_current__E_K =
385 var_rapid_activating_delayed_rectifiyer_K_current__E_K;
386 const NekDouble var_time_independent_potassium_current__F =
388 const NekDouble var_time_independent_potassium_current_K1_gate__F =
389 var_time_independent_potassium_current__F;
390 const NekDouble var_time_independent_potassium_current__V =
391 var_chaste_interface__membrane__V;
392 const NekDouble var_time_independent_potassium_current_K1_gate__V =
393 var_time_independent_potassium_current__V;
394 const NekDouble var_time_independent_potassium_current__T =
396 const NekDouble var_time_independent_potassium_current_K1_gate__T =
397 var_time_independent_potassium_current__T;
398 const NekDouble var_time_independent_potassium_current_K1_gate__E_K =
399 var_time_independent_potassium_current__E_K;
400 const NekDouble var_time_independent_potassium_current__R =
402 const NekDouble var_time_independent_potassium_current_K1_gate__R =
403 var_time_independent_potassium_current__R;
405 var_time_independent_potassium_current_K1_gate__K1_infinity_V =
409 var_time_independent_potassium_current_K1_gate__F) /
410 (var_time_independent_potassium_current_K1_gate__R *
411 var_time_independent_potassium_current_K1_gate__T)) *
412 (var_time_independent_potassium_current_K1_gate__V -
413 var_time_independent_potassium_current_K1_gate__E_K)));
414 const NekDouble var_time_independent_potassium_current__K1_infinity_V =
415 var_time_independent_potassium_current_K1_gate__K1_infinity_V;
416 const NekDouble var_time_independent_potassium_current__g_K1 =
418 const NekDouble var_time_independent_potassium_current__K_mK1 =
420 const NekDouble var_time_independent_potassium_current__i_K1 =
421 ((var_time_independent_potassium_current__g_K1 *
422 var_time_independent_potassium_current__K1_infinity_V *
423 var_time_independent_potassium_current__Ko) /
424 (var_time_independent_potassium_current__Ko +
425 var_time_independent_potassium_current__K_mK1)) *
426 (var_time_independent_potassium_current__V -
427 var_time_independent_potassium_current__E_K);
428 const NekDouble var_plateau_potassium_current__g_Kp =
430 const NekDouble var_plateau_potassium_current__V =
431 var_chaste_interface__membrane__V;
432 const NekDouble var_plateau_potassium_current_Kp_gate__V =
433 var_plateau_potassium_current__V;
434 const NekDouble var_plateau_potassium_current_Kp_gate__Kp_V =
436 (1.0 + exp((7.488 - var_plateau_potassium_current_Kp_gate__V) /
438 const NekDouble var_plateau_potassium_current__Kp_V =
439 var_plateau_potassium_current_Kp_gate__Kp_V;
440 const NekDouble var_plateau_potassium_current__E_K =
441 var_rapid_activating_delayed_rectifiyer_K_current__E_K;
442 const NekDouble var_plateau_potassium_current__i_Kp =
443 var_plateau_potassium_current__g_Kp *
444 var_plateau_potassium_current__Kp_V *
445 (var_plateau_potassium_current__V -
446 var_plateau_potassium_current__E_K);
447 const NekDouble var_Na_Ca_exchanger__Nao =
448 var_standard_ionic_concentrations__Nao;
449 const NekDouble var_Na_Ca_exchanger__K_sat = 0.2;
450 const NekDouble var_Na_Ca_exchanger__K_mNa = 87.5;
451 const NekDouble var_Na_Ca_exchanger__Nai =
452 var_chaste_interface__intracellular_ion_concentrations__Nai;
453 const NekDouble var_Na_Ca_exchanger__K_NaCa = 0.3;
455 var_chaste_interface__membrane__V;
456 const NekDouble var_Na_Ca_exchanger__T = var_membrane__T;
457 const NekDouble var_Na_Ca_exchanger__Cao =
458 var_standard_ionic_concentrations__Cao;
459 const NekDouble var_Na_Ca_exchanger__eta = 0.35;
460 const NekDouble var_Na_Ca_exchanger__K_mCa = 1.38;
465 const NekDouble var_Na_Ca_exchanger__Cai =
466 var_chaste_interface__intracellular_ion_concentrations__Cai;
467 const NekDouble var_Na_Ca_exchanger__i_NaCa =
468 ((var_Na_Ca_exchanger__K_NaCa * 5000.0) /
469 ((pow(var_Na_Ca_exchanger__K_mNa, 3.0) +
470 pow(var_Na_Ca_exchanger__Nao, 3.0)) *
471 (var_Na_Ca_exchanger__K_mCa + var_Na_Ca_exchanger__Cao) *
473 (var_Na_Ca_exchanger__K_sat *
474 exp(((var_Na_Ca_exchanger__eta - 1.0) * var_Na_Ca_exchanger__V *
475 var_Na_Ca_exchanger__F) /
476 (var_Na_Ca_exchanger__R * var_Na_Ca_exchanger__T)))))) *
477 ((exp((var_Na_Ca_exchanger__eta * var_Na_Ca_exchanger__V *
478 var_Na_Ca_exchanger__F) /
479 (var_Na_Ca_exchanger__R * var_Na_Ca_exchanger__T)) *
480 pow(var_Na_Ca_exchanger__Nai, 3.0) * var_Na_Ca_exchanger__Cao) -
481 (exp(((var_Na_Ca_exchanger__eta - 1.0) * var_Na_Ca_exchanger__V *
482 var_Na_Ca_exchanger__F) /
483 (var_Na_Ca_exchanger__R * var_Na_Ca_exchanger__T)) *
484 pow(var_Na_Ca_exchanger__Nao, 3.0) *
485 var_Na_Ca_exchanger__Cai));
486 const NekDouble var_sodium_potassium_pump__Ko =
487 var_standard_ionic_concentrations__Ko;
488 const NekDouble var_sodium_potassium_pump__K_mNai = 10.0;
489 const NekDouble var_sodium_potassium_pump__Nai =
490 var_chaste_interface__intracellular_ion_concentrations__Nai;
491 const NekDouble var_sodium_potassium_pump__V =
492 var_chaste_interface__membrane__V;
493 const NekDouble var_sodium_potassium_pump__F =
495 const NekDouble var_sodium_potassium_pump__T =
497 const NekDouble var_sodium_potassium_pump__Nao =
498 var_standard_ionic_concentrations__Nao;
499 const NekDouble var_sodium_potassium_pump__sigma =
501 (exp(var_sodium_potassium_pump__Nao / 67.3) - 1.0);
502 const NekDouble var_sodium_potassium_pump__R =
504 const NekDouble var_sodium_potassium_pump__f_NaK =
506 (0.1245 * exp(((-0.1) * var_sodium_potassium_pump__V *
507 var_sodium_potassium_pump__F) /
508 (var_sodium_potassium_pump__R *
509 var_sodium_potassium_pump__T))) +
510 (0.0365 * var_sodium_potassium_pump__sigma *
511 exp(((-var_sodium_potassium_pump__V) *
512 var_sodium_potassium_pump__F) /
513 (var_sodium_potassium_pump__R *
514 var_sodium_potassium_pump__T))));
515 const NekDouble var_sodium_potassium_pump__I_NaK =
517 const NekDouble var_sodium_potassium_pump__K_mKo = 1.5;
518 const NekDouble var_sodium_potassium_pump__i_NaK =
519 (((var_sodium_potassium_pump__I_NaK *
520 var_sodium_potassium_pump__f_NaK) /
521 (1.0 + pow(var_sodium_potassium_pump__K_mNai /
522 var_sodium_potassium_pump__Nai,
524 var_sodium_potassium_pump__Ko) /
525 (var_sodium_potassium_pump__Ko +
526 var_sodium_potassium_pump__K_mKo);
527 const NekDouble var_sarcolemmal_calcium_pump__I_pCa =
529 const NekDouble var_sarcolemmal_calcium_pump__Cai =
530 var_chaste_interface__intracellular_ion_concentrations__Cai;
531 const NekDouble var_sarcolemmal_calcium_pump__K_mpCa =
533 const NekDouble var_sarcolemmal_calcium_pump__i_p_Ca =
534 (var_sarcolemmal_calcium_pump__I_pCa *
535 var_sarcolemmal_calcium_pump__Cai) /
536 (var_sarcolemmal_calcium_pump__K_mpCa +
537 var_sarcolemmal_calcium_pump__Cai);
538 const NekDouble var_calcium_background_current__R =
540 const NekDouble var_calcium_background_current__Cai =
541 var_chaste_interface__intracellular_ion_concentrations__Cai;
542 const NekDouble var_calcium_background_current__F =
544 const NekDouble var_calcium_background_current__T =
546 const NekDouble var_calcium_background_current__Cao =
547 var_standard_ionic_concentrations__Cao;
548 const NekDouble var_calcium_background_current__E_Ca =
549 ((var_calcium_background_current__R *
550 var_calcium_background_current__T) /
551 (2.0 * var_calcium_background_current__F)) *
552 log(var_calcium_background_current__Cao /
553 var_calcium_background_current__Cai);
554 const NekDouble var_calcium_background_current__g_Cab =
556 const NekDouble var_calcium_background_current__V =
557 var_chaste_interface__membrane__V;
558 const NekDouble var_calcium_background_current__i_Ca_b =
559 var_calcium_background_current__g_Cab *
560 (var_calcium_background_current__V -
561 var_calcium_background_current__E_Ca);
562 const NekDouble var_sodium_background_current__g_Nab =
564 const NekDouble var_sodium_background_current__V =
565 var_chaste_interface__membrane__V;
566 const NekDouble var_sodium_background_current__E_Na =
567 var_fast_sodium_current__E_Na;
568 const NekDouble var_sodium_background_current__i_Na_b =
569 var_sodium_background_current__g_Nab *
570 (var_sodium_background_current__V -
571 var_sodium_background_current__E_Na);
572 const NekDouble var_fast_sodium_current_m_gate__V =
573 var_fast_sodium_current__V;
574 const NekDouble var_fast_sodium_current_m_gate__beta_m =
576 exp((-var_fast_sodium_current_m_gate__V) / 11.0);
577 const NekDouble var_fast_sodium_current_m_gate__E0_m =
578 var_fast_sodium_current_m_gate__V + 47.13;
579 const NekDouble var_fast_sodium_current_m_gate__alpha_m =
580 (fabs(var_fast_sodium_current_m_gate__E0_m) < 1e-05)
582 (0.1 - (0.005 * var_fast_sodium_current_m_gate__E0_m)))
583 : ((320.0 * var_fast_sodium_current_m_gate__E0_m) /
586 var_fast_sodium_current_m_gate__E0_m)));
587 const NekDouble var_fast_sodium_current_m_gate__m =
588 var_fast_sodium_current__m;
590 var_fast_sodium_current_m_gate__d_m_d_environment__time =
591 (var_fast_sodium_current_m_gate__V >= (-90.0))
592 ? ((var_fast_sodium_current_m_gate__alpha_m *
593 (1.0 - var_fast_sodium_current_m_gate__m)) -
594 (var_fast_sodium_current_m_gate__beta_m *
595 var_fast_sodium_current_m_gate__m))
598 var_fast_sodium_current__fast_sodium_current_m_gate__d_m_d_environment__time =
599 var_fast_sodium_current_m_gate__d_m_d_environment__time;
600 const NekDouble var_fast_sodium_current_h_gate__V =
601 var_fast_sodium_current__V;
602 const NekDouble var_fast_sodium_current_h_gate__beta_h =
603 (var_fast_sodium_current_h_gate__V < (-40.0))
604 ? ((3560.0 * exp(0.079 * var_fast_sodium_current_h_gate__V)) +
605 (310000.0 * exp(0.35 * var_fast_sodium_current_h_gate__V)))
608 (1.0 + exp((var_fast_sodium_current_h_gate__V + 10.66) /
610 const NekDouble var_fast_sodium_current_h_gate__alpha_h =
611 (var_fast_sodium_current_h_gate__V < (-40.0))
613 exp((80.0 + var_fast_sodium_current_h_gate__V) / (-6.8)))
615 const NekDouble var_fast_sodium_current_h_gate__h =
616 var_fast_sodium_current__h;
618 var_fast_sodium_current_h_gate__d_h_d_environment__time =
619 (var_fast_sodium_current_h_gate__alpha_h *
620 (1.0 - var_fast_sodium_current_h_gate__h)) -
621 (var_fast_sodium_current_h_gate__beta_h *
622 var_fast_sodium_current_h_gate__h);
624 var_fast_sodium_current__fast_sodium_current_h_gate__d_h_d_environment__time =
625 var_fast_sodium_current_h_gate__d_h_d_environment__time;
626 const NekDouble var_fast_sodium_current_j_gate__V =
627 var_fast_sodium_current__V;
628 const NekDouble var_fast_sodium_current_j_gate__alpha_j =
629 (var_fast_sodium_current_j_gate__V < (-40.0))
632 exp(0.2444 * var_fast_sodium_current_j_gate__V)) +
634 exp((-0.04391) * var_fast_sodium_current_j_gate__V)))) *
635 (var_fast_sodium_current_j_gate__V + 37.78)) /
637 exp(0.311 * (var_fast_sodium_current_j_gate__V + 79.23))))
639 const NekDouble var_fast_sodium_current_j_gate__beta_j =
640 (var_fast_sodium_current_j_gate__V < (-40.0))
642 exp((-0.01052) * var_fast_sodium_current_j_gate__V)) /
643 (1.0 + exp((-0.1378) *
644 (var_fast_sodium_current_j_gate__V + 40.14))))
646 exp((-2.535e-07) * var_fast_sodium_current_j_gate__V)) /
647 (1.0 + exp((-0.1) * (var_fast_sodium_current_j_gate__V +
649 const NekDouble var_fast_sodium_current_j_gate__j =
650 var_fast_sodium_current__j;
652 var_fast_sodium_current_j_gate__d_j_d_environment__time =
653 (var_fast_sodium_current_j_gate__alpha_j *
654 (1.0 - var_fast_sodium_current_j_gate__j)) -
655 (var_fast_sodium_current_j_gate__beta_j *
656 var_fast_sodium_current_j_gate__j);
658 var_fast_sodium_current__fast_sodium_current_j_gate__d_j_d_environment__time =
659 var_fast_sodium_current_j_gate__d_j_d_environment__time;
661 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__tau_factor =
664 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__V =
665 var_rapid_activating_delayed_rectifiyer_K_current__V;
667 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__K21 = exp(
670 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__V));
672 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__K12 = exp(
675 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__V));
676 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__tau_X_kr =
678 (var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__K12 +
679 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__K21)) +
680 (var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__tau_factor *
683 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__X_kr =
684 var_rapid_activating_delayed_rectifiyer_K_current__X_kr;
686 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__X_kr_inf =
687 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__K12 /
688 (var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__K12 +
689 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__K21);
690 const NekDouble var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__d_X_kr_d_environment__time =
691 (var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__X_kr_inf -
692 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__X_kr) /
693 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__tau_X_kr;
695 var_rapid_activating_delayed_rectifiyer_K_current__rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__d_X_kr_d_environment__time =
696 var_rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__d_X_kr_d_environment__time;
698 var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__V =
699 var_slow_activating_delayed_rectifiyer_K_current__V;
700 const NekDouble var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__tau_X_ks =
703 (var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__V -
707 (var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__V -
710 (var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__V -
713 (var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__V -
717 var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__X_ks_infinity =
720 exp((-(var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__V -
724 var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__X_ks =
725 var_slow_activating_delayed_rectifiyer_K_current__X_ks;
726 const NekDouble var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__d_X_ks_d_environment__time =
727 (var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__X_ks_infinity -
728 var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__X_ks) /
729 var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__tau_X_ks;
731 var_slow_activating_delayed_rectifiyer_K_current__slow_activating_delayed_rectifiyer_K_current_X_ks_gate__d_X_ks_d_environment__time =
732 var_slow_activating_delayed_rectifiyer_K_current_X_ks_gate__d_X_ks_d_environment__time;
733 const NekDouble var_transient_outward_potassium_current_X_to1_gate__V =
734 var_transient_outward_potassium_current__V;
736 var_transient_outward_potassium_current_X_to1_gate__alpha_X_to1 =
739 var_transient_outward_potassium_current_X_to1_gate__V);
741 var_transient_outward_potassium_current_X_to1_gate__X_to1 =
742 var_transient_outward_potassium_current__X_to1;
744 var_transient_outward_potassium_current_X_to1_gate__beta_X_to1 =
747 var_transient_outward_potassium_current_X_to1_gate__V);
749 var_transient_outward_potassium_current_X_to1_gate__d_X_to1_d_environment__time =
750 (var_transient_outward_potassium_current_X_to1_gate__alpha_X_to1 *
752 var_transient_outward_potassium_current_X_to1_gate__X_to1)) -
753 (var_transient_outward_potassium_current_X_to1_gate__beta_X_to1 *
754 var_transient_outward_potassium_current_X_to1_gate__X_to1);
756 var_transient_outward_potassium_current__transient_outward_potassium_current_X_to1_gate__d_X_to1_d_environment__time =
757 var_transient_outward_potassium_current_X_to1_gate__d_X_to1_d_environment__time;
758 const NekDouble var_transient_outward_potassium_current_Y_to1_gate__V =
759 var_transient_outward_potassium_current__V;
761 var_transient_outward_potassium_current_Y_to1_gate__alpha_Y_to1 =
763 exp((-(var_transient_outward_potassium_current_Y_to1_gate__V +
768 exp((-(var_transient_outward_potassium_current_Y_to1_gate__V +
772 var_transient_outward_potassium_current_Y_to1_gate__Y_to1 =
773 var_transient_outward_potassium_current__Y_to1;
775 var_transient_outward_potassium_current_Y_to1_gate__beta_Y_to1 =
777 exp((var_transient_outward_potassium_current_Y_to1_gate__V +
782 exp((var_transient_outward_potassium_current_Y_to1_gate__V +
786 var_transient_outward_potassium_current_Y_to1_gate__d_Y_to1_d_environment__time =
787 (var_transient_outward_potassium_current_Y_to1_gate__alpha_Y_to1 *
789 var_transient_outward_potassium_current_Y_to1_gate__Y_to1)) -
790 (var_transient_outward_potassium_current_Y_to1_gate__beta_Y_to1 *
791 var_transient_outward_potassium_current_Y_to1_gate__Y_to1);
793 var_transient_outward_potassium_current__transient_outward_potassium_current_Y_to1_gate__d_Y_to1_d_environment__time =
794 var_transient_outward_potassium_current_Y_to1_gate__d_Y_to1_d_environment__time;
795 const NekDouble var_L_type_Ca_current__alpha =
796 400.0 * exp((var_L_type_Ca_current__V + 2.0) / 10.0);
797 const NekDouble var_L_type_Ca_current__beta =
799 exp((-(var_L_type_Ca_current__V + 2.0)) / 13.0);
800 const NekDouble var_L_type_Ca_current__Ca_ss =
801 var_chaste_interface__intracellular_ion_concentrations__Ca_ss;
802 const NekDouble var_L_type_Ca_current__gamma =
803 (103.75 * var_L_type_Ca_current__Ca_ss) / 1.0;
804 const NekDouble var_L_type_Ca_current__a = 2.0;
805 const NekDouble var_L_type_Ca_current__alpha_a =
806 var_L_type_Ca_current__alpha *
807 var_L_type_Ca_current__a;
808 const NekDouble var_L_type_Ca_current__b = 2.0;
809 const NekDouble var_L_type_Ca_current__beta_b =
810 var_L_type_Ca_current__beta /
811 var_L_type_Ca_current__b;
812 const NekDouble var_L_type_Ca_current__g = 2000.0;
813 const NekDouble var_L_type_Ca_current__f = 300.0;
814 const NekDouble var_L_type_Ca_current__gprime = 7000.0;
815 const NekDouble var_L_type_Ca_current__fprime = 7.0;
816 const NekDouble var_L_type_Ca_current__omega = 10.0;
817 const NekDouble var_L_type_Ca_current__C0 =
818 var_chaste_interface__L_type_Ca_current__C0;
819 const NekDouble var_L_type_Ca_current__C1 =
820 var_chaste_interface__L_type_Ca_current__C1;
821 const NekDouble var_L_type_Ca_current__C2 =
822 var_chaste_interface__L_type_Ca_current__C2;
823 const NekDouble var_L_type_Ca_current__C3 =
824 var_chaste_interface__L_type_Ca_current__C3;
825 const NekDouble var_L_type_Ca_current__C4 =
826 var_chaste_interface__L_type_Ca_current__C4;
827 const NekDouble var_L_type_Ca_current__C_Ca0 =
828 var_chaste_interface__L_type_Ca_current__C_Ca0;
829 const NekDouble var_L_type_Ca_current__C_Ca1 =
830 var_chaste_interface__L_type_Ca_current__C_Ca1;
831 const NekDouble var_L_type_Ca_current__C_Ca2 =
832 var_chaste_interface__L_type_Ca_current__C_Ca2;
833 const NekDouble var_L_type_Ca_current__C_Ca3 =
834 var_chaste_interface__L_type_Ca_current__C_Ca3;
835 const NekDouble var_L_type_Ca_current__C_Ca4 =
836 var_chaste_interface__L_type_Ca_current__C_Ca4;
837 const NekDouble var_L_type_Ca_current__d_O_d_environment__time =
838 (var_L_type_Ca_current__f * var_L_type_Ca_current__C4) -
839 (var_L_type_Ca_current__g * var_L_type_Ca_current__O);
840 const NekDouble var_L_type_Ca_current__d_O_Ca_d_environment__time =
841 (var_L_type_Ca_current__fprime * var_L_type_Ca_current__C_Ca4) -
842 (var_L_type_Ca_current__gprime *
843 var_L_type_Ca_current__O_Ca);
844 const NekDouble var_L_type_Ca_current__d_C0_d_environment__time =
845 ((var_L_type_Ca_current__beta * var_L_type_Ca_current__C1) +
846 (var_L_type_Ca_current__omega * var_L_type_Ca_current__C_Ca0)) -
847 (((4.0 * var_L_type_Ca_current__alpha) +
848 var_L_type_Ca_current__gamma) *
849 var_L_type_Ca_current__C0);
850 const NekDouble var_L_type_Ca_current__d_C1_d_environment__time =
851 ((4.0 * var_L_type_Ca_current__alpha * var_L_type_Ca_current__C0) +
852 (2.0 * var_L_type_Ca_current__beta * var_L_type_Ca_current__C2) +
853 ((var_L_type_Ca_current__omega / var_L_type_Ca_current__b) *
854 var_L_type_Ca_current__C_Ca1)) -
855 ((var_L_type_Ca_current__beta +
856 (3.0 * var_L_type_Ca_current__alpha) +
857 (var_L_type_Ca_current__gamma * var_L_type_Ca_current__a)) *
858 var_L_type_Ca_current__C1);
859 const NekDouble var_L_type_Ca_current__d_C2_d_environment__time =
860 ((3.0 * var_L_type_Ca_current__alpha * var_L_type_Ca_current__C1) +
861 (3.0 * var_L_type_Ca_current__beta * var_L_type_Ca_current__C3) +
862 ((var_L_type_Ca_current__omega /
863 pow(var_L_type_Ca_current__b, 2.0)) *
864 var_L_type_Ca_current__C_Ca2)) -
865 (((var_L_type_Ca_current__beta * 2.0) +
866 (2.0 * var_L_type_Ca_current__alpha) +
867 (var_L_type_Ca_current__gamma *
868 pow(var_L_type_Ca_current__a, 2.0))) *
869 var_L_type_Ca_current__C2);
870 const NekDouble var_L_type_Ca_current__d_C3_d_environment__time =
871 ((2.0 * var_L_type_Ca_current__alpha * var_L_type_Ca_current__C2) +
872 (4.0 * var_L_type_Ca_current__beta * var_L_type_Ca_current__C4) +
873 ((var_L_type_Ca_current__omega /
874 pow(var_L_type_Ca_current__b, 3.0)) *
875 var_L_type_Ca_current__C_Ca3)) -
876 (((var_L_type_Ca_current__beta * 3.0) +
877 var_L_type_Ca_current__alpha +
878 (var_L_type_Ca_current__gamma *
879 pow(var_L_type_Ca_current__a, 3.0))) *
880 var_L_type_Ca_current__C3);
881 const NekDouble var_L_type_Ca_current__d_C4_d_environment__time =
882 ((var_L_type_Ca_current__alpha * var_L_type_Ca_current__C3) +
883 (var_L_type_Ca_current__g * var_L_type_Ca_current__O) +
884 ((var_L_type_Ca_current__omega /
885 pow(var_L_type_Ca_current__b, 4.0)) *
886 var_L_type_Ca_current__C_Ca4)) -
887 (((var_L_type_Ca_current__beta * 4.0) + var_L_type_Ca_current__f +
888 (var_L_type_Ca_current__gamma *
889 pow(var_L_type_Ca_current__a, 4.0))) *
890 var_L_type_Ca_current__C4);
891 const NekDouble var_L_type_Ca_current__d_C_Ca0_d_environment__time =
892 ((var_L_type_Ca_current__beta_b * var_L_type_Ca_current__C_Ca1) +
893 (var_L_type_Ca_current__gamma * var_L_type_Ca_current__C0)) -
894 (((4.0 * var_L_type_Ca_current__alpha_a) +
895 var_L_type_Ca_current__omega) *
896 var_L_type_Ca_current__C_Ca0);
897 const NekDouble var_L_type_Ca_current__d_C_Ca1_d_environment__time =
898 ((4.0 * var_L_type_Ca_current__alpha_a *
899 var_L_type_Ca_current__C_Ca0) +
900 (2.0 * var_L_type_Ca_current__beta_b *
901 var_L_type_Ca_current__C_Ca2) +
902 (var_L_type_Ca_current__gamma * var_L_type_Ca_current__a *
903 var_L_type_Ca_current__C1)) -
904 ((var_L_type_Ca_current__beta_b +
905 (3.0 * var_L_type_Ca_current__alpha_a) +
906 (var_L_type_Ca_current__omega / var_L_type_Ca_current__b)) *
907 var_L_type_Ca_current__C_Ca1);
908 const NekDouble var_L_type_Ca_current__d_C_Ca2_d_environment__time =
909 ((3.0 * var_L_type_Ca_current__alpha_a *
910 var_L_type_Ca_current__C_Ca1) +
911 (3.0 * var_L_type_Ca_current__beta_b *
912 var_L_type_Ca_current__C_Ca3) +
913 (var_L_type_Ca_current__gamma *
914 pow(var_L_type_Ca_current__a, 2.0) * var_L_type_Ca_current__C2)) -
915 (((var_L_type_Ca_current__beta_b * 2.0) +
916 (2.0 * var_L_type_Ca_current__alpha_a) +
917 (var_L_type_Ca_current__omega /
918 pow(var_L_type_Ca_current__b, 2.0))) *
919 var_L_type_Ca_current__C_Ca2);
920 const NekDouble var_L_type_Ca_current__d_C_Ca3_d_environment__time =
921 ((2.0 * var_L_type_Ca_current__alpha_a *
922 var_L_type_Ca_current__C_Ca2) +
923 (4.0 * var_L_type_Ca_current__beta_b *
924 var_L_type_Ca_current__C_Ca4) +
925 (var_L_type_Ca_current__gamma *
926 pow(var_L_type_Ca_current__a, 3.0) * var_L_type_Ca_current__C3)) -
927 (((var_L_type_Ca_current__beta_b * 3.0) +
928 var_L_type_Ca_current__alpha_a +
929 (var_L_type_Ca_current__omega /
930 pow(var_L_type_Ca_current__b, 3.0))) *
931 var_L_type_Ca_current__C_Ca3);
932 const NekDouble var_L_type_Ca_current__d_C_Ca4_d_environment__time =
933 ((var_L_type_Ca_current__alpha_a * var_L_type_Ca_current__C_Ca3) +
934 (var_L_type_Ca_current__gprime * var_L_type_Ca_current__O_Ca) +
935 (var_L_type_Ca_current__gamma *
936 pow(var_L_type_Ca_current__a, 4.0) * var_L_type_Ca_current__C4)) -
937 (((var_L_type_Ca_current__beta_b * 4.0) +
938 var_L_type_Ca_current__fprime +
939 (var_L_type_Ca_current__omega /
940 pow(var_L_type_Ca_current__b, 4.0))) *
941 var_L_type_Ca_current__C_Ca4);
942 const NekDouble var_L_type_Ca_current_y_gate__y =
943 var_L_type_Ca_current__y;
944 const NekDouble var_L_type_Ca_current_y_gate__V =
945 var_L_type_Ca_current__V;
946 const NekDouble var_L_type_Ca_current_y_gate__y_infinity =
948 (1.0 + exp((var_L_type_Ca_current_y_gate__V + 12.5) / 5.0))) +
950 const NekDouble var_L_type_Ca_current_y_gate__tau_y =
953 (1.0 + exp((var_L_type_Ca_current_y_gate__V + 20.0) / 9.5)))) /
955 const NekDouble var_L_type_Ca_current_y_gate__d_y_d_environment__time =
956 (var_L_type_Ca_current_y_gate__y_infinity -
957 var_L_type_Ca_current_y_gate__y) /
958 var_L_type_Ca_current_y_gate__tau_y;
960 var_L_type_Ca_current__L_type_Ca_current_y_gate__d_y_d_environment__time =
961 var_L_type_Ca_current_y_gate__d_y_d_environment__time;
963 var_chaste_interface__RyR_channel__P_O2;
965 var_chaste_interface__intracellular_ion_concentrations__Ca_ss;
967 var_chaste_interface__RyR_channel__P_O1;
968 const NekDouble var_RyR_channel__v1 = 1800.0;
969 const NekDouble var_RyR_channel__Ca_JSR =
970 var_chaste_interface__intracellular_ion_concentrations__Ca_JSR;
972 var_RyR_channel__v1 *
973 (var_RyR_channel__P_O1 + var_RyR_channel__P_O2) *
974 (var_RyR_channel__Ca_JSR -
975 var_RyR_channel__Ca_ss);
976 const NekDouble var_RyR_channel__k_a_plus =
978 const NekDouble var_RyR_channel__k_a_minus = 576.0;
979 const NekDouble var_RyR_channel__k_b_plus =
981 const NekDouble var_RyR_channel__k_b_minus = 1930.0;
982 const NekDouble var_RyR_channel__k_c_plus = 100.0;
983 const NekDouble var_RyR_channel__k_c_minus = 0.8;
985 var_chaste_interface__RyR_channel__P_C1;
987 var_chaste_interface__RyR_channel__P_C2;
988 const NekDouble var_RyR_channel__n = 4.0;
989 const NekDouble var_RyR_channel__m = 3.0;
990 const NekDouble var_RyR_channel__d_P_O1_d_environment__time =
991 ((var_RyR_channel__k_a_plus *
992 pow(var_RyR_channel__Ca_ss, var_RyR_channel__n) *
993 var_RyR_channel__P_C1) -
994 ((var_RyR_channel__k_a_minus * var_RyR_channel__P_O1) +
995 (var_RyR_channel__k_b_plus *
996 pow(var_RyR_channel__Ca_ss, var_RyR_channel__m) *
997 var_RyR_channel__P_O1) +
998 (var_RyR_channel__k_c_plus * var_RyR_channel__P_O1))) +
999 (var_RyR_channel__k_b_minus * var_RyR_channel__P_O2) +
1000 (var_RyR_channel__k_c_minus * var_RyR_channel__P_C2);
1001 const NekDouble var_RyR_channel__d_P_O2_d_environment__time =
1002 (var_RyR_channel__k_b_plus *
1003 pow(var_RyR_channel__Ca_ss, var_RyR_channel__m) *
1004 var_RyR_channel__P_O1) -
1005 (var_RyR_channel__k_b_minus * var_RyR_channel__P_O2);
1006 const NekDouble var_RyR_channel__d_P_C1_d_environment__time =
1007 ((-var_RyR_channel__k_a_plus) *
1008 pow(var_RyR_channel__Ca_ss, var_RyR_channel__n) *
1009 var_RyR_channel__P_C1) +
1010 (var_RyR_channel__k_a_minus * var_RyR_channel__P_O1);
1011 const NekDouble var_RyR_channel__d_P_C2_d_environment__time =
1012 (var_RyR_channel__k_c_plus * var_RyR_channel__P_O1) -
1013 (var_RyR_channel__k_c_minus * var_RyR_channel__P_C2);
1015 var_chaste_interface__intracellular_ion_concentrations__Cai;
1016 const NekDouble var_SERCA2a_pump__N_fb = 1.2;
1017 const NekDouble var_SERCA2a_pump__K_fb = 0.000168;
1019 pow(var_SERCA2a_pump__Cai / var_SERCA2a_pump__K_fb,
1020 var_SERCA2a_pump__N_fb);
1021 const NekDouble var_SERCA2a_pump__Vmaxf =
1023 const NekDouble var_SERCA2a_pump__K_SR = 1.0;
1024 const NekDouble var_SERCA2a_pump__Ca_NSR =
1025 var_chaste_interface__intracellular_ion_concentrations__Ca_NSR;
1026 const NekDouble var_SERCA2a_pump__K_rb = 3.29;
1027 const NekDouble var_SERCA2a_pump__N_rb = 1.0;
1029 pow(var_SERCA2a_pump__Ca_NSR / var_SERCA2a_pump__K_rb,
1030 var_SERCA2a_pump__N_rb);
1031 const NekDouble var_SERCA2a_pump__Vmaxr =
1033 const NekDouble var_SERCA2a_pump__J_up =
1034 (var_SERCA2a_pump__K_SR *
1035 ((var_SERCA2a_pump__Vmaxf * var_SERCA2a_pump__fb) -
1036 (var_SERCA2a_pump__Vmaxr * var_SERCA2a_pump__rb))) /
1037 (1.0 + var_SERCA2a_pump__fb +
1038 var_SERCA2a_pump__rb);
1039 const NekDouble var_intracellular_Ca_fluxes__Ca_NSR =
1040 var_chaste_interface__intracellular_ion_concentrations__Ca_NSR;
1041 const NekDouble var_intracellular_Ca_fluxes__Ca_JSR =
1042 var_chaste_interface__intracellular_ion_concentrations__Ca_JSR;
1043 const NekDouble var_intracellular_Ca_fluxes__tau_tr =
1045 const NekDouble var_intracellular_Ca_fluxes__J_tr =
1046 (var_intracellular_Ca_fluxes__Ca_NSR -
1047 var_intracellular_Ca_fluxes__Ca_JSR) /
1048 var_intracellular_Ca_fluxes__tau_tr;
1049 const NekDouble var_intracellular_Ca_fluxes__Cai =
1050 var_chaste_interface__intracellular_ion_concentrations__Cai;
1051 const NekDouble var_intracellular_Ca_fluxes__tau_xfer =
1053 const NekDouble var_intracellular_Ca_fluxes__Ca_ss =
1054 var_chaste_interface__intracellular_ion_concentrations__Ca_ss;
1055 const NekDouble var_intracellular_Ca_fluxes__J_xfer =
1056 (var_intracellular_Ca_fluxes__Ca_ss -
1057 var_intracellular_Ca_fluxes__Cai) /
1058 var_intracellular_Ca_fluxes__tau_xfer;
1059 const NekDouble var_intracellular_Ca_fluxes__k_htrpn_minus =
1061 const NekDouble var_intracellular_Ca_fluxes__k_htrpn_plus =
1063 const NekDouble var_intracellular_Ca_fluxes__HTRPNCa =
1064 var_chaste_interface__intracellular_Ca_fluxes__HTRPNCa;
1066 var_intracellular_Ca_fluxes__d_HTRPNCa_d_environment__time =
1067 (var_intracellular_Ca_fluxes__k_htrpn_plus *
1068 var_intracellular_Ca_fluxes__Cai *
1069 (1.0 - var_intracellular_Ca_fluxes__HTRPNCa)) -
1070 (var_intracellular_Ca_fluxes__k_htrpn_minus *
1071 var_intracellular_Ca_fluxes__HTRPNCa);
1073 const NekDouble var_intracellular_Ca_fluxes__J_HTRPNCa =
1074 var_intracellular_Ca_fluxes__d_HTRPNCa_d_environment__time;
1075 const NekDouble var_intracellular_Ca_fluxes__LTRPN_tot =
1077 const NekDouble var_intracellular_Ca_fluxes__LTRPNCa =
1078 var_chaste_interface__intracellular_Ca_fluxes__LTRPNCa;
1079 const NekDouble var_intracellular_Ca_fluxes__k_ltrpn_minus =
1081 const NekDouble var_intracellular_Ca_fluxes__k_ltrpn_plus =
1084 var_intracellular_Ca_fluxes__d_LTRPNCa_d_environment__time =
1085 (var_intracellular_Ca_fluxes__k_ltrpn_plus *
1086 var_intracellular_Ca_fluxes__Cai *
1087 (1.0 - var_intracellular_Ca_fluxes__LTRPNCa)) -
1088 (var_intracellular_Ca_fluxes__k_ltrpn_minus *
1089 var_intracellular_Ca_fluxes__LTRPNCa);
1091 const NekDouble var_intracellular_Ca_fluxes__J_LTRPNCa =
1092 var_intracellular_Ca_fluxes__d_LTRPNCa_d_environment__time;
1093 const NekDouble var_intracellular_Ca_fluxes__HTRPN_tot =
1095 const NekDouble var_intracellular_Ca_fluxes__J_trpn =
1096 (var_intracellular_Ca_fluxes__HTRPN_tot *
1097 var_intracellular_Ca_fluxes__J_HTRPNCa) +
1098 (var_intracellular_Ca_fluxes__LTRPN_tot *
1099 var_intracellular_Ca_fluxes__J_LTRPNCa);
1100 const NekDouble var_intracellular_ion_concentrations__Cai =
1101 var_chaste_interface__intracellular_ion_concentrations__Cai;
1102 const NekDouble var_intracellular_ion_concentrations__Ca_ss =
1103 var_chaste_interface__intracellular_ion_concentrations__Ca_ss;
1104 const NekDouble var_intracellular_ion_concentrations__Ca_JSR =
1105 var_chaste_interface__intracellular_ion_concentrations__Ca_JSR;
1106 const NekDouble var_intracellular_ion_concentrations__A_cap =
1108 const NekDouble var_intracellular_ion_concentrations__V_myo =
1110 const NekDouble var_intracellular_ion_concentrations__V_JSR =
1112 const NekDouble var_intracellular_ion_concentrations__V_NSR =
1114 const NekDouble var_intracellular_ion_concentrations__V_SS =
1116 const NekDouble var_intracellular_ion_concentrations__K_mCMDN =
1118 const NekDouble var_intracellular_ion_concentrations__K_mEGTA =
1120 const NekDouble var_intracellular_ion_concentrations__K_mCSQN =
1122 const NekDouble var_intracellular_ion_concentrations__CMDN_tot =
1124 const NekDouble var_intracellular_ion_concentrations__EGTA_tot =
1126 const NekDouble var_intracellular_ion_concentrations__CSQN_tot =
1128 const NekDouble var_intracellular_ion_concentrations__beta_i =
1130 ((var_intracellular_ion_concentrations__CMDN_tot *
1131 var_intracellular_ion_concentrations__K_mCMDN) /
1132 pow(var_intracellular_ion_concentrations__K_mCMDN +
1133 var_intracellular_ion_concentrations__Cai,
1135 ((var_intracellular_ion_concentrations__EGTA_tot *
1136 var_intracellular_ion_concentrations__K_mEGTA) /
1137 pow(var_intracellular_ion_concentrations__K_mEGTA +
1138 var_intracellular_ion_concentrations__Cai,
1140 const NekDouble var_intracellular_ion_concentrations__beta_SS =
1142 ((var_intracellular_ion_concentrations__CMDN_tot *
1143 var_intracellular_ion_concentrations__K_mCMDN) /
1144 pow(var_intracellular_ion_concentrations__K_mCMDN +
1145 var_intracellular_ion_concentrations__Ca_ss,
1147 ((var_intracellular_ion_concentrations__EGTA_tot *
1148 var_intracellular_ion_concentrations__K_mEGTA) /
1149 pow(var_intracellular_ion_concentrations__K_mEGTA +
1150 var_intracellular_ion_concentrations__Ca_ss,
1152 const NekDouble var_intracellular_ion_concentrations__beta_JSR =
1153 1.0 / (1.0 + ((var_intracellular_ion_concentrations__CSQN_tot *
1154 var_intracellular_ion_concentrations__K_mCSQN) /
1155 pow(var_intracellular_ion_concentrations__K_mCSQN +
1156 var_intracellular_ion_concentrations__Ca_JSR,
1158 const NekDouble var_intracellular_ion_concentrations__F =
1160 const NekDouble var_intracellular_ion_concentrations__i_Na =
1161 var_fast_sodium_current__i_Na;
1162 const NekDouble var_intracellular_ion_concentrations__i_Ca =
1163 var_L_type_Ca_current__i_Ca;
1164 const NekDouble var_intracellular_ion_concentrations__i_Na_b =
1165 var_sodium_background_current__i_Na_b;
1166 const NekDouble var_intracellular_ion_concentrations__i_NaCa =
1167 var_Na_Ca_exchanger__i_NaCa;
1168 const NekDouble var_intracellular_ion_concentrations__i_NaK =
1169 var_sodium_potassium_pump__i_NaK;
1170 const NekDouble var_intracellular_ion_concentrations__i_Ca_K =
1171 var_L_type_Ca_current__i_Ca_K;
1172 const NekDouble var_intracellular_ion_concentrations__i_Kr =
1173 var_rapid_activating_delayed_rectifiyer_K_current__i_Kr;
1174 const NekDouble var_intracellular_ion_concentrations__i_Ks =
1175 var_slow_activating_delayed_rectifiyer_K_current__i_Ks;
1176 const NekDouble var_intracellular_ion_concentrations__i_K1 =
1177 var_time_independent_potassium_current__i_K1;
1178 const NekDouble var_intracellular_ion_concentrations__i_Kp =
1179 var_plateau_potassium_current__i_Kp;
1180 const NekDouble var_intracellular_ion_concentrations__i_to1 =
1181 var_transient_outward_potassium_current__i_to1;
1182 const NekDouble var_intracellular_ion_concentrations__i_p_Ca =
1183 var_sarcolemmal_calcium_pump__i_p_Ca;
1184 const NekDouble var_intracellular_ion_concentrations__i_Ca_b =
1185 var_calcium_background_current__i_Ca_b;
1186 const NekDouble var_intracellular_ion_concentrations__J_up =
1187 var_SERCA2a_pump__J_up;
1188 const NekDouble var_intracellular_ion_concentrations__J_rel =
1189 var_RyR_channel__J_rel;
1190 const NekDouble var_intracellular_ion_concentrations__J_xfer =
1191 var_intracellular_Ca_fluxes__J_xfer;
1192 const NekDouble var_intracellular_ion_concentrations__J_trpn =
1193 var_intracellular_Ca_fluxes__J_trpn;
1194 const NekDouble var_intracellular_ion_concentrations__J_tr =
1195 var_intracellular_Ca_fluxes__J_tr;
1197 var_intracellular_ion_concentrations__d_Nai_d_environment__time =
1199 (var_intracellular_ion_concentrations__i_Na +
1200 var_intracellular_ion_concentrations__i_Na_b +
1201 (var_intracellular_ion_concentrations__i_NaCa * 3.0) +
1202 (var_intracellular_ion_concentrations__i_NaK * 3.0)) *
1203 var_intracellular_ion_concentrations__A_cap * 1.0) /
1204 (var_intracellular_ion_concentrations__V_myo *
1205 var_intracellular_ion_concentrations__F);
1208 var_intracellular_ion_concentrations__d_Cai_d_environment__time =
1209 var_intracellular_ion_concentrations__beta_i *
1210 ((var_intracellular_ion_concentrations__J_xfer -
1211 (var_intracellular_ion_concentrations__J_up +
1212 var_intracellular_ion_concentrations__J_trpn)) +
1213 ((((2.0 * var_intracellular_ion_concentrations__i_NaCa) -
1214 (var_intracellular_ion_concentrations__i_p_Ca +
1215 var_intracellular_ion_concentrations__i_Ca_b)) *
1216 var_intracellular_ion_concentrations__A_cap * 1.0) /
1217 (2.0 * var_intracellular_ion_concentrations__V_myo *
1218 var_intracellular_ion_concentrations__F)));
1222 var_intracellular_ion_concentrations__d_Ki_d_environment__time =
1224 (var_intracellular_ion_concentrations__i_Ca_K +
1225 var_intracellular_ion_concentrations__i_Kr +
1226 var_intracellular_ion_concentrations__i_Ks +
1227 var_intracellular_ion_concentrations__i_K1 +
1228 var_intracellular_ion_concentrations__i_Kp +
1229 var_intracellular_ion_concentrations__i_to1 +
1230 (var_intracellular_ion_concentrations__i_NaK * (-2.0))) *
1231 var_intracellular_ion_concentrations__A_cap * 1.0) /
1232 (var_intracellular_ion_concentrations__V_myo *
1233 var_intracellular_ion_concentrations__F);
1236 var_intracellular_ion_concentrations__d_Ca_ss_d_environment__time =
1237 var_intracellular_ion_concentrations__beta_SS *
1238 ((((var_intracellular_ion_concentrations__J_rel *
1239 var_intracellular_ion_concentrations__V_JSR) /
1240 var_intracellular_ion_concentrations__V_SS) -
1241 ((var_intracellular_ion_concentrations__J_xfer *
1242 var_intracellular_ion_concentrations__V_myo) /
1243 var_intracellular_ion_concentrations__V_SS)) -
1244 ((var_intracellular_ion_concentrations__i_Ca *
1245 var_intracellular_ion_concentrations__A_cap * 1.0) /
1246 (2.0 * var_intracellular_ion_concentrations__V_SS *
1247 var_intracellular_ion_concentrations__F)));
1251 var_intracellular_ion_concentrations__d_Ca_JSR_d_environment__time =
1252 var_intracellular_ion_concentrations__beta_JSR *
1253 (var_intracellular_ion_concentrations__J_tr -
1254 var_intracellular_ion_concentrations__J_rel);
1258 var_intracellular_ion_concentrations__d_Ca_NSR_d_environment__time =
1259 ((var_intracellular_ion_concentrations__J_up *
1260 var_intracellular_ion_concentrations__V_myo) /
1261 var_intracellular_ion_concentrations__V_NSR) -
1262 ((var_intracellular_ion_concentrations__J_tr *
1263 var_intracellular_ion_concentrations__V_JSR) /
1264 var_intracellular_ion_concentrations__V_NSR);
1268 var_chaste_interface__fast_sodium_current_m_gate__d_m_d_environment__time_converter =
1269 var_fast_sodium_current__fast_sodium_current_m_gate__d_m_d_environment__time;
1271 var_chaste_interface__fast_sodium_current_m_gate__d_m_d_environment__time =
1273 var_chaste_interface__fast_sodium_current_m_gate__d_m_d_environment__time_converter;
1275 var_chaste_interface__fast_sodium_current_h_gate__d_h_d_environment__time_converter =
1276 var_fast_sodium_current__fast_sodium_current_h_gate__d_h_d_environment__time;
1278 var_chaste_interface__fast_sodium_current_h_gate__d_h_d_environment__time =
1280 var_chaste_interface__fast_sodium_current_h_gate__d_h_d_environment__time_converter;
1282 var_chaste_interface__fast_sodium_current_j_gate__d_j_d_environment__time_converter =
1283 var_fast_sodium_current__fast_sodium_current_j_gate__d_j_d_environment__time;
1285 var_chaste_interface__fast_sodium_current_j_gate__d_j_d_environment__time =
1287 var_chaste_interface__fast_sodium_current_j_gate__d_j_d_environment__time_converter;
1289 var_chaste_interface__rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__d_X_kr_d_environment__time_converter =
1290 var_rapid_activating_delayed_rectifiyer_K_current__rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__d_X_kr_d_environment__time;
1292 var_chaste_interface__rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__d_X_kr_d_environment__time =
1294 var_chaste_interface__rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__d_X_kr_d_environment__time_converter;
1296 var_chaste_interface__slow_activating_delayed_rectifiyer_K_current_X_ks_gate__d_X_ks_d_environment__time_converter =
1297 var_slow_activating_delayed_rectifiyer_K_current__slow_activating_delayed_rectifiyer_K_current_X_ks_gate__d_X_ks_d_environment__time;
1299 var_chaste_interface__slow_activating_delayed_rectifiyer_K_current_X_ks_gate__d_X_ks_d_environment__time =
1301 var_chaste_interface__slow_activating_delayed_rectifiyer_K_current_X_ks_gate__d_X_ks_d_environment__time_converter;
1303 var_chaste_interface__transient_outward_potassium_current_X_to1_gate__d_X_to1_d_environment__time_converter =
1304 var_transient_outward_potassium_current__transient_outward_potassium_current_X_to1_gate__d_X_to1_d_environment__time;
1306 var_chaste_interface__transient_outward_potassium_current_X_to1_gate__d_X_to1_d_environment__time =
1308 var_chaste_interface__transient_outward_potassium_current_X_to1_gate__d_X_to1_d_environment__time_converter;
1310 var_chaste_interface__transient_outward_potassium_current_Y_to1_gate__d_Y_to1_d_environment__time_converter =
1311 var_transient_outward_potassium_current__transient_outward_potassium_current_Y_to1_gate__d_Y_to1_d_environment__time;
1313 var_chaste_interface__transient_outward_potassium_current_Y_to1_gate__d_Y_to1_d_environment__time =
1315 var_chaste_interface__transient_outward_potassium_current_Y_to1_gate__d_Y_to1_d_environment__time_converter;
1317 var_chaste_interface__L_type_Ca_current__d_O_d_environment__time_converter =
1318 var_L_type_Ca_current__d_O_d_environment__time;
1320 var_chaste_interface__L_type_Ca_current__d_O_d_environment__time =
1322 var_chaste_interface__L_type_Ca_current__d_O_d_environment__time_converter;
1324 var_chaste_interface__L_type_Ca_current__d_O_Ca_d_environment__time_converter =
1325 var_L_type_Ca_current__d_O_Ca_d_environment__time;
1327 var_chaste_interface__L_type_Ca_current__d_O_Ca_d_environment__time =
1329 var_chaste_interface__L_type_Ca_current__d_O_Ca_d_environment__time_converter;
1331 var_chaste_interface__L_type_Ca_current__d_C0_d_environment__time_converter =
1332 var_L_type_Ca_current__d_C0_d_environment__time;
1334 var_chaste_interface__L_type_Ca_current__d_C0_d_environment__time =
1336 var_chaste_interface__L_type_Ca_current__d_C0_d_environment__time_converter;
1338 var_chaste_interface__L_type_Ca_current__d_C1_d_environment__time_converter =
1339 var_L_type_Ca_current__d_C1_d_environment__time;
1341 var_chaste_interface__L_type_Ca_current__d_C1_d_environment__time =
1343 var_chaste_interface__L_type_Ca_current__d_C1_d_environment__time_converter;
1345 var_chaste_interface__L_type_Ca_current__d_C2_d_environment__time_converter =
1346 var_L_type_Ca_current__d_C2_d_environment__time;
1348 var_chaste_interface__L_type_Ca_current__d_C2_d_environment__time =
1350 var_chaste_interface__L_type_Ca_current__d_C2_d_environment__time_converter;
1352 var_chaste_interface__L_type_Ca_current__d_C3_d_environment__time_converter =
1353 var_L_type_Ca_current__d_C3_d_environment__time;
1355 var_chaste_interface__L_type_Ca_current__d_C3_d_environment__time =
1357 var_chaste_interface__L_type_Ca_current__d_C3_d_environment__time_converter;
1359 var_chaste_interface__L_type_Ca_current__d_C4_d_environment__time_converter =
1360 var_L_type_Ca_current__d_C4_d_environment__time;
1362 var_chaste_interface__L_type_Ca_current__d_C4_d_environment__time =
1364 var_chaste_interface__L_type_Ca_current__d_C4_d_environment__time_converter;
1366 var_chaste_interface__L_type_Ca_current__d_C_Ca0_d_environment__time_converter =
1367 var_L_type_Ca_current__d_C_Ca0_d_environment__time;
1369 var_chaste_interface__L_type_Ca_current__d_C_Ca0_d_environment__time =
1371 var_chaste_interface__L_type_Ca_current__d_C_Ca0_d_environment__time_converter;
1373 var_chaste_interface__L_type_Ca_current__d_C_Ca1_d_environment__time_converter =
1374 var_L_type_Ca_current__d_C_Ca1_d_environment__time;
1376 var_chaste_interface__L_type_Ca_current__d_C_Ca1_d_environment__time =
1378 var_chaste_interface__L_type_Ca_current__d_C_Ca1_d_environment__time_converter;
1380 var_chaste_interface__L_type_Ca_current__d_C_Ca2_d_environment__time_converter =
1381 var_L_type_Ca_current__d_C_Ca2_d_environment__time;
1383 var_chaste_interface__L_type_Ca_current__d_C_Ca2_d_environment__time =
1385 var_chaste_interface__L_type_Ca_current__d_C_Ca2_d_environment__time_converter;
1387 var_chaste_interface__L_type_Ca_current__d_C_Ca3_d_environment__time_converter =
1388 var_L_type_Ca_current__d_C_Ca3_d_environment__time;
1390 var_chaste_interface__L_type_Ca_current__d_C_Ca3_d_environment__time =
1392 var_chaste_interface__L_type_Ca_current__d_C_Ca3_d_environment__time_converter;
1394 var_chaste_interface__L_type_Ca_current__d_C_Ca4_d_environment__time_converter =
1395 var_L_type_Ca_current__d_C_Ca4_d_environment__time;
1397 var_chaste_interface__L_type_Ca_current__d_C_Ca4_d_environment__time =
1399 var_chaste_interface__L_type_Ca_current__d_C_Ca4_d_environment__time_converter;
1401 var_chaste_interface__L_type_Ca_current_y_gate__d_y_d_environment__time_converter =
1402 var_L_type_Ca_current__L_type_Ca_current_y_gate__d_y_d_environment__time;
1404 var_chaste_interface__L_type_Ca_current_y_gate__d_y_d_environment__time =
1406 var_chaste_interface__L_type_Ca_current_y_gate__d_y_d_environment__time_converter;
1408 var_chaste_interface__RyR_channel__d_P_O1_d_environment__time_converter =
1409 var_RyR_channel__d_P_O1_d_environment__time;
1410 const NekDouble var_chaste_interface__RyR_channel__d_P_O1_d_environment__time =
1412 var_chaste_interface__RyR_channel__d_P_O1_d_environment__time_converter;
1414 var_chaste_interface__RyR_channel__d_P_O2_d_environment__time_converter =
1415 var_RyR_channel__d_P_O2_d_environment__time;
1416 const NekDouble var_chaste_interface__RyR_channel__d_P_O2_d_environment__time =
1418 var_chaste_interface__RyR_channel__d_P_O2_d_environment__time_converter;
1420 var_chaste_interface__RyR_channel__d_P_C1_d_environment__time_converter =
1421 var_RyR_channel__d_P_C1_d_environment__time;
1422 const NekDouble var_chaste_interface__RyR_channel__d_P_C1_d_environment__time =
1424 var_chaste_interface__RyR_channel__d_P_C1_d_environment__time_converter;
1426 var_chaste_interface__RyR_channel__d_P_C2_d_environment__time_converter =
1427 var_RyR_channel__d_P_C2_d_environment__time;
1428 const NekDouble var_chaste_interface__RyR_channel__d_P_C2_d_environment__time =
1430 var_chaste_interface__RyR_channel__d_P_C2_d_environment__time_converter;
1432 var_chaste_interface__intracellular_Ca_fluxes__d_HTRPNCa_d_environment__time_converter =
1433 var_intracellular_Ca_fluxes__d_HTRPNCa_d_environment__time;
1435 var_chaste_interface__intracellular_Ca_fluxes__d_HTRPNCa_d_environment__time =
1437 var_chaste_interface__intracellular_Ca_fluxes__d_HTRPNCa_d_environment__time_converter;
1439 var_chaste_interface__intracellular_Ca_fluxes__d_LTRPNCa_d_environment__time_converter =
1440 var_intracellular_Ca_fluxes__d_LTRPNCa_d_environment__time;
1442 var_chaste_interface__intracellular_Ca_fluxes__d_LTRPNCa_d_environment__time =
1444 var_chaste_interface__intracellular_Ca_fluxes__d_LTRPNCa_d_environment__time_converter;
1446 var_chaste_interface__intracellular_ion_concentrations__d_Nai_d_environment__time_converter =
1447 var_intracellular_ion_concentrations__d_Nai_d_environment__time;
1449 var_chaste_interface__intracellular_ion_concentrations__d_Nai_d_environment__time =
1451 var_chaste_interface__intracellular_ion_concentrations__d_Nai_d_environment__time_converter;
1453 var_chaste_interface__intracellular_ion_concentrations__d_Cai_d_environment__time_converter =
1454 var_intracellular_ion_concentrations__d_Cai_d_environment__time;
1456 var_chaste_interface__intracellular_ion_concentrations__d_Cai_d_environment__time =
1458 var_chaste_interface__intracellular_ion_concentrations__d_Cai_d_environment__time_converter;
1460 var_chaste_interface__intracellular_ion_concentrations__d_Ki_d_environment__time_converter =
1461 var_intracellular_ion_concentrations__d_Ki_d_environment__time;
1463 var_chaste_interface__intracellular_ion_concentrations__d_Ki_d_environment__time =
1465 var_chaste_interface__intracellular_ion_concentrations__d_Ki_d_environment__time_converter;
1467 var_chaste_interface__intracellular_ion_concentrations__d_Ca_ss_d_environment__time_converter =
1468 var_intracellular_ion_concentrations__d_Ca_ss_d_environment__time;
1470 var_chaste_interface__intracellular_ion_concentrations__d_Ca_ss_d_environment__time =
1472 var_chaste_interface__intracellular_ion_concentrations__d_Ca_ss_d_environment__time_converter;
1474 var_chaste_interface__intracellular_ion_concentrations__d_Ca_JSR_d_environment__time_converter =
1475 var_intracellular_ion_concentrations__d_Ca_JSR_d_environment__time;
1477 var_chaste_interface__intracellular_ion_concentrations__d_Ca_JSR_d_environment__time =
1479 var_chaste_interface__intracellular_ion_concentrations__d_Ca_JSR_d_environment__time_converter;
1481 var_chaste_interface__intracellular_ion_concentrations__d_Ca_NSR_d_environment__time_converter =
1482 var_intracellular_ion_concentrations__d_Ca_NSR_d_environment__time;
1484 var_chaste_interface__intracellular_ion_concentrations__d_Ca_NSR_d_environment__time =
1486 var_chaste_interface__intracellular_ion_concentrations__d_Ca_NSR_d_environment__time_converter;
1487 const NekDouble d_dt_chaste_interface__fast_sodium_current_m_gate__m =
1488 var_chaste_interface__fast_sodium_current_m_gate__d_m_d_environment__time;
1489 const NekDouble d_dt_chaste_interface__fast_sodium_current_h_gate__h =
1490 var_chaste_interface__fast_sodium_current_h_gate__d_h_d_environment__time;
1491 const NekDouble d_dt_chaste_interface__fast_sodium_current_j_gate__j =
1492 var_chaste_interface__fast_sodium_current_j_gate__d_j_d_environment__time;
1494 d_dt_chaste_interface__rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__X_kr =
1495 var_chaste_interface__rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__d_X_kr_d_environment__time;
1497 d_dt_chaste_interface__slow_activating_delayed_rectifiyer_K_current_X_ks_gate__X_ks =
1498 var_chaste_interface__slow_activating_delayed_rectifiyer_K_current_X_ks_gate__d_X_ks_d_environment__time;
1500 d_dt_chaste_interface__transient_outward_potassium_current_X_to1_gate__X_to1 =
1501 var_chaste_interface__transient_outward_potassium_current_X_to1_gate__d_X_to1_d_environment__time;
1503 d_dt_chaste_interface__transient_outward_potassium_current_Y_to1_gate__Y_to1 =
1504 var_chaste_interface__transient_outward_potassium_current_Y_to1_gate__d_Y_to1_d_environment__time;
1505 const NekDouble d_dt_chaste_interface__L_type_Ca_current__O =
1506 var_chaste_interface__L_type_Ca_current__d_O_d_environment__time;
1507 const NekDouble d_dt_chaste_interface__L_type_Ca_current__O_Ca =
1508 var_chaste_interface__L_type_Ca_current__d_O_Ca_d_environment__time;
1509 const NekDouble d_dt_chaste_interface__L_type_Ca_current__C0 =
1510 var_chaste_interface__L_type_Ca_current__d_C0_d_environment__time;
1511 const NekDouble d_dt_chaste_interface__L_type_Ca_current__C1 =
1512 var_chaste_interface__L_type_Ca_current__d_C1_d_environment__time;
1513 const NekDouble d_dt_chaste_interface__L_type_Ca_current__C2 =
1514 var_chaste_interface__L_type_Ca_current__d_C2_d_environment__time;
1515 const NekDouble d_dt_chaste_interface__L_type_Ca_current__C3 =
1516 var_chaste_interface__L_type_Ca_current__d_C3_d_environment__time;
1517 const NekDouble d_dt_chaste_interface__L_type_Ca_current__C4 =
1518 var_chaste_interface__L_type_Ca_current__d_C4_d_environment__time;
1519 const NekDouble d_dt_chaste_interface__L_type_Ca_current__C_Ca0 =
1520 var_chaste_interface__L_type_Ca_current__d_C_Ca0_d_environment__time;
1521 const NekDouble d_dt_chaste_interface__L_type_Ca_current__C_Ca1 =
1522 var_chaste_interface__L_type_Ca_current__d_C_Ca1_d_environment__time;
1523 const NekDouble d_dt_chaste_interface__L_type_Ca_current__C_Ca2 =
1524 var_chaste_interface__L_type_Ca_current__d_C_Ca2_d_environment__time;
1525 const NekDouble d_dt_chaste_interface__L_type_Ca_current__C_Ca3 =
1526 var_chaste_interface__L_type_Ca_current__d_C_Ca3_d_environment__time;
1527 const NekDouble d_dt_chaste_interface__L_type_Ca_current__C_Ca4 =
1528 var_chaste_interface__L_type_Ca_current__d_C_Ca4_d_environment__time;
1529 const NekDouble d_dt_chaste_interface__L_type_Ca_current_y_gate__y =
1530 var_chaste_interface__L_type_Ca_current_y_gate__d_y_d_environment__time;
1531 const NekDouble d_dt_chaste_interface__RyR_channel__P_O1 =
1532 var_chaste_interface__RyR_channel__d_P_O1_d_environment__time;
1534 const NekDouble d_dt_chaste_interface__RyR_channel__P_O2 =
1535 var_chaste_interface__RyR_channel__d_P_O2_d_environment__time;
1537 const NekDouble d_dt_chaste_interface__RyR_channel__P_C1 =
1538 var_chaste_interface__RyR_channel__d_P_C1_d_environment__time;
1540 const NekDouble d_dt_chaste_interface__RyR_channel__P_C2 =
1541 var_chaste_interface__RyR_channel__d_P_C2_d_environment__time;
1543 const NekDouble d_dt_chaste_interface__intracellular_Ca_fluxes__HTRPNCa =
1544 var_chaste_interface__intracellular_Ca_fluxes__d_HTRPNCa_d_environment__time;
1545 const NekDouble d_dt_chaste_interface__intracellular_Ca_fluxes__LTRPNCa =
1546 var_chaste_interface__intracellular_Ca_fluxes__d_LTRPNCa_d_environment__time;
1547 const NekDouble d_dt_chaste_interface__intracellular_ion_concentrations__Nai =
1548 var_chaste_interface__intracellular_ion_concentrations__d_Nai_d_environment__time;
1549 const NekDouble d_dt_chaste_interface__intracellular_ion_concentrations__Cai =
1550 var_chaste_interface__intracellular_ion_concentrations__d_Cai_d_environment__time;
1551 const NekDouble d_dt_chaste_interface__intracellular_ion_concentrations__Ki =
1552 var_chaste_interface__intracellular_ion_concentrations__d_Ki_d_environment__time;
1554 d_dt_chaste_interface__intracellular_ion_concentrations__Ca_ss =
1555 var_chaste_interface__intracellular_ion_concentrations__d_Ca_ss_d_environment__time;
1557 d_dt_chaste_interface__intracellular_ion_concentrations__Ca_JSR =
1558 var_chaste_interface__intracellular_ion_concentrations__d_Ca_JSR_d_environment__time;
1560 d_dt_chaste_interface__intracellular_ion_concentrations__Ca_NSR =
1561 var_chaste_interface__intracellular_ion_concentrations__d_Ca_NSR_d_environment__time;
1563 const NekDouble var_membrane__C_sc = 0.001;
1565 var_fast_sodium_current__i_Na;
1567 var_L_type_Ca_current__i_Ca;
1569 var_L_type_Ca_current__i_Ca_K;
1571 var_rapid_activating_delayed_rectifiyer_K_current__i_Kr;
1573 var_slow_activating_delayed_rectifiyer_K_current__i_Ks;
1575 var_transient_outward_potassium_current__i_to1;
1577 var_time_independent_potassium_current__i_K1;
1579 var_plateau_potassium_current__i_Kp;
1581 var_Na_Ca_exchanger__i_NaCa;
1583 var_sodium_potassium_pump__i_NaK;
1585 var_sarcolemmal_calcium_pump__i_p_Ca;
1587 var_calcium_background_current__i_Ca_b;
1589 var_sodium_background_current__i_Na_b;
1590 const NekDouble var_chaste_interface__membrane__i_Stim = 0.0;
1591 const NekDouble var_membrane__i_Stim_converter =
1592 var_chaste_interface__membrane__i_Stim;
1594 var_membrane__chaste_interface__chaste_membrane_capacitance =
1597 var_membrane__i_Stim_converter /
1598 var_membrane__chaste_interface__chaste_membrane_capacitance;
1599 const NekDouble var_membrane__d_V_d_environment__time =
1601 (var_membrane__i_Na + var_membrane__i_Ca + var_membrane__i_Ca_K +
1602 var_membrane__i_Kr + var_membrane__i_Ks + var_membrane__i_to1 +
1603 var_membrane__i_K1 + var_membrane__i_Kp + var_membrane__i_NaCa +
1604 var_membrane__i_NaK + var_membrane__i_p_Ca +
1605 var_membrane__i_Na_b + var_membrane__i_Ca_b +
1606 var_membrane__i_Stim)) /
1609 var_chaste_interface__membrane__d_V_d_environment__time_converter =
1610 var_membrane__d_V_d_environment__time;
1611 const NekDouble var_chaste_interface__membrane__d_V_d_environment__time =
1613 var_chaste_interface__membrane__d_V_d_environment__time_converter;
1614 d_dt_chaste_interface__membrane__V =
1615 var_chaste_interface__membrane__d_V_d_environment__time;
1618 outarray[0][i] = d_dt_chaste_interface__membrane__V;
1619 outarray[1][i] = d_dt_chaste_interface__fast_sodium_current_m_gate__m;
1620 outarray[2][i] = d_dt_chaste_interface__fast_sodium_current_h_gate__h;
1621 outarray[3][i] = d_dt_chaste_interface__fast_sodium_current_j_gate__j;
1623 d_dt_chaste_interface__rapid_activating_delayed_rectifiyer_K_current_X_kr_gate__X_kr;
1625 d_dt_chaste_interface__slow_activating_delayed_rectifiyer_K_current_X_ks_gate__X_ks;
1627 d_dt_chaste_interface__transient_outward_potassium_current_X_to1_gate__X_to1;
1629 d_dt_chaste_interface__transient_outward_potassium_current_Y_to1_gate__Y_to1;
1630 outarray[8][i] = d_dt_chaste_interface__L_type_Ca_current__O;
1631 outarray[9][i] = d_dt_chaste_interface__L_type_Ca_current__O_Ca;
1632 outarray[10][i] = d_dt_chaste_interface__L_type_Ca_current__C0;
1633 outarray[11][i] = d_dt_chaste_interface__L_type_Ca_current__C1;
1634 outarray[12][i] = d_dt_chaste_interface__L_type_Ca_current__C2;
1635 outarray[13][i] = d_dt_chaste_interface__L_type_Ca_current__C3;
1636 outarray[14][i] = d_dt_chaste_interface__L_type_Ca_current__C4;
1637 outarray[15][i] = d_dt_chaste_interface__L_type_Ca_current__C_Ca0;
1638 outarray[16][i] = d_dt_chaste_interface__L_type_Ca_current__C_Ca1;
1639 outarray[17][i] = d_dt_chaste_interface__L_type_Ca_current__C_Ca2;
1640 outarray[18][i] = d_dt_chaste_interface__L_type_Ca_current__C_Ca3;
1641 outarray[19][i] = d_dt_chaste_interface__L_type_Ca_current__C_Ca4;
1642 outarray[20][i] = d_dt_chaste_interface__L_type_Ca_current_y_gate__y;
1643 outarray[21][i] = d_dt_chaste_interface__RyR_channel__P_O1;
1644 outarray[22][i] = d_dt_chaste_interface__RyR_channel__P_O2;
1645 outarray[23][i] = d_dt_chaste_interface__RyR_channel__P_C1;
1646 outarray[24][i] = d_dt_chaste_interface__RyR_channel__P_C2;
1648 d_dt_chaste_interface__intracellular_Ca_fluxes__HTRPNCa;
1650 d_dt_chaste_interface__intracellular_Ca_fluxes__LTRPNCa;
1652 d_dt_chaste_interface__intracellular_ion_concentrations__Nai;
1654 d_dt_chaste_interface__intracellular_ion_concentrations__Cai;
1656 d_dt_chaste_interface__intracellular_ion_concentrations__Ki;
1658 d_dt_chaste_interface__intracellular_ion_concentrations__Ca_ss;
1660 d_dt_chaste_interface__intracellular_ion_concentrations__Ca_JSR;
1662 d_dt_chaste_interface__intracellular_ion_concentrations__Ca_NSR;
Array< OneD, Array< OneD, NekDouble > > m_cellSol
Cell model solution variables.
std::vector< int > m_concentrations
Indices of cell model variables which are concentrations.
std::vector< int > m_gates
Indices of cell model variables which are gates.
size_t m_nq
Number of physical points.
size_t m_nvar
Number of variables in cell model (inc. transmembrane voltage)
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
void v_SetInitialConditions() override
Set initial conditions for cell model.
void v_GenerateSummary(SummaryList &s) override
Prints a summary of the model parameters.
static CellModelSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField)
Creates an instance of this class.
static std::string className
Name of class.
void v_Update(const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time) override
Computes the reaction terms $f(u,v)$ and $g(u,v)$.
Winslow99(const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField)
Constructor.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
std::vector< std::pair< std::string, std::string > > SummaryList
void AddSummaryItem(SummaryList &l, const std::string &name, const std::string &value)
Adds a summary item to the summary info list.
CellModelFactory & GetCellModelFactory()
void Fill(int n, const T alpha, T *x, const int incx)
Fill a vector with a constant value.
scalarT< T > log(scalarT< T > in)
scalarT< T > sqrt(scalarT< T > in)