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 3 entries in the algebraic variable array.
C There are a total of 1 entries in each of the rate and state variable arrays.
C There are a total of 14 entries in the constant variable array.
C
C
C VOI is time in component environment (minute).
C STATES(1) is Pha in component Pha (dimensionless).
C ALGBRC(2) is V_1 in component V_1 (dimensionless).
C ALGBRC(1) is Z in component Z (dimensionless).
C ALGBRC(3) is K_1 in component K_1 (dimensionless).
C CONSTS(1) is V_M2 in component Pha (per_minute).
C CONSTS(2) is alpha in component Pha (dimensionless).
C CONSTS(3) is Glc in component Pha (micromolar).
C CONSTS(4) is K_2 in component Pha (dimensionless).
C CONSTS(5) is K_a1 in component Pha (micromolar).
C CONSTS(6) is K_a2 in component Pha (micromolar).
C CONSTS(7) is V_M1 in component V_1 (per_minute).
C CONSTS(8) is gamma in component V_1 (dimensionless).
C CONSTS(9) is K_a5 in component V_1 (micromolar).
C CONSTS(10) is K_11 in component K_1 (dimensionless).
C CONSTS(11) is K_a6 in component K_1 (micromolar).
C CONSTS(12) is A in component Z (micromolar).
C CONSTS(13) is B in component Z (micromolar).
C CONSTS(14) is v in component Z (per_minute).
C RATES(1) is d/dt Pha in component Pha (dimensionless).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 0.098
CONSTS(1) = 0.6
CONSTS(2) = 9
CONSTS(3) = 10000
CONSTS(4) = 0.2
CONSTS(5) = 10000
CONSTS(6) = 10000
CONSTS(7) = 1.5
CONSTS(8) = 9
CONSTS(9) = 0.5
CONSTS(10) = 0.1
CONSTS(11) = 0.5
CONSTS(12) = 0.3
CONSTS(13) = 0.25
CONSTS(14) = 1
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = CONSTS(12)+ CONSTS(13)* sin( 2.00000* 3.14159265358979*CONSTS(14)*VOI)
ALGBRC(2) = CONSTS(7)*(1.00000+ CONSTS(8)*(ALGBRC(1) ** 4.00000/CONSTS(9) ** 4.00000+ALGBRC(1) ** 4.00000))
ALGBRC(3) = CONSTS(10)/(1.00000+ALGBRC(1) ** 4.00000/CONSTS(11) ** 4.00000)
RATES(1) = ALGBRC(2)*ALGBRC(1)*((1.00000 - STATES(1))/(( ALGBRC(3)*ALGBRC(1)+1.00000) - STATES(1))) - ( CONSTS(1)*(1.00000+( CONSTS(2)*CONSTS(3))/(CONSTS(5)+CONSTS(3)))*STATES(1))/(CONSTS(4)/(1.00000+CONSTS(3)/CONSTS(6))+STATES(1))
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = CONSTS(12)+ CONSTS(13)* sin( 2.00000* 3.14159265358979*CONSTS(14)*VOI)
ALGBRC(2) = CONSTS(7)*(1.00000+ CONSTS(8)*(ALGBRC(1) ** 4.00000/CONSTS(9) ** 4.00000+ALGBRC(1) ** 4.00000))
ALGBRC(3) = CONSTS(10)/(1.00000+ALGBRC(1) ** 4.00000/CONSTS(11) ** 4.00000)
RETURN
END
