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 0 entries in the algebraic variable array.
C There are a total of 9 entries in each of the rate and state variable arrays.
C There are a total of 11 entries in the constant variable array.
C
C
C VOI is time in component environment (hour).
C STATES(1) is Pfr in component Pfr (micromolar).
C STATES(2) is Pr in component Pr (micromolar).
C CONSTS(1) is Ifr_sigma_fr_phi_fr in component model_parameters (dimensionless).
C CONSTS(2) is Ir_sigma_r_phi_r in component model_parameters (dimensionless).
C CONSTS(3) is kd in component Pr (first_order_rate_constant).
C STATES(3) is Xi in component Xi (micromolar).
C STATES(4) is Xa in component Xa (micromolar).
C CONSTS(4) is kia in component model_parameters (second_order_rate_constant).
C CONSTS(5) is kai in component model_parameters (first_order_rate_constant).
C STATES(5) is prepreS in component prepreS (micromolar).
C CONSTS(6) is kx in component model_parameters (second_order_rate_constant).
C STATES(6) is preS in component preS (micromolar).
C STATES(7) is Ya in component Ya (micromolar).
C CONSTS(7) is ky in component model_parameters (second_order_rate_constant).
C STATES(8) is S in component S (micromolar).
C CONSTS(8) is alpha1 in component S (micromolar).
C STATES(9) is V in component V (micromolar).
C CONSTS(9) is alpha2 in component V (micromolar).
C CONSTS(10) is kG in component Ya (second_order_rate_constant).
C CONSTS(11) is glucose in component model_parameters (micromolar).
C RATES(1) is d/dt Pfr in component Pfr (micromolar).
C RATES(2) is d/dt Pr in component Pr (micromolar).
C RATES(3) is d/dt Xi in component Xi (micromolar).
C RATES(4) is d/dt Xa in component Xa (micromolar).
C RATES(5) is d/dt prepreS in component prepreS (micromolar).
C RATES(6) is d/dt preS in component preS (micromolar).
C RATES(8) is d/dt S in component S (micromolar).
C RATES(9) is d/dt V in component V (micromolar).
C RATES(7) is d/dt Ya in component Ya (micromolar).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 10.0
      STATES(2) = 0.0
      CONSTS(1) = 0.1
      CONSTS(2) = 0.0
      CONSTS(3) = 0.1
      STATES(3) = 6.0
      STATES(4) = 0.0
      CONSTS(4) = 0.1
      CONSTS(5) = 0.8
      STATES(5) = 200.0
      CONSTS(6) = 0.2
      STATES(6) = 0.0
      STATES(7) = 0.9
      CONSTS(7) = 1.0
      STATES(8) = 0.0
      CONSTS(8) = 30.0
      STATES(9) = 50.0
      CONSTS(9) = 50.0
      CONSTS(10) = 0.1
      CONSTS(11) = 1.0
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) =  CONSTS(2)*STATES(2) -  CONSTS(1)*STATES(1)
      RATES(2) =  CONSTS(1)*STATES(2) - ( CONSTS(2)*STATES(2)+ CONSTS(3)*STATES(2))
      RATES(3) =  CONSTS(5)*STATES(4) -  CONSTS(4)*STATES(2)*STATES(3)
      RATES(4) =  CONSTS(4)*STATES(2)*STATES(3) -  CONSTS(5)*STATES(4)
      RATES(5) = - ( CONSTS(6)*STATES(4)*STATES(5))
      RATES(6) =  CONSTS(6)*STATES(4)*STATES(5) -  CONSTS(7)*STATES(7)*STATES(6)
      RATES(8) = ( CONSTS(7)*STATES(7)*STATES(6)+CONSTS(8)/(1.00000+STATES(9) ** 3.00000)) - STATES(8)
      RATES(9) = CONSTS(9)/(1.00000+STATES(8) ** 3.00000) - STATES(9)
      RATES(7) = - ( CONSTS(10)*CONSTS(11)*STATES(7))
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END