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 16 entries in each of the rate and state variable arrays. C There are a total of 21 entries in the constant variable array. C C C VOI is t in component environment (s). C CONSTS(1) is kM2T2_on in component Model (second_order_rate_constant). C CONSTS(2) is kM2T2_off in component Model (first_order_rate_constant). C CONSTS(3) is kM2T2_iso in component Model (first_order_rate_constant). C CONSTS(4) is kM2T2_negativeiso in component Model (first_order_rate_constant). C CONSTS(5) is kM2C1_on in component Model (second_order_rate_constant). C CONSTS(6) is kM2C1_off in component Model (first_order_rate_constant). C CONSTS(7) is kM2C1_cat in component Model (first_order_rate_constant). C CONSTS(8) is kMT1T2_on in component Model (second_order_rate_constant). C CONSTS(9) is kMT1T2_off in component Model (first_order_rate_constant). C CONSTS(10) is kMT1T2M2pro_on in component Model (second_order_rate_constant). C CONSTS(11) is kMT1T2M2pro_off in component Model (first_order_rate_constant). C CONSTS(12) is kM2_act in component Model (first_order_rate_constant). C CONSTS(13) is kMT1_shedeff in component Model (second_order_rate_constant). C CONSTS(14) is kMT1C1_cat in component Model (first_order_rate_constant). C CONSTS(15) is kMT1C1_on in component Model (second_order_rate_constant). C CONSTS(16) is kMT1C1_off in component Model (first_order_rate_constant). C CONSTS(17) is kMT1T2M2proMT1_on in component Model (second_order_rate_constant). C CONSTS(18) is kMT1T2M2proMT1_off in component Model (first_order_rate_constant). C STATES(1) is M2T2 in component Model (M). C STATES(2) is M2C1 in component Model (M). C STATES(3) is MT1T2 in component Model (M). C STATES(4) is MT1T2M2proMT1 in component Model (M). C STATES(5) is MT1C1 in component Model (M). C STATES(6) is M2 in component Model (M). C STATES(7) is MT1 in component Model (M). C STATES(8) is M2_p in component Model (M). C STATES(9) is T2 in component Model (M). C STATES(10) is C1_D in component Model (M). C STATES(11) is C1 in component Model (M). C STATES(12) is MT1_cat in component Model (M). C STATES(13) is MT1_t in component Model (M). C STATES(14) is MT1T2M2pro in component Model (M). C CONSTS(19) is qMT1 in component Model (flux). C CONSTS(20) is qT2 in component Model (flux). C CONSTS(21) is qpro in component Model (flux). C STATES(15) is MT1T2_star in component Model (um). C STATES(16) is M2T2_star in component Model (um). C RATES(6) is d/dt M2 in component Model (M). C RATES(7) is d/dt MT1 in component Model (M). C RATES(13) is d/dt MT1_t in component Model (M). C RATES(5) is d/dt MT1C1 in component Model (M). C RATES(3) is d/dt MT1T2 in component Model (M). C RATES(14) is d/dt MT1T2M2pro in component Model (M). C RATES(4) is d/dt MT1T2M2proMT1 in component Model (M). C RATES(11) is d/dt C1 in component Model (M). C RATES(10) is d/dt C1_D in component Model (M). C RATES(12) is d/dt MT1_cat in component Model (M). C RATES(9) is d/dt T2 in component Model (M). C RATES(8) is d/dt M2_p in component Model (M). C RATES(1) is d/dt M2T2 in component Model (M). C RATES(16) is d/dt M2T2_star in component Model (um). C RATES(2) is d/dt M2C1 in component Model (M). C RATES(15) is d/dt MT1T2_star in component Model (um). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) CONSTS(1) = 5900000 CONSTS(2) = 6.3 CONSTS(3) = 33 CONSTS(4) = 0.00000002 CONSTS(5) = 2600 CONSTS(6) = 0.0021 CONSTS(7) = 0.0045 CONSTS(8) = 2980000 CONSTS(9) = 0.202 CONSTS(10) = 140000 CONSTS(11) = 0.0047 CONSTS(12) = 0.02 CONSTS(13) = 2800 CONSTS(14) = 0.00197 CONSTS(15) = 1000 CONSTS(16) = 1 CONSTS(17) = 3000 CONSTS(18) = 0.0009 STATES(1) = 0.0000000072 STATES(2) = 0.0000085 STATES(3) = 0.00000000139 STATES(4) = 0.00000000056 STATES(5) = 0.0000029 STATES(6) = 0 STATES(7) = 0 STATES(8) = 0 STATES(9) = 0 STATES(10) = 0 STATES(11) = 0 STATES(12) = 0 STATES(13) = 0 STATES(14) = 0 CONSTS(19) = 0 CONSTS(20) = 0 CONSTS(21) = 0 STATES(15) = 0 STATES(16) = 0 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(6) = (( - CONSTS(1)*STATES(6)*STATES(9)+ CONSTS(2)*STATES(1)) - CONSTS(5)*STATES(6)*STATES(11))+ (CONSTS(6)+CONSTS(7))*STATES(2)+ CONSTS(12)*STATES(4) RATES(7) = ((((((CONSTS(19) - CONSTS(13)*STATES(7)*STATES(7)) - CONSTS(8)*STATES(7)*STATES(9))+ CONSTS(9)*STATES(3)) - CONSTS(15)*STATES(7)*STATES(11))+ (CONSTS(16)+CONSTS(14))*STATES(5)) - CONSTS(17)*STATES(7)*STATES(14))+ CONSTS(18)*STATES(4)+ CONSTS(12)*STATES(4) RATES(13) = CONSTS(13)*STATES(7)*STATES(7) RATES(5) = CONSTS(15)*STATES(7)*STATES(11) - (CONSTS(16)+CONSTS(14))*STATES(5) RATES(3) = (( CONSTS(8)*STATES(7)*STATES(9) - CONSTS(9)*STATES(3)) - CONSTS(10)*STATES(3)*STATES(8))+ CONSTS(11)*STATES(14) RATES(14) = (( CONSTS(10)*STATES(3)*STATES(8) - CONSTS(11)*STATES(14)) - CONSTS(17)*STATES(7)*STATES(14))+ CONSTS(18)*STATES(4) RATES(4) = ( CONSTS(17)*STATES(7)*STATES(14) - CONSTS(18)*STATES(4)) - CONSTS(12)*STATES(4) RATES(11) = (( - CONSTS(15)*STATES(7)*STATES(11)+ CONSTS(16)*STATES(5)) - CONSTS(5)*STATES(6)*STATES(11))+ CONSTS(6)*STATES(2) RATES(10) = CONSTS(7)*STATES(2)+ CONSTS(14)*STATES(5) RATES(12) = CONSTS(13)*STATES(7)*STATES(7) RATES(9) = (( - CONSTS(1)*STATES(6)*STATES(9)+ CONSTS(2)*STATES(1)+CONSTS(20)) - CONSTS(8)*STATES(7)*STATES(9))+ CONSTS(9)*STATES(3) RATES(8) = (CONSTS(21) - CONSTS(10)*STATES(3)*STATES(8))+ CONSTS(11)*STATES(14) RATES(1) = (( CONSTS(1)*STATES(6)*STATES(9) - CONSTS(2)*STATES(1)) - CONSTS(3)*STATES(1))+ CONSTS(4)*STATES(16) RATES(16) = CONSTS(3)*STATES(1) - CONSTS(4)*STATES(16) RATES(2) = CONSTS(5)*STATES(6)*STATES(11) - (CONSTS(6)+CONSTS(7))*STATES(2) RATES(15) = CONSTS(12)*STATES(4) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END