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 16 entries in the algebraic variable array.
C There are a total of 6 entries in each of the rate and state variable arrays.
C There are a total of 19 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C CONSTS(1) is q_PKACI_init in component environment (fmol).
C CONSTS(2) is q_Ip_init in component environment (fmol).
C CONSTS(3) is q_Ip_PKACI_init in component environment (fmol).
C CONSTS(4) is q_PP2a_init in component environment (fmol).
C CONSTS(5) is q_Ip_PP2a_init in component environment (fmol).
C CONSTS(6) is q_I_init in component environment (fmol).
C ALGBRC(1) is q_PKACI in component environment (fmol).
C ALGBRC(2) is q_Ip in component environment (fmol).
C ALGBRC(3) is q_Ip_PKACI in component environment (fmol).
C ALGBRC(4) is q_PP2a in component environment (fmol).
C ALGBRC(5) is q_Ip_PP2a in component environment (fmol).
C ALGBRC(6) is q_I in component environment (fmol).
C STATES(1) is q_PKACI in component Inhib1 (fmol).
C STATES(2) is q_Ip in component Inhib1 (fmol).
C STATES(3) is q_Ip_PKACI in component Inhib1 (fmol).
C STATES(4) is q_PP2a in component Inhib1 (fmol).
C STATES(5) is q_Ip_PP2a in component Inhib1 (fmol).
C STATES(6) is q_I in component Inhib1 (fmol).
C CONSTS(7) is kappa_PKAi1 in component Inhib1_parameters (fmol_per_sec).
C CONSTS(8) is kappa_PKAi2 in component Inhib1_parameters (fmol_per_sec).
C CONSTS(9) is kappa_PP2ai1 in component Inhib1_parameters (fmol_per_sec).
C CONSTS(10) is kappa_PP2ai2 in component Inhib1_parameters (fmol_per_sec).
C CONSTS(11) is K_PKACI in component Inhib1_parameters (per_fmol).
C CONSTS(12) is K_Ip in component Inhib1_parameters (per_fmol).
C CONSTS(13) is K_Ip_PKACI in component Inhib1_parameters (per_fmol).
C CONSTS(14) is K_PP2a in component Inhib1_parameters (per_fmol).
C CONSTS(15) is K_Ip_PP2a in component Inhib1_parameters (per_fmol).
C CONSTS(16) is K_I in component Inhib1_parameters (per_fmol).
C CONSTS(17) is R in component constants (J_per_K_per_mol).
C CONSTS(18) is T in component constants (kelvin).
C ALGBRC(13) is vPKAi1 in component Inhib1 (fmol_per_sec).
C ALGBRC(14) is vPKAi2 in component Inhib1 (fmol_per_sec).
C ALGBRC(15) is vPP2ai1 in component Inhib1 (fmol_per_sec).
C ALGBRC(16) is vPP2ai2 in component Inhib1 (fmol_per_sec).
C ALGBRC(7) is mu_PKACI in component Inhib1 (J_per_mol).
C ALGBRC(8) is mu_Ip in component Inhib1 (J_per_mol).
C ALGBRC(9) is mu_Ip_PKACI in component Inhib1 (J_per_mol).
C ALGBRC(10) is mu_PP2a in component Inhib1 (J_per_mol).
C ALGBRC(11) is mu_Ip_PP2a in component Inhib1 (J_per_mol).
C ALGBRC(12) is mu_I in component Inhib1 (J_per_mol).
C CONSTS(19) is F in component constants (C_per_mol).
C RATES(1) is d/dt q_PKACI in component Inhib1 (fmol).
C RATES(2) is d/dt q_Ip in component Inhib1 (fmol).
C RATES(3) is d/dt q_Ip_PKACI in component Inhib1 (fmol).
C RATES(4) is d/dt q_PP2a in component Inhib1 (fmol).
C RATES(5) is d/dt q_Ip_PP2a in component Inhib1 (fmol).
C RATES(6) is d/dt q_I in component Inhib1 (fmol).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = 1.117E-03
      CONSTS(2) = 9.994E-04
      CONSTS(3) = 1e-13
      CONSTS(4) = 8.512E-03
      CONSTS(5) = 1e-13
      CONSTS(6) = 1.140E-02
      STATES(1) = 1e-16
      STATES(2) = 1e-16
      STATES(3) = 1e-16
      STATES(4) = 1e-16
      STATES(5) = 1e-16
      STATES(6) = 1e-16
      CONSTS(7) = 20.9606
      CONSTS(8) = 22.2706
      CONSTS(9) = 5.39341
      CONSTS(10) = 5.30013
      CONSTS(11) = 0.284433
      CONSTS(12) = 0.133405
      CONSTS(13) = 1.38688
      CONSTS(14) = 0.0704691
      CONSTS(15) = 0.342795
      CONSTS(16) = 0.150247
      CONSTS(17) = 8.31
      CONSTS(18) = 310
      CONSTS(19) = 96485
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) = STATES(1)+CONSTS(1)
      ALGBRC(7) =  CONSTS(17)*CONSTS(18)*log( CONSTS(11)*ALGBRC(1))
      ALGBRC(3) = STATES(3)+CONSTS(3)
      ALGBRC(9) =  CONSTS(17)*CONSTS(18)*log( CONSTS(13)*ALGBRC(3))
      ALGBRC(6) = STATES(6)+CONSTS(6)
      ALGBRC(12) =  CONSTS(17)*CONSTS(18)*log( CONSTS(16)*ALGBRC(6))
      ALGBRC(13) =  CONSTS(7)*(EXP((ALGBRC(7)+ALGBRC(12))/( CONSTS(17)*CONSTS(18))) - EXP(ALGBRC(9)/( CONSTS(17)*CONSTS(18))))
      ALGBRC(2) = STATES(2)+CONSTS(2)
      ALGBRC(8) =  CONSTS(17)*CONSTS(18)*log( CONSTS(12)*ALGBRC(2))
      ALGBRC(14) =  CONSTS(8)*(EXP(ALGBRC(9)/( CONSTS(17)*CONSTS(18))) - EXP((ALGBRC(7)+ALGBRC(8))/( CONSTS(17)*CONSTS(18))))
      RATES(1) = ALGBRC(14) - ALGBRC(13)
      RATES(3) = ALGBRC(13) - ALGBRC(14)
      ALGBRC(4) = STATES(4)+CONSTS(4)
      ALGBRC(10) =  CONSTS(17)*CONSTS(18)*log( CONSTS(14)*ALGBRC(4))
      ALGBRC(5) = STATES(5)+CONSTS(5)
      ALGBRC(11) =  CONSTS(17)*CONSTS(18)*log( CONSTS(15)*ALGBRC(5))
      ALGBRC(15) =  CONSTS(9)*(EXP((ALGBRC(10)+ALGBRC(8))/( CONSTS(17)*CONSTS(18))) - EXP(ALGBRC(11)/( CONSTS(17)*CONSTS(18))))
      RATES(2) = ALGBRC(14) - ALGBRC(15)
      ALGBRC(16) =  CONSTS(10)*(EXP(ALGBRC(11)/( CONSTS(17)*CONSTS(18))) - EXP((ALGBRC(10)+ALGBRC(12))/( CONSTS(17)*CONSTS(18))))
      RATES(4) = ALGBRC(16) - ALGBRC(15)
      RATES(5) = ALGBRC(15) - ALGBRC(16)
      RATES(6) = ALGBRC(16) - ALGBRC(13)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(1) = STATES(1)+CONSTS(1)
      ALGBRC(7) =  CONSTS(17)*CONSTS(18)*log( CONSTS(11)*ALGBRC(1))
      ALGBRC(3) = STATES(3)+CONSTS(3)
      ALGBRC(9) =  CONSTS(17)*CONSTS(18)*log( CONSTS(13)*ALGBRC(3))
      ALGBRC(6) = STATES(6)+CONSTS(6)
      ALGBRC(12) =  CONSTS(17)*CONSTS(18)*log( CONSTS(16)*ALGBRC(6))
      ALGBRC(13) =  CONSTS(7)*(EXP((ALGBRC(7)+ALGBRC(12))/( CONSTS(17)*CONSTS(18))) - EXP(ALGBRC(9)/( CONSTS(17)*CONSTS(18))))
      ALGBRC(2) = STATES(2)+CONSTS(2)
      ALGBRC(8) =  CONSTS(17)*CONSTS(18)*log( CONSTS(12)*ALGBRC(2))
      ALGBRC(14) =  CONSTS(8)*(EXP(ALGBRC(9)/( CONSTS(17)*CONSTS(18))) - EXP((ALGBRC(7)+ALGBRC(8))/( CONSTS(17)*CONSTS(18))))
      ALGBRC(4) = STATES(4)+CONSTS(4)
      ALGBRC(10) =  CONSTS(17)*CONSTS(18)*log( CONSTS(14)*ALGBRC(4))
      ALGBRC(5) = STATES(5)+CONSTS(5)
      ALGBRC(11) =  CONSTS(17)*CONSTS(18)*log( CONSTS(15)*ALGBRC(5))
      ALGBRC(15) =  CONSTS(9)*(EXP((ALGBRC(10)+ALGBRC(8))/( CONSTS(17)*CONSTS(18))) - EXP(ALGBRC(11)/( CONSTS(17)*CONSTS(18))))
      ALGBRC(16) =  CONSTS(10)*(EXP(ALGBRC(11)/( CONSTS(17)*CONSTS(18))) - EXP((ALGBRC(10)+ALGBRC(12))/( CONSTS(17)*CONSTS(18))))
      RETURN
      END
Source
Derived from workspace BG_Inhib1 at changeset 10bdd9472a1d.
Collaboration
To begin collaborating on this work, please use your git client and issue this command:
License
The terms of use/license for this work is unspecified.