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 13 entries in the algebraic variable array.
C There are a total of 14 entries in each of the rate and state variable arrays.
C There are a total of 18 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is O2 in component O2 (molar).
C ALGBRC(1) is v1 in component v1 (flux).
C ALGBRC(5) is v5 in component v5 (flux).
C ALGBRC(7) is v7 in component v7 (flux).
C ALGBRC(11) is v11 in component v11 (flux).
C ALGBRC(13) is v13_back in component v13_back (flux).
C CONSTS(18) is v13 in component v13 (flux).
C STATES(2) is O2_radical in component O2_radical (molar).
C ALGBRC(6) is v6 in component v6 (flux).
C STATES(3) is NADH in component NADH (molar).
C CONSTS(17) is v12 in component v12 (flux).
C ALGBRC(12) is v14 in component v14 (flux).
C STATES(4) is NAD in component NAD (molar).
C ALGBRC(8) is v8 in component v8 (flux).
C ALGBRC(10) is v10 in component v10 (flux).
C STATES(5) is NAD_radical in component NAD_radical (molar).
C ALGBRC(9) is v9 in component v9 (flux).
C STATES(6) is NAD2 in component NAD2 (molar).
C STATES(7) is H2O2 in component H2O2 (molar).
C ALGBRC(2) is v2 in component v2 (flux).
C STATES(8) is Per3 in component Per3 (molar).
C ALGBRC(4) is v4 in component v4 (flux).
C STATES(9) is Per2 in component Per2 (molar).
C STATES(10) is coI in component coI (molar).
C ALGBRC(3) is v3 in component v3 (flux).
C STATES(11) is coII in component coII (molar).
C STATES(12) is coIII in component coIII (molar).
C STATES(13) is Ar_radical in component Ar_radical (molar).
C STATES(14) is ArH in component ArH (molar).
C CONSTS(1) is k1 in component v1 (second_order_rate_constant).
C CONSTS(2) is k2 in component v2 (second_order_rate_constant).
C CONSTS(3) is k3 in component v3 (second_order_rate_constant).
C CONSTS(4) is k4 in component v4 (second_order_rate_constant).
C CONSTS(5) is k5 in component v5 (second_order_rate_constant).
C CONSTS(6) is k6 in component v6 (second_order_rate_constant).
C CONSTS(7) is k7 in component v7 (second_order_rate_constant).
C CONSTS(8) is k8 in component v8 (second_order_rate_constant).
C CONSTS(9) is k9 in component v9 (second_order_rate_constant).
C CONSTS(10) is k10 in component v10 (second_order_rate_constant).
C CONSTS(11) is k11 in component v11 (second_order_rate_constant).
C CONSTS(12) is k12 in component v12 (flux).
C CONSTS(13) is O2eq in component v13 (molar).
C CONSTS(14) is k13 in component v13 (first_order_rate_constant).
C CONSTS(15) is k13_ in component v13_back (first_order_rate_constant).
C CONSTS(16) is k14 in component v14 (second_order_rate_constant).
C RATES(1) is d/dt O2 in component O2 (molar).
C RATES(2) is d/dt O2_radical in component O2_radical (molar).
C RATES(3) is d/dt NADH in component NADH (molar).
C RATES(4) is d/dt NAD in component NAD (molar).
C RATES(5) is d/dt NAD_radical in component NAD_radical (molar).
C RATES(6) is d/dt NAD2 in component NAD2 (molar).
C RATES(7) is d/dt H2O2 in component H2O2 (molar).
C RATES(8) is d/dt Per3 in component Per3 (molar).
C RATES(9) is d/dt Per2 in component Per2 (molar).
C RATES(10) is d/dt coI in component coI (molar).
C RATES(11) is d/dt coII in component coII (molar).
C RATES(12) is d/dt coIII in component coIII (molar).
C RATES(13) is d/dt Ar_radical in component Ar_radical (molar).
C RATES(14) is d/dt ArH in component ArH (molar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 5.33e-6
      STATES(2) = 0.026e-6
      STATES(3) = 0.95e-6
      STATES(4) = 558e-6
      STATES(5) = 5e-10
      STATES(6) = 0.12e-6
      STATES(7) = 0.013e-6
      STATES(8) = 0.059e-6
      STATES(9) = 1e-10
      STATES(10) = 8.9e-10
      STATES(11) = 0.026e-6
      STATES(12) = 1.31e-6
      STATES(13) = 0.12e-6
      STATES(14) = 299.88e-6
      CONSTS(1) = 3
      CONSTS(2) = 1.8e7
      CONSTS(3) = 1.5e5
      CONSTS(4) = 5.2e3
      CONSTS(5) = 2e7
      CONSTS(6) = 1.7e7
      CONSTS(7) = 2e7
      CONSTS(8) = 4e7
      CONSTS(9) = 6e7
      CONSTS(10) = 1.8e6
      CONSTS(11) = 1e5
      CONSTS(12) = 0.08e-6
      CONSTS(13) = 1.2e-5
      CONSTS(14) = 6e-3
      CONSTS(15) = 6e-3
      CONSTS(16) = 7e5
      CONSTS(17) = CONSTS(12)
      CONSTS(18) =  CONSTS(14)*CONSTS(13)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(4) =  CONSTS(4)*STATES(11)*STATES(14)
      ALGBRC(3) =  CONSTS(3)*STATES(10)*STATES(14)
      RATES(11) = ALGBRC(3) - ALGBRC(4)
      ALGBRC(5) =  CONSTS(5)*STATES(5)*STATES(1)
      ALGBRC(7) =  CONSTS(7)*STATES(2) ** 2.00000
      ALGBRC(6) =  CONSTS(6)*STATES(2)*STATES(8)
      RATES(2) = (ALGBRC(5) - ALGBRC(6)) -  2.00000*ALGBRC(7)
      ALGBRC(1) =  CONSTS(1)*STATES(3)*STATES(1)
      ALGBRC(2) =  CONSTS(2)*STATES(7)*STATES(8)
      RATES(7) = (ALGBRC(1) - ALGBRC(2)) - ALGBRC(7)
      ALGBRC(8) =  CONSTS(8)*STATES(12)*STATES(5)
      RATES(10) = (ALGBRC(2) - ALGBRC(3))+ALGBRC(8)
      ALGBRC(9) =  CONSTS(9)*STATES(5) ** 2.00000
      RATES(6) = ALGBRC(9)
      ALGBRC(10) =  CONSTS(10)*STATES(8)*STATES(5)
      RATES(4) = ALGBRC(1)+ALGBRC(5)+ALGBRC(8)+ALGBRC(10)
      RATES(8) = ((- ALGBRC(2)+ALGBRC(4)) - ALGBRC(6)) - ALGBRC(10)
      ALGBRC(12) =  CONSTS(16)*STATES(13)*STATES(3)
      RATES(3) = (- ALGBRC(1)+CONSTS(17)) - ALGBRC(12)
      RATES(5) = ((( - 2.00000*ALGBRC(9) - ALGBRC(5)) - ALGBRC(8)) - ALGBRC(10))+ALGBRC(12)
      ALGBRC(11) =  CONSTS(11)*STATES(9)*STATES(1)
      RATES(9) = - ALGBRC(11)+ALGBRC(10)
      RATES(12) = (ALGBRC(6) - ALGBRC(8))+ALGBRC(11)
      RATES(13) = (ALGBRC(3)+ALGBRC(4)) - ALGBRC(12)
      RATES(14) = (- ALGBRC(3) - ALGBRC(4))+ALGBRC(12)
      ALGBRC(13) =  CONSTS(15)*STATES(1)
      RATES(1) = ((((- ALGBRC(1) - ALGBRC(5))+ALGBRC(7)) - ALGBRC(11))+CONSTS(18)) - ALGBRC(13)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(4) =  CONSTS(4)*STATES(11)*STATES(14)
      ALGBRC(3) =  CONSTS(3)*STATES(10)*STATES(14)
      ALGBRC(5) =  CONSTS(5)*STATES(5)*STATES(1)
      ALGBRC(7) =  CONSTS(7)*STATES(2) ** 2.00000
      ALGBRC(6) =  CONSTS(6)*STATES(2)*STATES(8)
      ALGBRC(1) =  CONSTS(1)*STATES(3)*STATES(1)
      ALGBRC(2) =  CONSTS(2)*STATES(7)*STATES(8)
      ALGBRC(8) =  CONSTS(8)*STATES(12)*STATES(5)
      ALGBRC(9) =  CONSTS(9)*STATES(5) ** 2.00000
      ALGBRC(10) =  CONSTS(10)*STATES(8)*STATES(5)
      ALGBRC(12) =  CONSTS(16)*STATES(13)*STATES(3)
      ALGBRC(11) =  CONSTS(11)*STATES(9)*STATES(1)
      ALGBRC(13) =  CONSTS(15)*STATES(1)
      RETURN
      END