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 27 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C CONSTS(1) is k_0 in component Constants (flux).
C CONSTS(2) is k_1 in component Constants (per_second).
C CONSTS(3) is k_2 in component Constants (per_second).
C CONSTS(4) is k_3 in component Constants (per_second).
C CONSTS(5) is k_4 in component Constants (per_second).
C CONSTS(6) is k_5 in component Constants (per_second).
C CONSTS(7) is k_6 in component Constants (per_second).
C CONSTS(8) is k_7 in component Constants (per_second).
C CONSTS(9) is k_8 in component Constants (flux).
C CONSTS(10) is k_9 in component Constants (flux).
C CONSTS(11) is k_10 in component Constants (flux).
C CONSTS(12) is k_11 in component Constants (flux).
C CONSTS(13) is C_PLC_T in component Constants (micromolar).
C CONSTS(14) is K_D in component Constants (micromolar).
C CONSTS(15) is K_P in component Constants (micromolar).
C CONSTS(16) is K_R in component Constants (micromolar).
C CONSTS(17) is K_G in component Constants (micromolar).
C CONSTS(18) is K_S in component Constants (micromolar).
C CONSTS(19) is K_ER in component Constants (micromolar).
C CONSTS(20) is K_C1 in component Constants (micromolar).
C CONSTS(21) is K_C2 in component Constants (micromolar).
C CONSTS(22) is beta in component Constants (dimensionless).
C CONSTS(23) is lambda in component Constants (dimensionless).
C CONSTS(24) is rho in component Constants (dimensionless).
C CONSTS(25) is n in component Constants (dimensionless).
C CONSTS(26) is m in component Constants (dimensionless).
C CONSTS(27) is w in component Constants (dimensionless).
C ALGBRC(2) is R_APLC in component R_values (dimensionless).
C ALGBRC(9) is R_PKC in component R_values (dimensionless).
C ALGBRC(4) is R_G in component R_values (dimensionless).
C ALGBRC(10) is R_DG in component R_values (dimensionless).
C ALGBRC(1) is R_IP_3 in component R_values (dimensionless).
C ALGBRC(3) is R_Cyt1 in component R_values (dimensionless).
C ALGBRC(5) is R_Cyt2 in component R_values (dimensionless).
C ALGBRC(7) is R_ER in component R_values (dimensionless).
C STATES(1) is APLC in component APLC (micromolar).
C ALGBRC(8) is DG in component DG (micromolar).
C STATES(2) is C_cyt in component C_cyt (micromolar).
C STATES(3) is G in component G_GTP (micromolar).
C STATES(4) is IP_3 in component IP_3 (micromolar).
C STATES(5) is C_ER in component C_ER (micromolar).
C ALGBRC(6) is PLC in component APLC (micromolar).
C RATES(3) is d/dt G in component G_GTP (micromolar).
C RATES(1) is d/dt APLC in component APLC (micromolar).
C RATES(4) is d/dt IP_3 in component IP_3 (micromolar).
C RATES(2) is d/dt C_cyt in component C_cyt (micromolar).
C RATES(5) is d/dt C_ER in component C_ER (micromolar).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
CONSTS(1) = 1e-4
CONSTS(2) = 3.4
CONSTS(3) = 4
CONSTS(4) = 4.5
CONSTS(5) = 1.2
CONSTS(6) = 0.12
CONSTS(7) = 14
CONSTS(8) = 2
CONSTS(9) = 10.5
CONSTS(10) = 0.6
CONSTS(11) = 3
CONSTS(12) = 0.26
CONSTS(13) = 0.01
CONSTS(14) = 0.01
CONSTS(15) = 0.004
CONSTS(16) = 0.2
CONSTS(17) = 0.025
CONSTS(18) = 0.025
CONSTS(19) = 0.075
CONSTS(20) = 1
CONSTS(21) = 2
CONSTS(22) = 0.05
CONSTS(23) = 0.001
CONSTS(24) = 0.2
CONSTS(25) = 4
CONSTS(26) = 2
CONSTS(27) = 3
STATES(1) = 0.001
STATES(2) = 0.2
STATES(3) = 0.001
STATES(4) = 0.001
STATES(5) = 1
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(4) = CONSTS(7)*STATES(1) - CONSTS(8)*STATES(4)
ALGBRC(1) = STATES(4) ** 3.00000/(CONSTS(18) ** 3.00000+STATES(4) ** 3.00000)
ALGBRC(3) = STATES(2)/(CONSTS(20)+STATES(2))
ALGBRC(5) = STATES(2)/(CONSTS(21)+STATES(2))
ALGBRC(7) = STATES(5) ** CONSTS(27)/(CONSTS(19) ** CONSTS(27)+STATES(5) ** CONSTS(27))
RATES(2) = CONSTS(22)*(( CONSTS(24)*( CONSTS(9)*ALGBRC(1)*ALGBRC(7) - CONSTS(10)*ALGBRC(3)) - CONSTS(11)*ALGBRC(5))+CONSTS(12))
RATES(5) = CONSTS(23)*( - CONSTS(9)*ALGBRC(1)*ALGBRC(7)+ CONSTS(10)*ALGBRC(3))
ALGBRC(2) = STATES(1)/(CONSTS(15)+STATES(1))
ALGBRC(8) = STATES(4)
ALGBRC(9) = ( (ALGBRC(8)/(CONSTS(14)+ALGBRC(8)))*STATES(2))/(CONSTS(16)+STATES(2))
RATES(3) = ((CONSTS(1)+ CONSTS(2)*STATES(3)) - CONSTS(3)*ALGBRC(2)*STATES(3)) - CONSTS(4)*ALGBRC(9)*STATES(3)
ALGBRC(4) = STATES(3) ** CONSTS(25)/(CONSTS(17) ** CONSTS(25)+STATES(3) ** CONSTS(25))
ALGBRC(10) = ALGBRC(8) ** CONSTS(26)/(CONSTS(14) ** CONSTS(26)+ALGBRC(8) ** CONSTS(26))
ALGBRC(6) = CONSTS(13) - STATES(1)
RATES(1) = CONSTS(5)*ALGBRC(4)*ALGBRC(10)*ALGBRC(6) - CONSTS(6)*STATES(1)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = STATES(4) ** 3.00000/(CONSTS(18) ** 3.00000+STATES(4) ** 3.00000)
ALGBRC(3) = STATES(2)/(CONSTS(20)+STATES(2))
ALGBRC(5) = STATES(2)/(CONSTS(21)+STATES(2))
ALGBRC(7) = STATES(5) ** CONSTS(27)/(CONSTS(19) ** CONSTS(27)+STATES(5) ** CONSTS(27))
ALGBRC(2) = STATES(1)/(CONSTS(15)+STATES(1))
ALGBRC(8) = STATES(4)
ALGBRC(9) = ( (ALGBRC(8)/(CONSTS(14)+ALGBRC(8)))*STATES(2))/(CONSTS(16)+STATES(2))
ALGBRC(4) = STATES(3) ** CONSTS(25)/(CONSTS(17) ** CONSTS(25)+STATES(3) ** CONSTS(25))
ALGBRC(10) = ALGBRC(8) ** CONSTS(26)/(CONSTS(14) ** CONSTS(26)+ALGBRC(8) ** CONSTS(26))
ALGBRC(6) = CONSTS(13) - STATES(1)
RETURN
END
