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 4 entries in the algebraic variable array.
C There are a total of 3 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 (min).
C STATES(1) is Z in component Ca (uM).
C STATES(2) is Y in component Ca (uM).
C STATES(3) is X in component Ca (uM).
C CONSTS(15) is V_in in component V_in (uM_per_min).
C ALGBRC(1) is V_2i in component V_2i (uM_per_min).
C ALGBRC(2) is V_3i in component V_3i (uM_per_min).
C ALGBRC(3) is V_2s in component V_2s (uM_per_min).
C ALGBRC(4) is V_3s in component V_3s (uM_per_min).
C CONSTS(1) is K_f in component Ca (per_min).
C CONSTS(2) is K in component Ca (per_min).
C CONSTS(3) is beta in component Ca_flux (dimensionless).
C CONSTS(4) is v_0 in component V_in (uM_per_min).
C CONSTS(5) is v_1 in component V_in (uM_per_min).
C CONSTS(6) is V_M2i in component V_2i (uM_per_min).
C CONSTS(7) is K_2i in component V_2i (uM).
C CONSTS(8) is V_M3i in component V_3i (uM_per_min).
C CONSTS(9) is K_3z in component V_3i (uM).
C CONSTS(10) is K_3y in component V_3i (uM).
C CONSTS(11) is V_M2s in component V_2s (uM_per_min).
C CONSTS(12) is K_2s in component V_2s (uM).
C CONSTS(13) is V_M3s in component V_3s (uM_per_min).
C CONSTS(14) is K_3s in component V_3s (uM).
C RATES(1) is d/dt Z in component Ca (uM).
C RATES(2) is d/dt Y in component Ca (uM).
C RATES(3) is d/dt X in component Ca (uM).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 0.0
      STATES(2) = 0.0
      STATES(3) = 0.5
      CONSTS(1) = 0.5
      CONSTS(2) = 1
      CONSTS(3) = 1
      CONSTS(4) = 0.015
      CONSTS(5) = 0.012
      CONSTS(6) = 3.1
      CONSTS(7) = 0.005
      CONSTS(8) = 25
      CONSTS(9) = 0.022
      CONSTS(10) = 0.065
      CONSTS(11) = 1.5
      CONSTS(12) = 0.0265
      CONSTS(13) = 0.169
      CONSTS(14) = 0.1
      CONSTS(15) = CONSTS(4)+ CONSTS(5)*CONSTS(3)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) =  CONSTS(6)*(STATES(1) ** 2.00000/(CONSTS(7) ** 2.00000+STATES(1) ** 2.00000))
      ALGBRC(2) =  CONSTS(8)*(STATES(2) ** 2.00000/(CONSTS(10) ** 2.00000+STATES(2) ** 2.00000))*(STATES(1) ** 2.00000/(CONSTS(9) ** 2.00000+STATES(1) ** 2.00000))
      RATES(2) = ALGBRC(1)+- ALGBRC(2)+- ( CONSTS(1)*STATES(2))
      ALGBRC(3) =  CONSTS(11)*(STATES(1) ** 2.00000/(CONSTS(12) ** 2.00000+STATES(1) ** 2.00000))
      ALGBRC(4) =  CONSTS(3)*CONSTS(13)*(STATES(3) ** 2.00000/(CONSTS(14) ** 2.00000+STATES(3) ** 2.00000))
      RATES(1) = CONSTS(15)+- ALGBRC(1)+ALGBRC(2)+ CONSTS(1)*STATES(2)+- ALGBRC(3)+ALGBRC(4)+ CONSTS(1)*STATES(3)+- ( CONSTS(2)*STATES(1))
      RATES(3) = ALGBRC(3)+- ALGBRC(4)+- ( CONSTS(1)*STATES(3))
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) =  CONSTS(6)*(STATES(1) ** 2.00000/(CONSTS(7) ** 2.00000+STATES(1) ** 2.00000))
      ALGBRC(2) =  CONSTS(8)*(STATES(2) ** 2.00000/(CONSTS(10) ** 2.00000+STATES(2) ** 2.00000))*(STATES(1) ** 2.00000/(CONSTS(9) ** 2.00000+STATES(1) ** 2.00000))
      ALGBRC(3) =  CONSTS(11)*(STATES(1) ** 2.00000/(CONSTS(12) ** 2.00000+STATES(1) ** 2.00000))
      ALGBRC(4) =  CONSTS(3)*CONSTS(13)*(STATES(3) ** 2.00000/(CONSTS(14) ** 2.00000+STATES(3) ** 2.00000))
      RETURN
      END