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 12 entries in the algebraic variable array. C There are a total of 5 entries in each of the rate and state variable arrays. C There are a total of 39 entries in the constant variable array. C C C CONSTS(1) is t_ss in component Vstim_para (second). C CONSTS(2) is V_actHolding in component Vstim_para (mV). C CONSTS(3) is t_act in component Vstim_para (second). C CONSTS(4) is V_actTest in component Vstim_para (mV). C CONSTS(5) is Nai in component control_para (mM). C CONSTS(6) is Cai_init in component control_para (mM). C CONSTS(7) is inhPump in component control_para (dimensionless). C CONSTS(8) is K_Cahalf in component control_para (mV). C VOI is time in component time_s (second). C ALGBRC(3) is V in component sPulse_protocol_s (mV). C STATES(1) is Cai in component Cai (mM). C ALGBRC(12) is J_VOCC in component J_VOCC (mM_per_s). C ALGBRC(7) is J_CaPump in component J_CaPump (mM_per_s). C ALGBRC(10) is J_NaCa in component J_NaCa (mM_per_s). C ALGBRC(1) is stress in component CB4HM (dimensionless). C ALGBRC(2) is phosphorylation in component CB4HM (dimensionless). C CONSTS(9) is R in component constants (J_per_K_mol). C CONSTS(10) is F in component constants (C_per_mmol). C CONSTS(11) is T in component model_para (kelvin). C CONSTS(12) is Nao in component model_para (mM). C CONSTS(13) is Cao in component model_para (mM). C CONSTS(14) is V_cell in component model_para (fm3). C CONSTS(15) is V_Cahalf in component model_para (mV). C CONSTS(16) is g_mCa in component model_para (nS). C CONSTS(17) is V_pmax in component model_para (mM_per_s). C CONSTS(18) is n in component model_para (dimensionless). C CONSTS(19) is K_ph in component model_para (mM). C CONSTS(20) is K_NaCa in component model_para (mM). C CONSTS(21) is G_NaCa in component model_para (mM_per_s_mV). C CONSTS(22) is n_M in component model_para (dimensionless). C CONSTS(23) is Ca_halfMLCK in component model_para (mM). C CONSTS(24) is M_init in component initials (dimensionless). C CONSTS(25) is Mp_init in component initials (dimensionless). C CONSTS(26) is AM_init in component initials (dimensionless). C CONSTS(27) is AMp_init in component initials (dimensionless). C CONSTS(28) is K_7 in component model_para (per_s). C CONSTS(29) is K_2 in component model_para (per_s). C CONSTS(30) is K_3 in component model_para (per_s). C CONSTS(31) is K_4 in component model_para (per_s). C CONSTS(32) is K_5 in component model_para (per_s). C ALGBRC(5) is rho_vCa in component J_VOCC (dimensionless). C CONSTS(33) is Nai in component model_para (mM). C CONSTS(34) is K_Cahalf in component model_para (mV). C CONSTS(35) is inhPump in component model_para (dimensionless). C CONSTS(36) is Cai_init in component initials (mM). C CONSTS(37) is z_Ca in component E_Ca (dimensionless). C ALGBRC(8) is E in component Nernst_potential (mV). C CONSTS(38) is z_Na in component E_Na (dimensionless). C CONSTS(39) is E in component Nernst_potential (mV). C ALGBRC(11) is I in component Ionic_currents (pA). C ALGBRC(9) is V_mNaCa in component J_NaCa (mV). C ALGBRC(6) is K_1 in component K_1 (per_s). C ALGBRC(4) is norm in component CB4HM (dimensionless). C STATES(2) is M in component CB4HM (dimensionless). C STATES(3) is Mp in component CB4HM (dimensionless). C STATES(4) is AM in component CB4HM (dimensionless). C STATES(5) is AMp in component CB4HM (dimensionless). C RATES(1) is d/dt Cai in component Cai (mM). C RATES(2) is d/dt M in component CB4HM (dimensionless). C RATES(3) is d/dt Mp in component CB4HM (dimensionless). C RATES(4) is d/dt AM in component CB4HM (dimensionless). C RATES(5) is d/dt AMp in component CB4HM (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) CONSTS(1) = 0 CONSTS(2) = -80 CONSTS(3) = 1 CONSTS(4) = 0 CONSTS(5) = 16.55 CONSTS(6) = 0.1e-3 CONSTS(7) = 1 CONSTS(8) = 11 CONSTS(9) = 8.314 CONSTS(10) = 96.48534 CONSTS(11) = 310 CONSTS(12) = 140 CONSTS(13) = 2 CONSTS(14) = 21 CONSTS(15) = -27 CONSTS(16) = 0.046842 CONSTS(17) = 5.1449e-4 CONSTS(18) = 1.9015 CONSTS(19) = 0.6e-3 CONSTS(20) = 7e-3 CONSTS(21) = 5.7297e-5 CONSTS(22) = 8.7613 CONSTS(23) = 256.98e-6 CONSTS(24) = 1 CONSTS(25) = 0 CONSTS(26) = 0 CONSTS(27) = 0 CONSTS(28) = 0.0378 CONSTS(29) = 1.2387 CONSTS(30) = 0.1419 CONSTS(31) = 0.035475 CONSTS(32) = 1.2387 CONSTS(33) = 2.9836 CONSTS(34) = 11 CONSTS(35) = 1 CONSTS(36) = 0.1e-6 CONSTS(37) = 2 CONSTS(38) = 1 CONSTS(39) = (( CONSTS(9)*CONSTS(11))/( CONSTS(38)*CONSTS(10)))*log(CONSTS(12)/CONSTS(5)) STATES(1) = CONSTS(6) STATES(2) = CONSTS(24) STATES(3) = CONSTS(25) STATES(4) = CONSTS(26) STATES(5) = CONSTS(27) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(6) = (STATES(1) ** CONSTS(22)/(CONSTS(23) ** CONSTS(22)+STATES(1) ** CONSTS(22)))*1.00000 ALGBRC(4) = STATES(2)+STATES(3)+STATES(4)+STATES(5) RATES(2) = ( - ALGBRC(6)*STATES(2))/ALGBRC(4)+( CONSTS(29)*STATES(3))/ALGBRC(4)+( CONSTS(28)*STATES(4))/ALGBRC(4) RATES(3) = (( CONSTS(31)*STATES(5))/ALGBRC(4)+( ALGBRC(6)*STATES(2))/ALGBRC(4)) - ( (CONSTS(29)+CONSTS(30))*STATES(3))/ALGBRC(4) RATES(4) = ( CONSTS(32)*STATES(5))/ALGBRC(4) - ( (ALGBRC(6)+CONSTS(28))*STATES(4))/ALGBRC(4) RATES(5) = (( CONSTS(30)*STATES(3))/ALGBRC(4)+( ALGBRC(6)*STATES(4))/ALGBRC(4)) - ( (CONSTS(31)+CONSTS(32))*STATES(5))/ALGBRC(4) ALGBRC(3) = TERNRY(VOI.LT.CONSTS(1), CONSTS(2), TERNRY(VOI.GE.CONSTS(1).AND.VOI.LT.CONSTS(3)+CONSTS(1), CONSTS(4), CONSTS(2)) ALGBRC(5) = 1.00000/(1.00000+EXP((CONSTS(15) - ALGBRC(3))/CONSTS(8))) ALGBRC(8) = (( CONSTS(9)*CONSTS(11))/( CONSTS(37)*CONSTS(10)))*log(CONSTS(13)/STATES(1)) ALGBRC(11) = CONSTS(16)*ALGBRC(5)*(ALGBRC(3) - ALGBRC(8)) ALGBRC(12) = - ALGBRC(11)/( 2.00000*CONSTS(14)*CONSTS(10)) ALGBRC(7) = ( - CONSTS(17)*STATES(1) ** CONSTS(18))/(CONSTS(19) ** CONSTS(18)+STATES(1) ** CONSTS(18)) ALGBRC(9) = 3.00000*CONSTS(39) - 2.00000*ALGBRC(8) ALGBRC(10) = (( CONSTS(21)*STATES(1))/(STATES(1)+CONSTS(20)))*(ALGBRC(3) - ALGBRC(9)) RATES(1) = ALGBRC(12)+ CONSTS(7)*ALGBRC(7)+ALGBRC(10) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(6) = (STATES(1) ** CONSTS(22)/(CONSTS(23) ** CONSTS(22)+STATES(1) ** CONSTS(22)))*1.00000 ALGBRC(4) = STATES(2)+STATES(3)+STATES(4)+STATES(5) ALGBRC(3) = TERNRY(VOI.LT.CONSTS(1), CONSTS(2), TERNRY(VOI.GE.CONSTS(1).AND.VOI.LT.CONSTS(3)+CONSTS(1), CONSTS(4), CONSTS(2)) ALGBRC(5) = 1.00000/(1.00000+EXP((CONSTS(15) - ALGBRC(3))/CONSTS(8))) ALGBRC(8) = (( CONSTS(9)*CONSTS(11))/( CONSTS(37)*CONSTS(10)))*log(CONSTS(13)/STATES(1)) ALGBRC(11) = CONSTS(16)*ALGBRC(5)*(ALGBRC(3) - ALGBRC(8)) ALGBRC(12) = - ALGBRC(11)/( 2.00000*CONSTS(14)*CONSTS(10)) ALGBRC(7) = ( - CONSTS(17)*STATES(1) ** CONSTS(18))/(CONSTS(19) ** CONSTS(18)+STATES(1) ** CONSTS(18)) ALGBRC(9) = 3.00000*CONSTS(39) - 2.00000*ALGBRC(8) ALGBRC(10) = (( CONSTS(21)*STATES(1))/(STATES(1)+CONSTS(20)))*(ALGBRC(3) - ALGBRC(9)) ALGBRC(1) = STATES(5)+STATES(4) ALGBRC(2) = STATES(5)+STATES(3) RETURN END REAL FUNCTION TERNRY(TEST, VALA, VALB) LOGICAL TEST REAL VALA, VALB IF (TEST) THEN TERNRY = VALA ELSE TERNRY = VALB ENDIF RETURN END