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 2 entries in each of the rate and state variable arrays.
C There are a total of 16 entries in the constant variable array.
C
C
C VOI is time in component environment (minute).
C STATES(1) is Pha in component Pha (millimolar).
C CONSTS(1) is V_1 in component Pha (per_minute).
C CONSTS(2) is K_1 in component Pha (dimensionless).
C CONSTS(3) is K_2 in component Pha (dimensionless).
C CONSTS(4) is V_M2 in component Pha (per_minute).
C CONSTS(5) is alpha in component Pha (dimensionless).
C CONSTS(6) is GLC in component Pha (millimolar).
C CONSTS(7) is K_a1 in component Pha (millimolar).
C CONSTS(8) is K_a2 in component Pha (millimolar).
C STATES(2) is GSa in component GSa (millimolar).
C CONSTS(9) is V_M3 in component GSa (per_minute).
C CONSTS(10) is beta in component GSa (dimensionless).
C CONSTS(11) is G6P in component GSa (millimolar).
C CONSTS(12) is K_a3 in component GSa (millimolar).
C CONSTS(13) is K_3 in component GSa (dimensionless).
C CONSTS(14) is K_4 in component GSa (dimensionless).
C CONSTS(15) is K_a4 in component GSa (millimolar).
C CONSTS(16) is V_4 in component GSa (per_minute).
C RATES(1) is d/dt Pha in component Pha (millimolar).
C RATES(2) is d/dt GSa in component GSa (millimolar).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 0.845
CONSTS(1) = 1.25
CONSTS(2) = 0.1
CONSTS(3) = 0.2
CONSTS(4) = 0.22
CONSTS(5) = 9
CONSTS(6) = 32.5
CONSTS(7) = 10
CONSTS(8) = 10
STATES(2) = 0.02
CONSTS(9) = 0.05
CONSTS(10) = 9
CONSTS(11) = 0.4
CONSTS(12) = 0.5
CONSTS(13) = 0.4
CONSTS(14) = 0.4
CONSTS(15) = 0.5
CONSTS(16) = 0.2
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = ( CONSTS(1)*(1.00000 - STATES(1)))/((CONSTS(2)+1.00000) - STATES(1)) - ( CONSTS(4)*STATES(1)*(1.00000+( CONSTS(5)*CONSTS(6))/(CONSTS(7)+CONSTS(6))))/(CONSTS(3)/(1.00000+CONSTS(6)/CONSTS(8))+STATES(1))
RATES(2) = ( CONSTS(9)*(1.00000+( CONSTS(10)*CONSTS(11))/(CONSTS(12)+CONSTS(11)))*(CONSTS(2)/(CONSTS(2)+STATES(1)))*(1.00000 - STATES(2)))/((CONSTS(13)/(1.00000+CONSTS(11)/CONSTS(15))+1.00000) - STATES(2)) - ( CONSTS(16)*STATES(2))/(CONSTS(14)+ STATES(2)*1.00000)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
