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 9 entries in the algebraic variable array.
C There are a total of 22 entries in each of the rate and state variable arrays.
C There are a total of 45 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is T2 in component T2 (micromolar).
C ALGBRC(1) is Vmax in component T2 (flux).
C CONSTS(38) is KR in component T2 (molar).
C STATES(2) is LT2 in component LT2 (micromolar).
C STATES(3) is T2R in component T2R (micromolar).
C CONSTS(1) is R in component R (micromolar).
C STATES(4) is T3 in component T3 (micromolar).
C CONSTS(2) is L in component L (micromolar).
C STATES(5) is Bp in component Bp (micromolar).
C STATES(6) is T2p in component T2p (micromolar).
C CONSTS(3) is Y0 in component Y0 (micromolar).
C STATES(7) is Yp in component Yp (micromolar).
C CONSTS(4) is B0 in component B0 (micromolar).
C CONSTS(5) is k5 in component model_parameters (second_order_rate_constant).
C CONSTS(6) is k_5 in component model_parameters (first_order_rate_constant).
C CONSTS(7) is k8 in component model_parameters (first_order_rate_constant).
C CONSTS(8) is k_1 in component model_parameters (second_order_rate_constant).
C CONSTS(9) is ky in component model_parameters (second_order_rate_constant).
C CONSTS(10) is kb in component model_parameters (second_order_rate_constant).
C CONSTS(11) is k1a in component model_parameters (first_order_rate_constant).
C CONSTS(12) is k1b in component model_parameters (second_order_rate_constant).
C CONSTS(13) is k1c in component model_parameters (first_order_rate_constant).
C ALGBRC(2) is Vmax in component T3 (flux).
C CONSTS(39) is KR in component T3 (molar).
C STATES(8) is LT3 in component LT3 (micromolar).
C STATES(9) is T3R in component T3R (micromolar).
C STATES(10) is T4 in component T4 (micromolar).
C STATES(11) is T3p in component T3p (micromolar).
C CONSTS(14) is k6 in component model_parameters (second_order_rate_constant).
C CONSTS(15) is k_6 in component model_parameters (first_order_rate_constant).
C CONSTS(16) is k9 in component model_parameters (first_order_rate_constant).
C CONSTS(17) is k_2 in component model_parameters (second_order_rate_constant).
C CONSTS(18) is k2a in component model_parameters (first_order_rate_constant).
C CONSTS(19) is k2b in component model_parameters (second_order_rate_constant).
C CONSTS(20) is k2c in component model_parameters (first_order_rate_constant).
C STATES(12) is LT4 in component LT4 (micromolar).
C STATES(13) is T4p in component T4p (micromolar).
C CONSTS(21) is k7 in component model_parameters (second_order_rate_constant).
C CONSTS(22) is k_7 in component model_parameters (first_order_rate_constant).
C CONSTS(23) is k10 in component model_parameters (first_order_rate_constant).
C ALGBRC(3) is Vmax in component T2p (flux).
C CONSTS(40) is KR in component T2p (molar).
C STATES(14) is LT2p in component LT2p (micromolar).
C STATES(15) is T2pR in component T2pR (micromolar).
C ALGBRC(4) is Vmax in component T3p (flux).
C CONSTS(41) is KR in component T3p (molar).
C STATES(16) is LT3p in component LT3p (micromolar).
C STATES(17) is T3pR in component T3pR (micromolar).
C STATES(18) is LT4p in component LT4p (micromolar).
C ALGBRC(5) is Vmax in component LT2 (flux).
C CONSTS(42) is KR in component LT2 (molar).
C STATES(19) is LT2R in component LT2R (micromolar).
C CONSTS(24) is k11 in component model_parameters (first_order_rate_constant).
C CONSTS(25) is k_3 in component model_parameters (second_order_rate_constant).
C CONSTS(26) is k3a in component model_parameters (first_order_rate_constant).
C CONSTS(27) is k3b in component model_parameters (second_order_rate_constant).
C CONSTS(28) is k3c in component model_parameters (first_order_rate_constant).
C ALGBRC(6) is Vmax in component LT3 (flux).
C CONSTS(43) is KR in component LT3 (molar).
C STATES(20) is LT3R in component LT3R (micromolar).
C CONSTS(29) is k12 in component model_parameters (first_order_rate_constant).
C CONSTS(30) is k_4 in component model_parameters (second_order_rate_constant).
C CONSTS(31) is k4a in component model_parameters (first_order_rate_constant).
C CONSTS(32) is k4b in component model_parameters (second_order_rate_constant).
C CONSTS(33) is k4c in component model_parameters (first_order_rate_constant).
C CONSTS(34) is k13 in component model_parameters (first_order_rate_constant).
C ALGBRC(7) is Vmax in component LT2p (flux).
C CONSTS(44) is KR in component LT2p (molar).
C STATES(21) is LT2pR in component LT2pR (micromolar).
C ALGBRC(8) is Vmax in component LT3p (flux).
C CONSTS(45) is KR in component LT3p (molar).
C STATES(22) is LT3pR in component LT3pR (micromolar).
C ALGBRC(9) is P in component P (micromolar).
C CONSTS(35) is Z in component Z (micromolar).
C CONSTS(36) is k_y in component model_parameters (second_order_rate_constant).
C CONSTS(37) is k_b in component model_parameters (first_order_rate_constant).
C RATES(1) is d/dt T2 in component T2 (micromolar).
C RATES(4) is d/dt T3 in component T3 (micromolar).
C RATES(10) is d/dt T4 in component T4 (micromolar).
C RATES(6) is d/dt T2p in component T2p (micromolar).
C RATES(11) is d/dt T3p in component T3p (micromolar).
C RATES(13) is d/dt T4p in component T4p (micromolar).
C RATES(2) is d/dt LT2 in component LT2 (micromolar).
C RATES(8) is d/dt LT3 in component LT3 (micromolar).
C RATES(12) is d/dt LT4 in component LT4 (micromolar).
C RATES(14) is d/dt LT2p in component LT2p (micromolar).
C RATES(16) is d/dt LT3p in component LT3p (micromolar).
C RATES(18) is d/dt LT4p in component LT4p (micromolar).
C RATES(7) is d/dt Yp in component Yp (micromolar).
C RATES(5) is d/dt Bp in component Bp (micromolar).
C RATES(3) is d/dt T2R in component T2R (micromolar).
C RATES(9) is d/dt T3R in component T3R (micromolar).
C RATES(15) is d/dt T2pR in component T2pR (micromolar).
C RATES(17) is d/dt T3pR in component T3pR (micromolar).
C RATES(19) is d/dt LT2R in component LT2R (micromolar).
C RATES(20) is d/dt LT3R in component LT3R (micromolar).
C RATES(21) is d/dt LT2pR in component LT2pR (micromolar).
C RATES(22) is d/dt LT3pR in component LT3pR (micromolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 0.01
      STATES(2) = 0.01
      STATES(3) = 0.01
      CONSTS(1) = 0.3
      STATES(4) = 0.01
      CONSTS(2) = 3.0
      STATES(5) = 0.01
      STATES(6) = 0.01
      CONSTS(3) = 20.0
      STATES(7) = 0.01
      CONSTS(4) = 1.7
      CONSTS(5) = 7E7
      CONSTS(6) = 70.0
      CONSTS(7) = 15.0
      CONSTS(8) = 4E5
      CONSTS(9) = 3E7
      CONSTS(10) = 8E5
      CONSTS(11) = 10
      CONSTS(12) = 17
      CONSTS(13) = 0.17
      STATES(8) = 0.01
      STATES(9) = 0.01
      STATES(10) = 0.01
      STATES(11) = 0.01
      CONSTS(14) = 7E7
      CONSTS(15) = 70.0
      CONSTS(16) = 45.0
      CONSTS(17) = 3E4
      CONSTS(18) = 10
      CONSTS(19) = 17
      CONSTS(20) = 0.017
      STATES(12) = 0.01
      STATES(13) = 0.01
      CONSTS(21) = 7E7
      CONSTS(22) = 70.0
      CONSTS(23) = 48.0
      STATES(14) = 0.01
      STATES(15) = 0.01
      STATES(16) = 0.01
      STATES(17) = 0.01
      STATES(18) = 0.01
      STATES(19) = 0.01
      CONSTS(24) = 0.0
      CONSTS(25) = 4E5
      CONSTS(26) = 10
      CONSTS(27) = 17
      CONSTS(28) = 5.1
      STATES(20) = 0.01
      CONSTS(29) = 16.5
      CONSTS(30) = 3E4
      CONSTS(31) = 10
      CONSTS(32) = 17
      CONSTS(33) = 0.51
      CONSTS(34) = 34.56
      STATES(21) = 0.01
      STATES(22) = 0.01
      CONSTS(35) = 40.0
      CONSTS(36) = 5E5
      CONSTS(37) = 0.35
      CONSTS(38) = (CONSTS(11)+CONSTS(13))/CONSTS(12)
      CONSTS(39) = (CONSTS(18)+CONSTS(20))/CONSTS(19)
      CONSTS(40) = (CONSTS(11)+CONSTS(13))/CONSTS(12)
      CONSTS(41) = (CONSTS(18)+CONSTS(20))/CONSTS(19)
      CONSTS(42) = (CONSTS(26)+CONSTS(28))/CONSTS(27)
      CONSTS(43) = (CONSTS(31)+CONSTS(33))/CONSTS(32)
      CONSTS(44) = (CONSTS(26)+CONSTS(28))/CONSTS(27)
      CONSTS(45) = (CONSTS(31)+CONSTS(33))/CONSTS(32)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(10) = ( CONSTS(22)*STATES(12)+ CONSTS(9)*STATES(13)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(13)*(CONSTS(4) - STATES(5))) - ( CONSTS(21)*CONSTS(2)*STATES(10)+ CONSTS(23)*STATES(10))
      RATES(13) = ( CONSTS(22)*STATES(18)+ CONSTS(9)*STATES(10)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(10)*(CONSTS(4) - STATES(5))) - ( CONSTS(21)*CONSTS(2)*STATES(13)+ CONSTS(23)*STATES(13))
      RATES(12) = ( CONSTS(22)*STATES(10)+ CONSTS(9)*STATES(18)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(18)*(CONSTS(4) - STATES(5))) - ( CONSTS(21)*CONSTS(2)*STATES(12)+ CONSTS(34)*STATES(12))
      RATES(18) = ( CONSTS(22)*STATES(13)+ CONSTS(9)*STATES(18)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(18)*(CONSTS(4) - STATES(5))) - ( CONSTS(21)*CONSTS(2)*STATES(18)+ CONSTS(34)*STATES(18))
      RATES(3) =  CONSTS(12)*STATES(1)*CONSTS(1) - ( CONSTS(11)*STATES(3)+ CONSTS(13)*STATES(3))
      RATES(9) =  CONSTS(19)*STATES(4)*CONSTS(1) - ( CONSTS(18)*STATES(9)+ CONSTS(20)*STATES(9))
      RATES(15) =  CONSTS(12)*STATES(6)*CONSTS(1) - ( CONSTS(11)*STATES(15)+ CONSTS(13)*STATES(15))
      RATES(17) =  CONSTS(19)*STATES(11)*CONSTS(1) - ( CONSTS(18)*STATES(17)+ CONSTS(20)*STATES(17))
      RATES(19) =  CONSTS(27)*STATES(2)*CONSTS(1) - ( CONSTS(26)*STATES(19)+ CONSTS(28)*STATES(19))
      RATES(20) =  CONSTS(32)*STATES(8)*CONSTS(1) - ( CONSTS(31)*STATES(20)+ CONSTS(33)*STATES(20))
      RATES(21) =  CONSTS(27)*STATES(14)*CONSTS(1) - ( CONSTS(26)*STATES(21)+ CONSTS(28)*STATES(21))
      RATES(22) =  CONSTS(32)*STATES(16)*CONSTS(1) - ( CONSTS(31)*STATES(22)+ CONSTS(33)*STATES(22))
      ALGBRC(1) =  CONSTS(13)*(CONSTS(1)+STATES(3))
      RATES(1) = ( CONSTS(6)*STATES(2)+ CONSTS(8)*STATES(5)*STATES(4)+ CONSTS(9)*STATES(6)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(6)*(CONSTS(4) - STATES(5))) - ( CONSTS(5)*CONSTS(2)*STATES(1)+ CONSTS(7)*STATES(1)+ ALGBRC(1)*(STATES(1)/(CONSTS(38)+STATES(1))))
      ALGBRC(2) =  CONSTS(20)*(CONSTS(1)+STATES(9))
      RATES(4) = ( CONSTS(15)*STATES(8)+ CONSTS(17)*STATES(5)*STATES(10)+ CONSTS(9)*STATES(11)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(11)*(CONSTS(4) - STATES(5))) - ( CONSTS(14)*CONSTS(2)*STATES(4)+ CONSTS(16)*STATES(4)+ ALGBRC(2)*(STATES(4)/(CONSTS(39)+STATES(4))))
      ALGBRC(3) =  CONSTS(13)*(CONSTS(1)+STATES(15))
      RATES(6) = ( CONSTS(6)*STATES(14)+ CONSTS(8)*STATES(5)*STATES(11)+ CONSTS(9)*STATES(1)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(1)*(CONSTS(4) - STATES(5))) - ( CONSTS(5)*CONSTS(2)*STATES(6)+ CONSTS(7)*STATES(6)+ ALGBRC(3)*(STATES(6)/(CONSTS(40)+STATES(6))))
      ALGBRC(4) =  CONSTS(20)*(CONSTS(1)+STATES(17))
      RATES(11) = ( CONSTS(15)*STATES(16)+ CONSTS(17)*STATES(5)*STATES(13)+ CONSTS(9)*STATES(4)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(4)*(CONSTS(4) - STATES(5))) - ( CONSTS(14)*CONSTS(2)*STATES(11)+ CONSTS(16)*STATES(11)+ ALGBRC(4)*(STATES(11)/(CONSTS(41)+STATES(11))))
      ALGBRC(5) =  CONSTS(28)*(CONSTS(1)+STATES(19))
      RATES(2) = ( CONSTS(6)*STATES(1)+ CONSTS(25)*STATES(5)*STATES(8)+ CONSTS(9)*STATES(14)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(14)*(CONSTS(4) - STATES(5))) - ( CONSTS(5)*CONSTS(2)*STATES(2)+ CONSTS(24)*STATES(2)+ ALGBRC(5)*(STATES(2)/(CONSTS(42)+STATES(2))))
      ALGBRC(6) =  CONSTS(33)*(CONSTS(1)+STATES(20))
      RATES(8) = ( CONSTS(15)*STATES(4)+ CONSTS(30)*STATES(5)*STATES(12)+ CONSTS(9)*STATES(16)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(16)*(CONSTS(4) - STATES(5))) - ( CONSTS(14)*CONSTS(2)*STATES(8)+ CONSTS(29)*STATES(8)+ ALGBRC(6)*(STATES(8)/(CONSTS(43)+STATES(8))))
      ALGBRC(7) =  CONSTS(28)*(CONSTS(1)+STATES(21))
      RATES(14) = ( CONSTS(6)*STATES(6)+ CONSTS(25)*STATES(5)*STATES(16)+ CONSTS(9)*STATES(2)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(2)*(CONSTS(4) - STATES(5))) - ( CONSTS(5)*CONSTS(2)*STATES(14)+ CONSTS(24)*STATES(14)+ ALGBRC(7)*(STATES(14)/(CONSTS(44)+STATES(14))))
      ALGBRC(8) =  CONSTS(33)*(CONSTS(1)+STATES(22))
      RATES(16) = ( CONSTS(15)*STATES(11)+ CONSTS(30)*STATES(5)*STATES(18)+ CONSTS(9)*STATES(8)*(CONSTS(3) - STATES(7))+ CONSTS(10)*STATES(8)*(CONSTS(4) - STATES(5))) - ( CONSTS(14)*CONSTS(2)*STATES(16)+ CONSTS(29)*STATES(16)+ ALGBRC(8)*(STATES(16)/(CONSTS(45)+STATES(16))))
      ALGBRC(9) = STATES(6)+STATES(14)+STATES(11)+STATES(16)+STATES(13)+STATES(18)
      RATES(7) =  CONSTS(9)*ALGBRC(9)*(CONSTS(3) - STATES(7)) -  CONSTS(36)*CONSTS(35)*STATES(7)
      RATES(5) =  CONSTS(10)*ALGBRC(9)*(CONSTS(4) - STATES(5)) -  CONSTS(37)*STATES(5)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) =  CONSTS(13)*(CONSTS(1)+STATES(3))
      ALGBRC(2) =  CONSTS(20)*(CONSTS(1)+STATES(9))
      ALGBRC(3) =  CONSTS(13)*(CONSTS(1)+STATES(15))
      ALGBRC(4) =  CONSTS(20)*(CONSTS(1)+STATES(17))
      ALGBRC(5) =  CONSTS(28)*(CONSTS(1)+STATES(19))
      ALGBRC(6) =  CONSTS(33)*(CONSTS(1)+STATES(20))
      ALGBRC(7) =  CONSTS(28)*(CONSTS(1)+STATES(21))
      ALGBRC(8) =  CONSTS(33)*(CONSTS(1)+STATES(22))
      ALGBRC(9) = STATES(6)+STATES(14)+STATES(11)+STATES(16)+STATES(13)+STATES(18)
      RETURN
      END