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 17 entries in each of the rate and state variable arrays. C There are a total of 18 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 CONSTS(5) is p in component model_parameters (first_order_rate_constant). C STATES(4) is z in component z (dimensionless). C STATES(5) is w in component w (dimensionless). C STATES(6) is x in component x (dimensionless). C CONSTS(6) is r in component model_parameters (first_order_rate_constant). C STATES(7) is y in component y (dimensionless). C CONSTS(7) is k in component model_parameters (dimensionless). C CONSTS(8) is d in component model_parameters (first_order_rate_constant). C CONSTS(9) is beta in component model_parameters (first_order_rate_constant). C CONSTS(10) is a in component model_parameters (first_order_rate_constant). C CONSTS(11) is u in component model_parameters (first_order_rate_constant). C CONSTS(12) is eta in component model_parameters (first_order_rate_constant). C CONSTS(13) is xi in component model_parameters (first_order_rate_constant). C CONSTS(14) is rho in component model_parameters (first_order_rate_constant). C CONSTS(15) is phi in component model_parameters (first_order_rate_constant). C STATES(8) is m_9 in component m_9 (dimensionless). C STATES(9) is m_8 in component m_8 (dimensionless). C STATES(10) is m_7 in component m_7 (dimensionless). C STATES(11) is m_6 in component m_6 (dimensionless). C STATES(12) is m_5 in component m_5 (dimensionless). C STATES(13) is m_4 in component m_4 (dimensionless). C STATES(14) is m_3 in component m_3 (dimensionless). C STATES(15) is m_2 in component m_2 (dimensionless). C STATES(16) is m_1 in component m_1 (dimensionless). C STATES(17) is m_0 in component m_0 (dimensionless). C CONSTS(16) is b in component model_parameters (first_order_rate_constant). C CONSTS(17) is epsilon in component model_parameters (dimensionless). C CONSTS(18) is c 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(6) is d/dt x in component x (dimensionless). C RATES(7) is d/dt y in component y (dimensionless). C RATES(2) is d/dt v in component v (dimensionless). C RATES(5) is d/dt w in component w (dimensionless). C RATES(8) is d/dt m_9 in component m_9 (dimensionless). C RATES(9) is d/dt m_8 in component m_8 (dimensionless). C RATES(10) is d/dt m_7 in component m_7 (dimensionless). C RATES(11) is d/dt m_6 in component m_6 (dimensionless). C RATES(12) is d/dt m_5 in component m_5 (dimensionless). C RATES(13) is d/dt m_4 in component m_4 (dimensionless). C RATES(14) is d/dt m_3 in component m_3 (dimensionless). C RATES(15) is d/dt m_2 in component m_2 (dimensionless). C RATES(16) is d/dt m_1 in component m_1 (dimensionless). C RATES(17) is d/dt m_0 in component m_0 (dimensionless). C RATES(4) is d/dt z in component z (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 1000.0 CONSTS(1) = 0.01 CONSTS(2) = 0.01 CONSTS(3) = 1.0 STATES(2) = 0.0001 STATES(3) = 0.0001 CONSTS(4) = 0.2 CONSTS(5) = 45.0 STATES(4) = 0.0 STATES(5) = 0.0 STATES(6) = 10.0 CONSTS(6) = 1.0 STATES(7) = 0.0 CONSTS(7) = 10.0 CONSTS(8) = 0.001 CONSTS(9) = 0.3 CONSTS(10) = 0.2 CONSTS(11) = 1.0 CONSTS(12) = 1.0 CONSTS(13) = 0.01 CONSTS(14) = 0.3 CONSTS(15) = 1.5 STATES(8) = 0.0 STATES(9) = 0.0 STATES(10) = 0.0 STATES(11) = 0.0 STATES(12) = 0.0 STATES(13) = 0.0 STATES(14) = 0.0 STATES(15) = 0.0 STATES(16) = 0.0 STATES(17) = 0.1 CONSTS(16) = 0.1 CONSTS(17) = 1.0 CONSTS(18) = 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)+ CONSTS(5)*STATES(3)*(STATES(4)+STATES(5))) RATES(6) = CONSTS(6)*STATES(6)*STATES(2)*(1.00000 - (STATES(6)+STATES(7))/CONSTS(7)) - ( CONSTS(8)*STATES(6)+ CONSTS(9)*STATES(6)*STATES(2)) RATES(7) = ( CONSTS(9)*STATES(6)*STATES(2)+ CONSTS(6)*STATES(7)*STATES(2)*(1.00000 - (STATES(6)+STATES(7))/CONSTS(7))) - ( CONSTS(10)*STATES(7)+ CONSTS(5)*STATES(7)*(STATES(4)+STATES(5))) RATES(2) = CONSTS(12)*(STATES(7)+STATES(3)) - CONSTS(11)*STATES(2) RATES(5) = 2.00000*CONSTS(14)*STATES(8) - ( CONSTS(13)*STATES(5)+ CONSTS(15)*STATES(5)) RATES(8) = 2.00000*CONSTS(14)*STATES(9) - CONSTS(14)*STATES(8) RATES(9) = 2.00000*CONSTS(14)*STATES(10) - CONSTS(14)*STATES(9) RATES(10) = 2.00000*CONSTS(14)*STATES(11) - CONSTS(14)*STATES(10) RATES(11) = 2.00000*CONSTS(14)*STATES(12) - CONSTS(14)*STATES(11) RATES(12) = 2.00000*CONSTS(14)*STATES(13) - CONSTS(14)*STATES(12) RATES(13) = 2.00000*CONSTS(14)*STATES(14) - CONSTS(14)*STATES(13) RATES(14) = 2.00000*CONSTS(14)*STATES(15) - CONSTS(14)*STATES(14) RATES(15) = 2.00000*CONSTS(14)*STATES(16) - CONSTS(14)*STATES(15) RATES(16) = 2.00000*CONSTS(14)*STATES(17) - CONSTS(14)*STATES(16) RATES(17) = - ( CONSTS(14)*STATES(17)) RATES(4) = ( CONSTS(13)*STATES(5)+ CONSTS(18)*STATES(6)*(STATES(7)+STATES(3))*(STATES(4)/( CONSTS(17)*STATES(6)+1.00000))) - CONSTS(16)*STATES(4) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END