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 35 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(13) is i_K_Ca in component K_Ca_current (picoA).
C ALGBRC(6) is i_K_ATP in component K_ATP_current (picoA).
C ALGBRC(17) is i_CRAC in component CRAC_current (picoA).
C ALGBRC(12) is i_Ca in component Ca_current_total (picoA).
C ALGBRC(19) 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(5) 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(9) 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(8) 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(11) 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(10) 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 j in component slow_Ca_channel_j_gate (dimensionless).
C ALGBRC(4) 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(7) 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(15) 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 g_leak in component leak_current (picoS).
C ALGBRC(14) is J_er_p in component ER_parameters (micromolar_per_millisecond).
C CONSTS(23) is IP3 in component ER_parameters (micromolar).
C CONSTS(24) is kerp in component ER_parameters (micromolar).
C CONSTS(25) is verp in component ER_parameters (micromolar_per_millisecond).
C CONSTS(26) is dact in component ER_parameters (micromolar).
C CONSTS(27) is dinh in component ER_parameters (micromolar).
C CONSTS(28) is dip3 in component ER_parameters (micromolar).
C ALGBRC(16) is a_infinity in component ER_parameters (dimensionless).
C CONSTS(35) is b_infinity in component ER_parameters (dimensionless).
C ALGBRC(18) is h_infinity in component ER_parameters (dimensionless).
C ALGBRC(20) is O in component ER_parameters (per_millisecond).
C ALGBRC(23) is J_er_tot in component Ca_equations (micromolar_per_millisecond).
C ALGBRC(22) is J_er_IP3 in component Ca_equations (micromolar_per_millisecond).
C ALGBRC(21) 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(29) is perl in component Ca_equations (per_millisecond).
C CONSTS(30) is lambda_er in component Ca_equations (dimensionless).
C CONSTS(31) is sigma_er in component Ca_equations (dimensionless).
C CONSTS(32) is k_Ca in component Ca_membrane_flux (per_millisecond).
C CONSTS(33) is gamma in component Ca_membrane_flux (micromolar_per_millisecond_picoA).
C CONSTS(34) is f in component Ca_membrane_flux (dimensionless).
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) = 9
CONSTS(21) = 3
CONSTS(22) = 0
CONSTS(23) = 0
CONSTS(24) = 0.1
CONSTS(25) = 0.24
CONSTS(26) = 0.1
CONSTS(27) = 0.4
CONSTS(28) = 0.2
CONSTS(29) = 0.02
CONSTS(30) = 250
CONSTS(31) = 5
CONSTS(32) = 0.07
CONSTS(33) = 0.000003607
CONSTS(34) = 0.01
CONSTS(35) = CONSTS(23)/(CONSTS(23)+CONSTS(28))
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(5) = 9.09000/(1.00000+EXP((STATES(1) - CONSTS(4))/CONSTS(5)))
RATES(2) = ( CONSTS(6)*(ALGBRC(1) - STATES(2)))/ALGBRC(5)
ALGBRC(4) = 1.00000 - 1.00000/(1.00000+EXP((STATES(1) - CONSTS(15))/CONSTS(16)))
ALGBRC(7) = 50000.0/(EXP((STATES(1) - CONSTS(15))/4.00000)+EXP((CONSTS(15) - STATES(1))/4.00000))+1500.00
RATES(3) = (ALGBRC(4) - STATES(3))/ALGBRC(7)
ALGBRC(2) = CONSTS(3)*STATES(2)*(STATES(1) - CONSTS(2))
ALGBRC(13) = (( CONSTS(17)*STATES(4) ** 5.00000)/(STATES(4) ** 5.00000+CONSTS(18) ** 5.00000))*(STATES(1) - CONSTS(2))
ALGBRC(6) = CONSTS(7)*(STATES(1) - CONSTS(2))
ALGBRC(15) = 1.00000/(1.00000+EXP( 1.00000*(STATES(5) - CONSTS(21))))
ALGBRC(17) = CONSTS(19)*ALGBRC(15)*(STATES(1) - CONSTS(20))
ALGBRC(8) = 1.00000/(1.00000+EXP((CONSTS(10) - STATES(1))/CONSTS(11)))
ALGBRC(9) = CONSTS(9)*ALGBRC(8)*(STATES(1) - CONSTS(8))
ALGBRC(10) = 1.00000/(1.00000+EXP((CONSTS(13) - STATES(1))/CONSTS(14)))
ALGBRC(11) = CONSTS(12)*ALGBRC(10)*(1.00000 - STATES(3))*(STATES(1) - CONSTS(8))
ALGBRC(12) = ALGBRC(9)+ALGBRC(11)
ALGBRC(19) = CONSTS(22)*(STATES(1) - CONSTS(20))
RATES(1) = - (ALGBRC(12)+ALGBRC(2)+ALGBRC(6)+ALGBRC(13)+ALGBRC(17)+ALGBRC(19))/CONSTS(1)
ALGBRC(14) = ( CONSTS(25)*STATES(4) ** 2.00000)/(STATES(4) ** 2.00000+CONSTS(24) ** 2.00000)
ALGBRC(16) = 1.00000/(1.00000+CONSTS(26)/STATES(4))
ALGBRC(18) = 1.00000/(1.00000+STATES(4)/CONSTS(27))
ALGBRC(20) = ALGBRC(16) ** 3.00000*CONSTS(35) ** 3.00000*ALGBRC(18) ** 3.00000*1.00000
ALGBRC(22) = ALGBRC(20)*(STATES(5) - STATES(4))
ALGBRC(21) = CONSTS(29)*(STATES(5) - STATES(4))
ALGBRC(23) = (ALGBRC(21)+ALGBRC(22)) - ALGBRC(14)
RATES(5) = - ALGBRC(23)/( CONSTS(30)*CONSTS(31))
ALGBRC(24) = - CONSTS(34)*( CONSTS(33)*ALGBRC(12)+ CONSTS(32)*STATES(4))
RATES(4) = ALGBRC(23)/CONSTS(30)+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(5) = 9.09000/(1.00000+EXP((STATES(1) - CONSTS(4))/CONSTS(5)))
ALGBRC(4) = 1.00000 - 1.00000/(1.00000+EXP((STATES(1) - CONSTS(15))/CONSTS(16)))
ALGBRC(7) = 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(13) = (( CONSTS(17)*STATES(4) ** 5.00000)/(STATES(4) ** 5.00000+CONSTS(18) ** 5.00000))*(STATES(1) - CONSTS(2))
ALGBRC(6) = CONSTS(7)*(STATES(1) - CONSTS(2))
ALGBRC(15) = 1.00000/(1.00000+EXP( 1.00000*(STATES(5) - CONSTS(21))))
ALGBRC(17) = CONSTS(19)*ALGBRC(15)*(STATES(1) - CONSTS(20))
ALGBRC(8) = 1.00000/(1.00000+EXP((CONSTS(10) - STATES(1))/CONSTS(11)))
ALGBRC(9) = CONSTS(9)*ALGBRC(8)*(STATES(1) - CONSTS(8))
ALGBRC(10) = 1.00000/(1.00000+EXP((CONSTS(13) - STATES(1))/CONSTS(14)))
ALGBRC(11) = CONSTS(12)*ALGBRC(10)*(1.00000 - STATES(3))*(STATES(1) - CONSTS(8))
ALGBRC(12) = ALGBRC(9)+ALGBRC(11)
ALGBRC(19) = CONSTS(22)*(STATES(1) - CONSTS(20))
ALGBRC(14) = ( CONSTS(25)*STATES(4) ** 2.00000)/(STATES(4) ** 2.00000+CONSTS(24) ** 2.00000)
ALGBRC(16) = 1.00000/(1.00000+CONSTS(26)/STATES(4))
ALGBRC(18) = 1.00000/(1.00000+STATES(4)/CONSTS(27))
ALGBRC(20) = ALGBRC(16) ** 3.00000*CONSTS(35) ** 3.00000*ALGBRC(18) ** 3.00000*1.00000
ALGBRC(22) = ALGBRC(20)*(STATES(5) - STATES(4))
ALGBRC(21) = CONSTS(29)*(STATES(5) - STATES(4))
ALGBRC(23) = (ALGBRC(21)+ALGBRC(22)) - ALGBRC(14)
ALGBRC(24) = - CONSTS(34)*( CONSTS(33)*ALGBRC(12)+ CONSTS(32)*STATES(4))
ALGBRC(3) = 1.00000 - STATES(3)
RETURN
END
