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 13 entries in the constant variable array.
C
C
C VOI is time in component environment (day).
C STATES(1) is T in component T (dimensionless).
C CONSTS(1) is s in component T (first_order_rate_constant).
C CONSTS(2) is dT in component T (first_order_rate_constant).
C CONSTS(3) is b in component kinetic_parameters (first_order_rate_constant).
C STATES(2) is I in component I (dimensionless).
C CONSTS(4) is p in component I (first_order_rate_constant).
C CONSTS(5) is dI in component I (first_order_rate_constant).
C CONSTS(6) is ql in component kinetic_parameters (first_order_rate_constant).
C CONSTS(7) is qa in component kinetic_parameters (first_order_rate_constant).
C STATES(3) is E in component E (dimensionless).
C STATES(4) is Il in component Il (dimensionless).
C CONSTS(8) is al in component Il (first_order_rate_constant).
C CONSTS(9) is c in component E (first_order_rate_constant).
C CONSTS(10) is dE in component E (first_order_rate_constant).
C CONSTS(11) is K in component E (dimensionless).
C CONSTS(12) is dE_ in component E (first_order_rate_constant).
C CONSTS(13) is K_ in component E (dimensionless).
C RATES(1) is d/dt T in component T (dimensionless).
C RATES(2) is d/dt I in component I (dimensionless).
C RATES(4) is d/dt Il in component Il (dimensionless).
C RATES(3) is d/dt E in component E (dimensionless).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 1.0
CONSTS(1) = 10.0
CONSTS(2) = 0.01
CONSTS(3) = 0.001
STATES(2) = 1.0
CONSTS(4) = 0.05
CONSTS(5) = 0.3
CONSTS(6) = 0.001
CONSTS(7) = 0.001
STATES(3) = 1.0
STATES(4) = 1.0
CONSTS(8) = 0.01
CONSTS(9) = 0.3
CONSTS(10) = 0.1
CONSTS(11) = 0.1
CONSTS(12) = 0.25
CONSTS(13) = 05.0
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = CONSTS(1) - ( CONSTS(2)*STATES(1)+ CONSTS(3)*STATES(1)*STATES(2))
RATES(2) = ( CONSTS(3)*STATES(1)*STATES(2) - ( CONSTS(5)*STATES(2)+ CONSTS(4)*STATES(3)*STATES(2)+ CONSTS(6)*STATES(2)))+ CONSTS(7)*STATES(2)
RATES(4) = CONSTS(6)*STATES(2) - ( CONSTS(8)*STATES(4)+ CONSTS(7)*STATES(4))
RATES(3) = ( CONSTS(9)*STATES(3)*STATES(2))/(STATES(2)+CONSTS(11)) - ( CONSTS(10)*STATES(3)+( CONSTS(12)*STATES(3)*STATES(2))/(CONSTS(13)+STATES(2)))
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RETURN
END
