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 10 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 21 entries in the constant variable array.
C
C
C VOI is time in component environment (minute).
C STATES(1) is Ca_m in component Ca_m (micromolar).
C ALGBRC(1) is J_min in component J_min (micromolar).
C ALGBRC(4) is J_mout in component J_mout (micromolar).
C CONSTS(1) is k_min in component J_min (micromolar).
C STATES(2) is Ca_cyt in component Ca_cyt (micromolar).
C CONSTS(2) is K_m in component J_min (micromolar).
C CONSTS(3) is n in component J_min (micromolar).
C CONSTS(4) is k_mout in component J_mout (micromolar).
C ALGBRC(7) is J_ERch in component J_ERch (micromolar).
C ALGBRC(8) is J_ERpump in component J_ERpump (micromolar).
C ALGBRC(9) is J_in in component J_in (micromolar).
C ALGBRC(10) is J_out in component J_out (micromolar).
C STATES(3) is Ca_ER in component Ca_ER (micromolar).
C STATES(4) is PLC in component PLC (micromolar).
C ALGBRC(2) is J_PLCact in component J_PLCact (micromolar).
C ALGBRC(5) is J_PLCinact in component J_PLCinact (micromolar).
C STATES(5) is G_alpha in component G_alpha (micromolar).
C ALGBRC(3) is J_actG_alpha in component J_actG_alpha (micromolar).
C ALGBRC(6) is J_inactG_alpha in component J_inactG_alpha (micromolar).
C CONSTS(5) is k_10 in component J_ERch (dimensionless).
C CONSTS(6) is K_11 in component J_ERch (dimensionless).
C CONSTS(7) is K_17 in component J_ERpump (dimensionless).
C CONSTS(8) is k_16 in component J_ERpump (dimensionless).
C CONSTS(9) is K_12 in component J_in (dimensionless).
C CONSTS(10) is k_13 in component J_in (dimensionless).
C CONSTS(11) is k_14 in component J_out (dimensionless).
C CONSTS(12) is K_15 in component J_out (dimensionless).
C CONSTS(13) is k_7 in component J_PLCact (dimensionless).
C CONSTS(14) is k_8 in component J_PLCinact (dimensionless).
C CONSTS(15) is K_9 in component J_PLCinact (dimensionless).
C CONSTS(16) is k_1 in component J_actG_alpha (dimensionless).
C CONSTS(17) is k_2 in component J_actG_alpha (dimensionless).
C CONSTS(18) is k_3 in component J_inactG_alpha (dimensionless).
C CONSTS(19) is K_4 in component J_inactG_alpha (dimensionless).
C CONSTS(20) is k_5 in component J_inactG_alpha (dimensionless).
C CONSTS(21) is K_6 in component J_inactG_alpha (dimensionless).
C RATES(1) is d/dt Ca_m in component Ca_m (micromolar).
C RATES(2) is d/dt Ca_cyt in component Ca_cyt (micromolar).
C RATES(3) is d/dt Ca_ER in component Ca_ER (micromolar).
C RATES(4) is d/dt PLC in component PLC (micromolar).
C RATES(5) is d/dt G_alpha in component G_alpha (micromolar).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 0.1
CONSTS(1) = 330
STATES(2) = 0.01
CONSTS(2) = 1.6
CONSTS(3) = 8
CONSTS(4) = 0.5
STATES(3) = 20
STATES(4) = 0.01
STATES(5) = 0.01
CONSTS(5) = 5
CONSTS(6) = 3
CONSTS(7) = 0.05
CONSTS(8) = 5.37
CONSTS(9) = 2.8
CONSTS(10) = 13.4
CONSTS(11) = 153
CONSTS(12) = 0.16
CONSTS(13) = 2.08
CONSTS(14) = 32.24
CONSTS(15) = 29.09
CONSTS(16) = 0.01
CONSTS(17) = 0.1
CONSTS(18) = 0.64
CONSTS(19) = 0.09
CONSTS(20) = 4.88
CONSTS(21) = 1.18
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = ( CONSTS(1)*STATES(2) ** CONSTS(3))/(CONSTS(2) ** CONSTS(3)+STATES(2) ** CONSTS(3))
ALGBRC(4) = ( CONSTS(4)*STATES(1))/1.00000
RATES(1) = ALGBRC(1) - ALGBRC(4)
ALGBRC(2) = CONSTS(13)*STATES(5)
ALGBRC(5) = CONSTS(14)*(STATES(4)/(CONSTS(15)+STATES(4)))
RATES(4) = (ALGBRC(2) - ALGBRC(5))*1.00000
ALGBRC(3) = CONSTS(16)+ CONSTS(17)*STATES(5)
ALGBRC(6) = CONSTS(18)*STATES(4)*(STATES(5)/(CONSTS(19)+STATES(5)))+ CONSTS(20)*STATES(2)*(STATES(5)/(CONSTS(21)+STATES(5)))
RATES(5) = (ALGBRC(3) - ALGBRC(6))*1.00000
ALGBRC(7) = CONSTS(5)*STATES(2)*STATES(4)*(STATES(3)/(CONSTS(6)+STATES(3)))
ALGBRC(8) = CONSTS(8)*(STATES(2)/(CONSTS(7)+STATES(3)))
RATES(3) = (ALGBRC(8) - ALGBRC(7))*1.00000
ALGBRC(9) = CONSTS(9)*STATES(4)+ CONSTS(10)*STATES(5)
ALGBRC(10) = CONSTS(11)*(STATES(2)/(CONSTS(12)+STATES(2)))
RATES(2) = (((((ALGBRC(7) - ALGBRC(8))+ALGBRC(9)) - ALGBRC(10))+ALGBRC(4)) - ALGBRC(1))*1.00000
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = ( CONSTS(1)*STATES(2) ** CONSTS(3))/(CONSTS(2) ** CONSTS(3)+STATES(2) ** CONSTS(3))
ALGBRC(4) = ( CONSTS(4)*STATES(1))/1.00000
ALGBRC(2) = CONSTS(13)*STATES(5)
ALGBRC(5) = CONSTS(14)*(STATES(4)/(CONSTS(15)+STATES(4)))
ALGBRC(3) = CONSTS(16)+ CONSTS(17)*STATES(5)
ALGBRC(6) = CONSTS(18)*STATES(4)*(STATES(5)/(CONSTS(19)+STATES(5)))+ CONSTS(20)*STATES(2)*(STATES(5)/(CONSTS(21)+STATES(5)))
ALGBRC(7) = CONSTS(5)*STATES(2)*STATES(4)*(STATES(3)/(CONSTS(6)+STATES(3)))
ALGBRC(8) = CONSTS(8)*(STATES(2)/(CONSTS(7)+STATES(3)))
ALGBRC(9) = CONSTS(9)*STATES(4)+ CONSTS(10)*STATES(5)
ALGBRC(10) = CONSTS(11)*(STATES(2)/(CONSTS(12)+STATES(2)))
RETURN
END
