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 11 entries in the algebraic variable array.
C There are a total of 10 entries in each of the rate and state variable arrays.
C There are a total of 31 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is ATP in component ATP (micromolar).
C CONSTS(1) is V_hyd in component V_hyd (flux).
C ALGBRC(2) is V_MMCK in component V_MMCK (flux).
C ALGBRC(9) is J_ATP in component J_ATP (flux).
C CONSTS(2) is V_cyt in component fractional_volumes (dimensionless).
C STATES(2) is ADP in component ADP (micromolar).
C ALGBRC(10) is J_ADP in component J_ADP (flux).
C STATES(3) is PCr in component PCr (micromolar).
C ALGBRC(6) is J_PCr in component J_PCr (flux).
C STATES(4) is Cr in component Cr (micromolar).
C ALGBRC(7) is J_Cr in component J_Cr (flux).
C STATES(5) is Pi in component Pi (micromolar).
C ALGBRC(11) is J_Pi in component J_Pi (flux).
C STATES(6) is ATP_i in component ATP_i (micromolar).
C ALGBRC(4) is V_MiCK in component V_MiCK (flux).
C ALGBRC(8) is V_syn in component V_syn (flux).
C CONSTS(3) is V_ims in component fractional_volumes (dimensionless).
C STATES(7) is ADP_i in component ADP_i (micromolar).
C STATES(8) is PCr_i in component PCr_i (micromolar).
C STATES(9) is Cr_i in component Cr_i (micromolar).
C STATES(10) is Pi_i in component Pi_i (micromolar).
C ALGBRC(1) is Den_MMCK in component V_MMCK (dimensionless).
C CONSTS(4) is Kia in component V_MMCK (micromolar).
C CONSTS(5) is Kb in component V_MMCK (micromolar).
C CONSTS(6) is Kib in component V_MMCK (micromolar).
C CONSTS(28) is KIb in component V_MMCK (micromolar).
C CONSTS(29) is Kc in component V_MMCK (micromolar).
C CONSTS(7) is Kic in component V_MMCK (micromolar).
C CONSTS(8) is Kd in component V_MMCK (micromolar).
C CONSTS(9) is Kid in component V_MMCK (micromolar).
C CONSTS(10) is Vf in component V_MMCK (flux).
C CONSTS(11) is Vb in component V_MMCK (flux).
C ALGBRC(3) is Den_MiCK in component V_MiCK (dimensionless).
C CONSTS(12) is Kia in component V_MiCK (micromolar).
C CONSTS(13) is Kb in component V_MiCK (micromolar).
C CONSTS(14) is Kib in component V_MiCK (micromolar).
C CONSTS(30) is KIb in component V_MiCK (micromolar).
C CONSTS(31) is Kc in component V_MiCK (micromolar).
C CONSTS(15) is Kic in component V_MiCK (micromolar).
C CONSTS(16) is Kd in component V_MiCK (micromolar).
C CONSTS(17) is Kid in component V_MiCK (micromolar).
C CONSTS(18) is Vf in component V_MiCK (flux).
C CONSTS(19) is Vb in component V_MiCK (flux).
C ALGBRC(5) is Den_syn in component V_syn (dimensionless).
C CONSTS(20) is KPi in component V_syn (micromolar).
C CONSTS(21) is KADP in component V_syn (micromolar).
C CONSTS(22) is V_syn_max in component V_syn (flux).
C CONSTS(23) is R_ATP in component J_ATP (first_order_rate_constant).
C CONSTS(24) is R_ADP in component J_ADP (first_order_rate_constant).
C CONSTS(25) is R_PCr in component J_PCr (first_order_rate_constant).
C CONSTS(26) is R_Cr in component J_Cr (first_order_rate_constant).
C CONSTS(27) is R_Pi in component J_Pi (first_order_rate_constant).
C RATES(1) is d/dt ATP in component ATP (micromolar).
C RATES(2) is d/dt ADP in component ADP (micromolar).
C RATES(3) is d/dt PCr in component PCr (micromolar).
C RATES(4) is d/dt Cr in component Cr (micromolar).
C RATES(5) is d/dt Pi in component Pi (micromolar).
C RATES(6) is d/dt ATP_i in component ATP_i (micromolar).
C RATES(7) is d/dt ADP_i in component ADP_i (micromolar).
C RATES(8) is d/dt PCr_i in component PCr_i (micromolar).
C RATES(9) is d/dt Cr_i in component Cr_i (micromolar).
C RATES(10) is d/dt Pi_i in component Pi_i (micromolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 9644.425
      CONSTS(1) = 4.6E3
      CONSTS(2) = 0.75
      STATES(2) = 60.0
      STATES(3) = 12500.0
      STATES(4) = 13500.0
      STATES(5) = 8000.0
      STATES(6) = 9644.425
      CONSTS(3) = 0.0625
      STATES(7) = 2.5
      STATES(8) = 12500.0
      STATES(9) = 13500.0
      STATES(10) = 8000.0
      CONSTS(4) = 9.0E2
      CONSTS(5) = 1.55E4
      CONSTS(6) = 3.49E4
      CONSTS(7) = 2.224E2
      CONSTS(8) = 1.67E3
      CONSTS(9) = 4.73E3
      CONSTS(10) = 6.966E3
      CONSTS(11) = 2.925E4
      CONSTS(12) = 7.5E2
      CONSTS(13) = 5.2E3
      CONSTS(14) = 2.88E4
      CONSTS(15) = 2.048E2
      CONSTS(16) = 5.0E2
      CONSTS(17) = 1.6E3
      CONSTS(18) = 2.658E3
      CONSTS(19) = 1.116E4
      CONSTS(20) = 20.0
      CONSTS(21) = 8.0E2
      CONSTS(22) = 4.6E3
      CONSTS(23) = 8.16
      CONSTS(24) = 8.16
      CONSTS(25) = 14.6
      CONSTS(26) = 14.6
      CONSTS(27) = 18.4
      CONSTS(28) = CONSTS(6)
      CONSTS(29) = ( CONSTS(7)*CONSTS(8))/CONSTS(9)
      CONSTS(30) = CONSTS(14)
      CONSTS(31) = ( CONSTS(15)*CONSTS(16))/CONSTS(17)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) = 1.00000+STATES(4)/CONSTS(6)+STATES(3)/CONSTS(9)+ STATES(1)*(1.00000/CONSTS(4)+STATES(4)/( CONSTS(4)*CONSTS(5)))+ STATES(2)*(1.00000/CONSTS(7)+STATES(3)/( CONSTS(9)*CONSTS(29))+STATES(4)/( CONSTS(7)*CONSTS(28)))
      ALGBRC(2) = ( CONSTS(10)*(( STATES(1)*STATES(4))/( CONSTS(4)*CONSTS(5))) -  CONSTS(11)*(( STATES(2)*STATES(3))/( CONSTS(7)*CONSTS(8))))/ALGBRC(1)
      ALGBRC(6) =  CONSTS(25)*(STATES(8) - STATES(3))
      RATES(3) = (ALGBRC(6)+ALGBRC(2))/CONSTS(2)
      ALGBRC(7) =  CONSTS(26)*(STATES(9) - STATES(4))
      RATES(4) = (ALGBRC(7) - ALGBRC(2))/CONSTS(2)
      ALGBRC(3) = 1.00000+STATES(9)/CONSTS(14)+STATES(8)/CONSTS(17)+ STATES(6)*(1.00000/CONSTS(12)+STATES(9)/( CONSTS(12)*CONSTS(13)))+ STATES(7)*(1.00000/CONSTS(15)+STATES(8)/( CONSTS(17)*CONSTS(31))+STATES(9)/( CONSTS(15)*CONSTS(30)))
      ALGBRC(4) = ( CONSTS(18)*(( STATES(6)*STATES(9))/( CONSTS(12)*CONSTS(13))) -  CONSTS(19)*(( STATES(7)*STATES(8))/( CONSTS(15)*CONSTS(16))))/ALGBRC(3)
      RATES(8) = (ALGBRC(4) - ALGBRC(6))/CONSTS(3)
      RATES(9) = - (ALGBRC(4)+ALGBRC(7))/CONSTS(3)
      ALGBRC(9) =  CONSTS(23)*(STATES(6) - STATES(1))
      RATES(1) = (ALGBRC(9) - (CONSTS(1)+ALGBRC(2)))/CONSTS(2)
      ALGBRC(10) =  CONSTS(24)*(STATES(7) - STATES(2))
      RATES(2) = (ALGBRC(10)+CONSTS(1)+ALGBRC(2))/CONSTS(2)
      ALGBRC(11) =  CONSTS(27)*(STATES(10) - STATES(5))
      RATES(5) = (ALGBRC(11)+CONSTS(1))/CONSTS(2)
      ALGBRC(5) = 1.00000+STATES(7)/CONSTS(21)+STATES(10)/CONSTS(20)+( STATES(7)*STATES(10))/( CONSTS(21)*CONSTS(20))
      ALGBRC(8) =  CONSTS(22)*(( STATES(7)*STATES(10))/( CONSTS(20)*CONSTS(21)*ALGBRC(5)))
      RATES(6) = - (ALGBRC(9)+ALGBRC(8)+ALGBRC(4))/CONSTS(3)
      RATES(7) = ((ALGBRC(8)+ALGBRC(4)) - ALGBRC(10))/CONSTS(3)
      RATES(10) = (ALGBRC(8) - ALGBRC(11))/CONSTS(3)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) = 1.00000+STATES(4)/CONSTS(6)+STATES(3)/CONSTS(9)+ STATES(1)*(1.00000/CONSTS(4)+STATES(4)/( CONSTS(4)*CONSTS(5)))+ STATES(2)*(1.00000/CONSTS(7)+STATES(3)/( CONSTS(9)*CONSTS(29))+STATES(4)/( CONSTS(7)*CONSTS(28)))
      ALGBRC(2) = ( CONSTS(10)*(( STATES(1)*STATES(4))/( CONSTS(4)*CONSTS(5))) -  CONSTS(11)*(( STATES(2)*STATES(3))/( CONSTS(7)*CONSTS(8))))/ALGBRC(1)
      ALGBRC(6) =  CONSTS(25)*(STATES(8) - STATES(3))
      ALGBRC(7) =  CONSTS(26)*(STATES(9) - STATES(4))
      ALGBRC(3) = 1.00000+STATES(9)/CONSTS(14)+STATES(8)/CONSTS(17)+ STATES(6)*(1.00000/CONSTS(12)+STATES(9)/( CONSTS(12)*CONSTS(13)))+ STATES(7)*(1.00000/CONSTS(15)+STATES(8)/( CONSTS(17)*CONSTS(31))+STATES(9)/( CONSTS(15)*CONSTS(30)))
      ALGBRC(4) = ( CONSTS(18)*(( STATES(6)*STATES(9))/( CONSTS(12)*CONSTS(13))) -  CONSTS(19)*(( STATES(7)*STATES(8))/( CONSTS(15)*CONSTS(16))))/ALGBRC(3)
      ALGBRC(9) =  CONSTS(23)*(STATES(6) - STATES(1))
      ALGBRC(10) =  CONSTS(24)*(STATES(7) - STATES(2))
      ALGBRC(11) =  CONSTS(27)*(STATES(10) - STATES(5))
      ALGBRC(5) = 1.00000+STATES(7)/CONSTS(21)+STATES(10)/CONSTS(20)+( STATES(7)*STATES(10))/( CONSTS(21)*CONSTS(20))
      ALGBRC(8) =  CONSTS(22)*(( STATES(7)*STATES(10))/( CONSTS(20)*CONSTS(21)*ALGBRC(5)))
      RETURN
      END