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 3 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 (day). C STATES(1) is x in component x (dimensionless). C CONSTS(1) is d1 in component model_parameters (first_order_rate_constant). C CONSTS(2) is a in component model_parameters (first_order_rate_constant). C CONSTS(3) is r in component model_parameters (first_order_rate_constant). C STATES(2) is y in component y (dimensionless). C CONSTS(4) is kappa in component model_parameters (dimensionless). C CONSTS(7) is d2 in component y (first_order_rate_constant). C CONSTS(5) is p in component model_parameters (first_order_rate_constant). C STATES(3) is z in component z (dimensionless). C CONSTS(6) is v in component z (first_order_rate_constant). C RATES(1) is d/dt x in component x (dimensionless). C RATES(2) is d/dt y in component y (dimensionless). C RATES(3) is d/dt z in component z (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 10E-1 CONSTS(1) = 0.005 CONSTS(2) = 0.03333 CONSTS(3) = 1.0 STATES(2) = 0.0 CONSTS(4) = 1.0 CONSTS(5) = 200.0 STATES(3) = 0.01 CONSTS(6) = 0.5 CONSTS(7) = (- ( 99.0000*CONSTS(2)*CONSTS(1))+ CONSTS(2)*CONSTS(3)+ CONSTS(1)*CONSTS(3))/(CONSTS(2) - CONSTS(1)) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = 2.00000*CONSTS(3)*STATES(2) - ( CONSTS(2)*STATES(1)*(1.00000 - STATES(1)/CONSTS(4))+ CONSTS(1)*STATES(1)*(STATES(1)/CONSTS(4))) RATES(2) = CONSTS(2)*STATES(1)*(1.00000 - STATES(1)/CONSTS(4)) - ( (CONSTS(3)+CONSTS(7))*STATES(2)+ CONSTS(5)*STATES(3)*STATES(2)) RATES(3) = CONSTS(5)*STATES(3)*STATES(2) - CONSTS(6)*STATES(3) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END