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 5 entries in each of the rate and state variable arrays. C There are a total of 11 entries in the constant variable array. C C C VOI is time in component environment (second). C STATES(1) is T in component T (dimensionless). C CONSTS(1) is delta in component model_parameters (first_order_rate_constant). C CONSTS(2) is gamma in component model_parameters (first_order_rate_constant). C CONSTS(3) is lambda in component model_parameters (first_order_rate_constant). C STATES(2) is v in component v (dimensionless). C STATES(3) is I in component I (dimensionless). C CONSTS(4) is alpha in component model_parameters (first_order_rate_constant). C STATES(4) is x in component x (dimensionless). C CONSTS(5) is r in component model_parameters (first_order_rate_constant). C STATES(5) is y in component y (dimensionless). C CONSTS(6) is k in component model_parameters (dimensionless). C CONSTS(7) is d in component model_parameters (first_order_rate_constant). C CONSTS(8) is beta in component model_parameters (first_order_rate_constant). C CONSTS(9) is a in component model_parameters (first_order_rate_constant). C CONSTS(10) is u in component model_parameters (first_order_rate_constant). C CONSTS(11) is eta in component model_parameters (first_order_rate_constant). C RATES(1) is d/dt T in component T (dimensionless). C RATES(3) is d/dt I in component I (dimensionless). C RATES(4) is d/dt x in component x (dimensionless). C RATES(5) is d/dt y in component y (dimensionless). C RATES(2) is d/dt v in component v (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 1000.0 CONSTS(1) = 0.01 CONSTS(2) = 0.005 CONSTS(3) = 1.0 STATES(2) = 0.0001 STATES(3) = 0.0001 CONSTS(4) = 0.2 STATES(4) = 10.0 CONSTS(5) = 1.0 STATES(5) = 0.0 CONSTS(6) = 10.0 CONSTS(7) = 0.001 CONSTS(8) = 0.3 CONSTS(9) = 0.2 CONSTS(10) = 1.0 CONSTS(11) = 1.0 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = CONSTS(3) - ( CONSTS(1)*STATES(1)+ CONSTS(2)*STATES(1)*STATES(2)) RATES(3) = CONSTS(2)*STATES(1)*STATES(2) - CONSTS(4)*STATES(3) RATES(4) = CONSTS(5)*STATES(4)*STATES(2)*(1.00000 - (STATES(4)+STATES(5))/CONSTS(6)) - ( CONSTS(7)*STATES(4)+ CONSTS(8)*STATES(4)*STATES(2)) RATES(5) = ( CONSTS(8)*STATES(4)*STATES(2)+ CONSTS(5)*STATES(5)*STATES(2)*(1.00000 - (STATES(4)+STATES(5))/CONSTS(6))) - CONSTS(9)*STATES(5) RATES(2) = CONSTS(11)*(STATES(5)+STATES(3)) - CONSTS(10)*STATES(2) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END