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 24 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 37 entries in the constant variable array. C C C VOI is time in component environment (millisecond). C STATES(1) is V in component membrane (millivolt). C CONSTS(1) is Cm in component membrane (femtoF). C ALGBRC(2) is i_K in component K_current (picoA). C ALGBRC(12) is i_K_Ca in component K_Ca_current (picoA). C ALGBRC(5) is i_K_ATP in component K_ATP_current (picoA). C ALGBRC(16) is i_CRAC in component CRAC_current (picoA). C ALGBRC(11) is i_Ca in component Ca_current_total (picoA). C ALGBRC(18) is i_leak in component leak_current (picoA). C CONSTS(2) is V_K in component K_current (millivolt). C CONSTS(3) is g_K in component K_current (picoS). C STATES(2) is n in component K_channel_n_gate (dimensionless). C ALGBRC(1) is n_infinity in component K_channel_n_gate (dimensionless). C ALGBRC(4) is tau_n in component K_channel_n_gate (millisecond). C CONSTS(4) is Vn in component K_channel_n_gate (millivolt). C CONSTS(5) is Sn in component K_channel_n_gate (millivolt). C CONSTS(6) is lambda_n in component K_channel_n_gate (dimensionless). C CONSTS(7) is g_K_ATP in component K_ATP_current (picoS). C ALGBRC(8) is i_Ca_f in component fast_Ca_current (picoA). C CONSTS(8) is V_Ca in component fast_Ca_current (millivolt). C CONSTS(9) is g_Ca_f in component fast_Ca_current (picoS). C ALGBRC(7) is m_f_infinity in component fast_Ca_channel_m_gate (dimensionless). C CONSTS(10) is Vm_f in component fast_Ca_channel_m_gate (millivolt). C CONSTS(11) is Sm_f in component fast_Ca_channel_m_gate (millivolt). C ALGBRC(10) is i_Ca_s in component slow_Ca_current (picoA). C CONSTS(12) is g_Ca_s in component slow_Ca_current (picoS). C ALGBRC(9) is m_s_infinity in component slow_Ca_channel_m_gate (dimensionless). C STATES(3) is jm in component slow_Ca_channel_j_gate (dimensionless). C CONSTS(13) is Vm_s in component slow_Ca_channel_m_gate (millivolt). C CONSTS(14) is Sm_s in component slow_Ca_channel_m_gate (millivolt). C ALGBRC(3) is jm_infinity in component slow_Ca_channel_j_gate (dimensionless). C CONSTS(15) is Vj in component slow_Ca_channel_j_gate (millivolt). C ALGBRC(6) is tau_j in component slow_Ca_channel_j_gate (millisecond). C CONSTS(16) is Sj in component slow_Ca_channel_j_gate (millivolt). C CONSTS(17) is g_K_Ca in component K_Ca_current (picoS). C STATES(4) is Ca_i in component Ca_equations (micromolar). C CONSTS(18) is kdkca in component K_Ca_current (micromolar). C CONSTS(19) is g_CRAC in component CRAC_current (picoS). C CONSTS(20) is V_CRAC in component CRAC_current (millivolt). C STATES(5) is Ca_er in component Ca_equations (micromolar). C ALGBRC(14) is r_infinity in component CRAC_r_gate (dimensionless). C CONSTS(21) is Ca_er_bar in component CRAC_r_gate (micromolar). C CONSTS(22) is sloper in component CRAC_r_gate (micromolar). C CONSTS(23) is g_leak in component leak_current (picoS). C ALGBRC(13) is J_er_p in component ER_parameters (micromolar_per_millisecond). C CONSTS(24) is IP3 in component ER_parameters (micromolar). C CONSTS(25) is kerp in component ER_parameters (micromolar). C CONSTS(26) is verp in component ER_parameters (micromolar_per_millisecond). C CONSTS(27) is dact in component ER_parameters (micromolar). C CONSTS(28) is dinh in component ER_parameters (micromolar). C CONSTS(29) is dip3 in component ER_parameters (micromolar). C ALGBRC(15) is a_infinity in component ER_parameters (dimensionless). C CONSTS(37) is b_infinity in component ER_parameters (dimensionless). C ALGBRC(17) is h_infinity in component ER_parameters (dimensionless). C ALGBRC(19) is O in component ER_parameters (per_millisecond). C ALGBRC(22) is J_er_tot in component Ca_equations (micromolar_per_millisecond). C ALGBRC(21) is J_er_IP3 in component Ca_equations (micromolar_per_millisecond). C ALGBRC(20) is J_er_leak in component Ca_equations (micromolar_per_millisecond). C ALGBRC(24) is J_mem_tot in component Ca_membrane_flux (micromolar_per_millisecond). C CONSTS(30) is perl in component Ca_equations (per_millisecond). C CONSTS(31) is lambda_er in component Ca_equations (dimensionless). C CONSTS(32) is sigma_er in component Ca_equations (dimensionless). C CONSTS(33) is kmp in component Ca_membrane_flux (micromolar). C CONSTS(34) is vmp in component Ca_membrane_flux (micromolar). C CONSTS(35) is gamma in component Ca_membrane_flux (micromolar_per_picoA). C ALGBRC(23) is Jmp in component Ca_membrane_flux (micromolar). C CONSTS(36) is f in component Ca_membrane_flux (per_millisecond). C RATES(1) is d/dt V in component membrane (millivolt). C RATES(2) is d/dt n in component K_channel_n_gate (dimensionless). C RATES(3) is d/dt jm in component slow_Ca_channel_j_gate (dimensionless). C RATES(5) is d/dt Ca_er in component Ca_equations (micromolar). C RATES(4) is d/dt Ca_i in component Ca_equations (micromolar). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = -61 CONSTS(1) = 6158 CONSTS(2) = -70 CONSTS(3) = 3900 STATES(2) = 0.0005 CONSTS(4) = -15 CONSTS(5) = 6 CONSTS(6) = 1.85 CONSTS(7) = 150 CONSTS(8) = 100 CONSTS(9) = 810 CONSTS(10) = -20 CONSTS(11) = 7.5 CONSTS(12) = 510 STATES(3) = 0.12 CONSTS(13) = -16 CONSTS(14) = 10 CONSTS(15) = -53 CONSTS(16) = 2 CONSTS(17) = 1200 STATES(4) = 0.11 CONSTS(18) = 0.55 CONSTS(19) = 75 CONSTS(20) = 0 STATES(5) = 60 CONSTS(21) = 40 CONSTS(22) = 3 CONSTS(23) = 0 CONSTS(24) = 0 CONSTS(25) = 0.09 CONSTS(26) = 0.24 CONSTS(27) = 0.35 CONSTS(28) = 0.4 CONSTS(29) = 0.2 CONSTS(30) = 0.003 CONSTS(31) = 250 CONSTS(32) = 1 CONSTS(33) = 0.35 CONSTS(34) = 0.08 CONSTS(35) = 0.000003607 CONSTS(36) = 0.01 CONSTS(37) = CONSTS(24)/(CONSTS(24)+CONSTS(29)) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = 1.00000/(1.00000+EXP((CONSTS(4) - STATES(1))/CONSTS(5))) ALGBRC(4) = 9.09000/(1.00000+EXP((STATES(1) - CONSTS(4))/CONSTS(5))) RATES(2) = ( CONSTS(6)*(ALGBRC(1) - STATES(2)))/ALGBRC(4) ALGBRC(3) = 1.00000 - 1.00000/(1.00000+EXP((STATES(1) - CONSTS(15))/CONSTS(16))) ALGBRC(6) = 50000.0/(EXP((STATES(1) - CONSTS(15))/4.00000)+EXP((CONSTS(15) - STATES(1))/4.00000))+1500.00 RATES(3) = (ALGBRC(3) - STATES(3))/ALGBRC(6) ALGBRC(2) = CONSTS(3)*STATES(2)*(STATES(1) - CONSTS(2)) ALGBRC(12) = (( CONSTS(17)*STATES(4) ** 5.00000)/(STATES(4) ** 5.00000+CONSTS(18) ** 5.00000))*(STATES(1) - CONSTS(2)) ALGBRC(5) = CONSTS(7)*(STATES(1) - CONSTS(2)) ALGBRC(14) = 1.00000/(1.00000+EXP((STATES(5) - CONSTS(21))/CONSTS(22))) ALGBRC(16) = CONSTS(19)*ALGBRC(14)*(STATES(1) - CONSTS(20)) ALGBRC(7) = 1.00000/(1.00000+EXP((CONSTS(10) - STATES(1))/CONSTS(11))) ALGBRC(8) = CONSTS(9)*ALGBRC(7)*(STATES(1) - CONSTS(8)) ALGBRC(9) = 1.00000/(1.00000+EXP((CONSTS(13) - STATES(1))/CONSTS(14))) ALGBRC(10) = CONSTS(12)*ALGBRC(9)*(1.00000 - STATES(3))*(STATES(1) - CONSTS(8)) ALGBRC(11) = ALGBRC(8)+ALGBRC(10) ALGBRC(18) = CONSTS(23)*(STATES(1) - CONSTS(20)) RATES(1) = - (ALGBRC(11)+ALGBRC(2)+ALGBRC(5)+ALGBRC(12)+ALGBRC(16)+ALGBRC(18))/CONSTS(1) ALGBRC(13) = ( CONSTS(26)*STATES(4) ** 2.00000)/(STATES(4) ** 2.00000+CONSTS(25) ** 2.00000) ALGBRC(15) = 1.00000/(1.00000+CONSTS(27)/STATES(4)) ALGBRC(17) = 1.00000/(1.00000+STATES(4)/CONSTS(28)) ALGBRC(19) = ALGBRC(15) ** 3.00000*CONSTS(37) ** 3.00000*ALGBRC(17) ** 3.00000*1.00000 ALGBRC(21) = ALGBRC(19)*(STATES(5) - STATES(4)) ALGBRC(20) = CONSTS(30)*(STATES(5) - STATES(4)) ALGBRC(22) = (ALGBRC(20)+ALGBRC(21)) - ALGBRC(13) RATES(5) = - ALGBRC(22)/( CONSTS(31)*CONSTS(32)) ALGBRC(23) = ( CONSTS(34)*STATES(4) ** 2.00000)/(STATES(4) ** 2.00000+CONSTS(33) ** 2.00000) ALGBRC(24) = - CONSTS(36)*( CONSTS(35)*ALGBRC(11)+ALGBRC(23)) RATES(4) = ALGBRC(22)/CONSTS(31)+ALGBRC(24) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = 1.00000/(1.00000+EXP((CONSTS(4) - STATES(1))/CONSTS(5))) ALGBRC(4) = 9.09000/(1.00000+EXP((STATES(1) - CONSTS(4))/CONSTS(5))) ALGBRC(3) = 1.00000 - 1.00000/(1.00000+EXP((STATES(1) - CONSTS(15))/CONSTS(16))) ALGBRC(6) = 50000.0/(EXP((STATES(1) - CONSTS(15))/4.00000)+EXP((CONSTS(15) - STATES(1))/4.00000))+1500.00 ALGBRC(2) = CONSTS(3)*STATES(2)*(STATES(1) - CONSTS(2)) ALGBRC(12) = (( CONSTS(17)*STATES(4) ** 5.00000)/(STATES(4) ** 5.00000+CONSTS(18) ** 5.00000))*(STATES(1) - CONSTS(2)) ALGBRC(5) = CONSTS(7)*(STATES(1) - CONSTS(2)) ALGBRC(14) = 1.00000/(1.00000+EXP((STATES(5) - CONSTS(21))/CONSTS(22))) ALGBRC(16) = CONSTS(19)*ALGBRC(14)*(STATES(1) - CONSTS(20)) ALGBRC(7) = 1.00000/(1.00000+EXP((CONSTS(10) - STATES(1))/CONSTS(11))) ALGBRC(8) = CONSTS(9)*ALGBRC(7)*(STATES(1) - CONSTS(8)) ALGBRC(9) = 1.00000/(1.00000+EXP((CONSTS(13) - STATES(1))/CONSTS(14))) ALGBRC(10) = CONSTS(12)*ALGBRC(9)*(1.00000 - STATES(3))*(STATES(1) - CONSTS(8)) ALGBRC(11) = ALGBRC(8)+ALGBRC(10) ALGBRC(18) = CONSTS(23)*(STATES(1) - CONSTS(20)) ALGBRC(13) = ( CONSTS(26)*STATES(4) ** 2.00000)/(STATES(4) ** 2.00000+CONSTS(25) ** 2.00000) ALGBRC(15) = 1.00000/(1.00000+CONSTS(27)/STATES(4)) ALGBRC(17) = 1.00000/(1.00000+STATES(4)/CONSTS(28)) ALGBRC(19) = ALGBRC(15) ** 3.00000*CONSTS(37) ** 3.00000*ALGBRC(17) ** 3.00000*1.00000 ALGBRC(21) = ALGBRC(19)*(STATES(5) - STATES(4)) ALGBRC(20) = CONSTS(30)*(STATES(5) - STATES(4)) ALGBRC(22) = (ALGBRC(20)+ALGBRC(21)) - ALGBRC(13) ALGBRC(23) = ( CONSTS(34)*STATES(4) ** 2.00000)/(STATES(4) ** 2.00000+CONSTS(33) ** 2.00000) ALGBRC(24) = - CONSTS(36)*( CONSTS(35)*ALGBRC(11)+ALGBRC(23)) RETURN END