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 10 entries in each of the rate and state variable arrays.
C There are a total of 15 entries in the constant variable array.
C
C
C VOI is time in component environment (hour).
C STATES(1) is c11 in component c11 (per_millilitre).
C CONSTS(1) is p1 in component model_parameters (per_hour).
C CONSTS(2) is p2 in component model_parameters (per_hour).
C CONSTS(3) is p5 in component model_parameters (per_hour).
C CONSTS(4) is p6 in component model_parameters (per_hour).
C STATES(2) is c12 in component c12 (per_millilitre).
C STATES(3) is c21 in component c21 (per_millilitre).
C CONSTS(5) is p4 in component model_parameters (per_hour).
C CONSTS(6) is p11 in component model_parameters (per_hour).
C CONSTS(7) is p12 in component model_parameters (per_hour).
C STATES(4) is c22 in component c22 (per_millilitre).
C STATES(5) is c31 in component c31 (per_millilitre).
C CONSTS(8) is p3 in component model_parameters (per_hour).
C CONSTS(9) is p7 in component model_parameters (per_hour).
C CONSTS(10) is p8 in component model_parameters (per_hour).
C STATES(6) is c32 in component c32 (per_millilitre).
C STATES(7) is c41 in component c41 (per_millilitre).
C CONSTS(11) is p9 in component model_parameters (per_hour).
C CONSTS(12) is p10 in component model_parameters (per_hour).
C STATES(8) is c42 in component c42 (per_millilitre).
C STATES(9) is c51 in component c51 (per_millilitre).
C CONSTS(13) is p13 in component model_parameters (per_hour).
C CONSTS(14) is p14 in component model_parameters (per_hour).
C CONSTS(15) is p15 in component model_parameters (per_hour).
C STATES(10) is c52 in component c52 (per_millilitre).
C RATES(1) is d/dt c11 in component c11 (per_millilitre).
C RATES(3) is d/dt c21 in component c21 (per_millilitre).
C RATES(5) is d/dt c31 in component c31 (per_millilitre).
C RATES(7) is d/dt c41 in component c41 (per_millilitre).
C RATES(9) is d/dt c51 in component c51 (per_millilitre).
C RATES(2) is d/dt c12 in component c12 (per_millilitre).
C RATES(4) is d/dt c22 in component c22 (per_millilitre).
C RATES(6) is d/dt c32 in component c32 (per_millilitre).
C RATES(8) is d/dt c42 in component c42 (per_millilitre).
C RATES(10) is d/dt c52 in component c52 (per_millilitre).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 9000
      CONSTS(1) = 0.032044
      CONSTS(2) = 0.016630
      CONSTS(3) = 6.363016
      CONSTS(4) = 7.574118
      STATES(2) = 12000
      STATES(3) = 0
      CONSTS(5) = 0.019571
      CONSTS(6) = 4.881967
      CONSTS(7) = 5.356513
      STATES(4) = 0
      STATES(5) = 0
      CONSTS(8) = 0.001885
      CONSTS(9) = 1.140535
      CONSTS(10) = 1.429125
      STATES(6) = 0
      STATES(7) = 0
      CONSTS(11) = 9.768637
      CONSTS(12) = 5.3640806
      STATES(8) = 0
      STATES(9) = 0
      CONSTS(13) = 0.052968
      CONSTS(14) = 0.443166
      CONSTS(15) = 0.103700
      STATES(10) = 0
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(1) = (( - CONSTS(1)*STATES(1) -  CONSTS(2)*STATES(1)) -  CONSTS(3)*STATES(1))+ CONSTS(4)*STATES(2)
      RATES(3) = (( CONSTS(1)*STATES(1) -  CONSTS(5)*STATES(3)) -  CONSTS(6)*STATES(3))+ CONSTS(7)*STATES(4)
      RATES(5) = (( CONSTS(2)*STATES(1) -  CONSTS(8)*STATES(5)) -  CONSTS(9)*STATES(5))+ CONSTS(10)*STATES(6)
      RATES(7) = (( CONSTS(8)*STATES(5)+ CONSTS(5)*STATES(3)) -  CONSTS(11)*STATES(7))+ CONSTS(12)*STATES(8)
      RATES(9) = ( CONSTS(13)*STATES(1) -  CONSTS(14)*STATES(9))+ CONSTS(15)*STATES(10)
      RATES(2) =  CONSTS(3)*STATES(1) -  CONSTS(4)*STATES(2)
      RATES(4) =  CONSTS(6)*STATES(3) -  CONSTS(7)*STATES(4)
      RATES(6) =  CONSTS(9)*STATES(5) -  CONSTS(10)*STATES(6)
      RATES(8) =  CONSTS(11)*STATES(7) -  CONSTS(12)*STATES(8)
      RATES(10) =  CONSTS(14)*STATES(9) -  CONSTS(15)*STATES(10)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RETURN
      END