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 4 entries in each of the rate and state variable arrays.
C There are a total of 7 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is C1 in component C1 (dimensionless).
C CONSTS(1) is O2C1 in component reaction_constants (second_order_rate_constant).
C CONSTS(2) is C1O2 in component reaction_constants (first_order_rate_constant).
C CONSTS(3) is C1C2 in component reaction_constants (first_order_rate_constant).
C CONSTS(4) is C2C1 in component reaction_constants (first_order_rate_constant).
C STATES(2) is C2 in component C2 (dimensionless).
C STATES(3) is O2 in component O2 (dimensionless).
C CONSTS(5) is Ca in component reaction_constants (micromolar).
C STATES(4) is O1 in component O1 (dimensionless).
C CONSTS(6) is O1O2 in component reaction_constants (second_order_rate_constant).
C CONSTS(7) is O2O1 in component reaction_constants (first_order_rate_constant).
C RATES(1) is d/dt C1 in component C1 (dimensionless).
C RATES(2) is d/dt C2 in component C2 (dimensionless).
C RATES(4) is d/dt O1 in component O1 (dimensionless).
C RATES(3) is d/dt O2 in component O2 (dimensionless).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 0.25
CONSTS(1) = 2.62
CONSTS(2) = 2277.0
CONSTS(3) = 60.8
CONSTS(4) = 198.0
STATES(2) = 0.25
STATES(3) = 0.25
CONSTS(5) = 50.0
STATES(4) = 0.25
CONSTS(6) = 2.41
CONSTS(7) = 85.1
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = ( CONSTS(1)*CONSTS(5)*STATES(3)+ CONSTS(4)*STATES(2)) - ( CONSTS(2)*STATES(1)+ CONSTS(3)*STATES(1))
RATES(2) = CONSTS(3)*STATES(1) - CONSTS(4)*STATES(2)
RATES(4) = CONSTS(7)*STATES(3) - CONSTS(6)*CONSTS(5)*STATES(4)
RATES(3) = ( CONSTS(6)*CONSTS(5)*STATES(4)+ CONSTS(2)*STATES(1)) - ( CONSTS(7)*STATES(3)+ CONSTS(1)*CONSTS(5)*STATES(3))
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
