Generated Code
The following is f77 code generated by the CellML API from this CellML file. (Back to language selection)
The raw code is available.
C C There are a total of 11 entries in the algebraic variable array. C There are a total of 4 entries in each of the rate and state variable arrays. C There are a total of 35 entries in the constant variable array. C C C VOI is time in component time_s (second). C ALGBRC(3) is Cai in component Cai (mM). C CONSTS(1) is V in component control_para (mV). C CONSTS(2) is M_init in component control_para (dimensionless). C CONSTS(3) is Mp_init in component control_para (dimensionless). C ALGBRC(10) is J_VOCC in component J_VOCC (mM_per_s). C ALGBRC(4) is J_CaPump in component J_CaPump (mM_per_s). C ALGBRC(11) is J_NaCa in component J_NaCa (mM_per_s). C CONSTS(34) is rho_vCa in component J_VOCC (dimensionless). C ALGBRC(7) is K_1 in component K_1 (per_s). C ALGBRC(1) is stress in component CB4HM (dimensionless). C ALGBRC(2) is phosphorylation in component CB4HM (dimensionless). C CONSTS(4) is R in component constants (J_per_K_mol). C CONSTS(5) is F in component constants (C_per_mmol). C CONSTS(6) is T in component model_para (kelvin). C CONSTS(7) is Nai in component model_para (mM). C CONSTS(8) is Nao in component model_para (mM). C CONSTS(9) is Cao in component model_para (mM). C CONSTS(10) is V_cell in component model_para (fm3). C CONSTS(11) is V_Cahalf in component model_para (mV). C CONSTS(12) is K_Cahalf in component model_para (mV). C CONSTS(13) is g_mCa in component model_para (nS). C CONSTS(14) is V_pmax in component model_para (mM_per_s). C CONSTS(15) is n in component model_para (dimensionless). C CONSTS(16) is K_ph in component model_para (mM). C CONSTS(17) is K_NaCa in component model_para (mM). C CONSTS(18) is G_NaCa in component model_para (mM_per_s_mV). C CONSTS(19) is n_M in component model_para (dimensionless). C CONSTS(20) is Ca_halfMLCK in component model_para (mM). C CONSTS(21) is inhPump in component model_para (dimensionless). C CONSTS(22) is AM_init in component initials (dimensionless). C CONSTS(23) is AMp_init in component initials (dimensionless). C CONSTS(24) is K_7 in component model_para (per_s). C CONSTS(25) is K_2 in component model_para (per_s). C CONSTS(26) is K_3 in component model_para (per_s). C CONSTS(27) is K_4 in component model_para (per_s). C CONSTS(28) is K_5 in component model_para (per_s). C CONSTS(29) is M_init in component initials (dimensionless). C CONSTS(30) is Mp_init in component initials (dimensionless). C CONSTS(31) is Cai_init in component initials (mM). C CONSTS(32) is z_Ca in component E_Ca (dimensionless). C ALGBRC(6) is E in component Nernst_potential (mV). C CONSTS(33) is z_Na in component E_Na (dimensionless). C CONSTS(35) is E in component Nernst_potential (mV). C ALGBRC(8) is I in component Ionic_currents (pA). C ALGBRC(9) is V_mNaCa in component J_NaCa (mV). C ALGBRC(5) is norm in component CB4HM (dimensionless). C STATES(1) is M in component CB4HM (dimensionless). C STATES(2) is Mp in component CB4HM (dimensionless). C STATES(3) is AM in component CB4HM (dimensionless). C STATES(4) is AMp in component CB4HM (dimensionless). C RATES(1) is d/dt M in component CB4HM (dimensionless). C RATES(2) is d/dt Mp in component CB4HM (dimensionless). C RATES(3) is d/dt AM in component CB4HM (dimensionless). C RATES(4) is d/dt AMp in component CB4HM (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) CONSTS(1) = -80 CONSTS(2) = 1 CONSTS(3) = 0 CONSTS(4) = 8.314 CONSTS(5) = 96.48534 CONSTS(6) = 310 CONSTS(7) = 2.9836 CONSTS(8) = 140 CONSTS(9) = 2 CONSTS(10) = 21 CONSTS(11) = -27 CONSTS(12) = 11 CONSTS(13) = 0.046842 CONSTS(14) = 5.1449e-4 CONSTS(15) = 1.9015 CONSTS(16) = 0.6e-3 CONSTS(17) = 7e-3 CONSTS(18) = 5.7297e-5 CONSTS(19) = 8.7613 CONSTS(20) = 256.98e-6 CONSTS(21) = 1 CONSTS(22) = 0 CONSTS(23) = 0 CONSTS(24) = 0.0378 CONSTS(25) = 1.2387 CONSTS(26) = 0.1419 CONSTS(27) = 0.035475 CONSTS(28) = 1.2387 CONSTS(29) = 1 CONSTS(30) = 0 CONSTS(31) = 0.1e-6 CONSTS(32) = 2 CONSTS(33) = 1 CONSTS(34) = 1.00000/(1.00000+EXP((CONSTS(11) - CONSTS(1))/CONSTS(12))) CONSTS(35) = (( CONSTS(4)*CONSTS(6))/( CONSTS(33)*CONSTS(5)))*log(CONSTS(8)/CONSTS(7)) STATES(1) = CONSTS(2) STATES(2) = CONSTS(3) STATES(3) = CONSTS(22) STATES(4) = CONSTS(23) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(3) = 340.700*1.00000e-06+ 71.3100*1.00000e-06*log(VOI+0.0500000) ALGBRC(7) = (ALGBRC(3) ** CONSTS(19)/(CONSTS(20) ** CONSTS(19)+ALGBRC(3) ** CONSTS(19)))*1.00000 ALGBRC(5) = STATES(1)+STATES(2)+STATES(3)+STATES(4) RATES(1) = ( - ALGBRC(7)*STATES(1))/ALGBRC(5)+( CONSTS(25)*STATES(2))/ALGBRC(5)+( CONSTS(24)*STATES(3))/ALGBRC(5) RATES(2) = (( CONSTS(27)*STATES(4))/ALGBRC(5)+( ALGBRC(7)*STATES(1))/ALGBRC(5)) - ( (CONSTS(25)+CONSTS(26))*STATES(2))/ALGBRC(5) RATES(3) = ( CONSTS(28)*STATES(4))/ALGBRC(5) - ( (ALGBRC(7)+CONSTS(24))*STATES(3))/ALGBRC(5) RATES(4) = (( CONSTS(26)*STATES(2))/ALGBRC(5)+( ALGBRC(7)*STATES(3))/ALGBRC(5)) - ( (CONSTS(27)+CONSTS(28))*STATES(4))/ALGBRC(5) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(3) = 340.700*1.00000e-06+ 71.3100*1.00000e-06*log(VOI+0.0500000) ALGBRC(7) = (ALGBRC(3) ** CONSTS(19)/(CONSTS(20) ** CONSTS(19)+ALGBRC(3) ** CONSTS(19)))*1.00000 ALGBRC(5) = STATES(1)+STATES(2)+STATES(3)+STATES(4) ALGBRC(1) = STATES(4)+STATES(3) ALGBRC(2) = STATES(4)+STATES(2) ALGBRC(4) = ( - CONSTS(14)*ALGBRC(3) ** CONSTS(15))/(CONSTS(16) ** CONSTS(15)+ALGBRC(3) ** CONSTS(15)) ALGBRC(6) = (( CONSTS(4)*CONSTS(6))/( CONSTS(32)*CONSTS(5)))*log(CONSTS(9)/ALGBRC(3)) ALGBRC(8) = CONSTS(13)*CONSTS(34)*(CONSTS(1) - ALGBRC(6)) ALGBRC(9) = 3.00000*CONSTS(35) - 2.00000*ALGBRC(6) ALGBRC(10) = - ALGBRC(8)/( 2.00000*CONSTS(10)*CONSTS(5)) ALGBRC(11) = (( CONSTS(18)*ALGBRC(3))/(ALGBRC(3)+CONSTS(17)))*(CONSTS(1) - ALGBRC(9)) RETURN END