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 5 entries in the algebraic variable array. C There are a total of 1 entries in each of the rate and state variable arrays. C There are a total of 28 entries in the constant variable array. C C C VOI is time in component environment (second). C CONSTS(1) is k_p1 in component SERCA (second_order_rate_constant). C CONSTS(2) is k_p2 in component SERCA (first_order_rate_constant). C CONSTS(3) is k_p3 in component SERCA (first_order_rate_constant). C CONSTS(4) is k_m1 in component SERCA (first_order_rate_constant). C CONSTS(5) is k_m2 in component SERCA (second_order_rate_constant). C CONSTS(6) is k_m3 in component SERCA (second_order_rate_constant). C CONSTS(19) is kdatp in component SERCA (millimolar). C CONSTS(7) is kdcai in component SERCA (millimolar). C CONSTS(8) is kdcasr in component SERCA (millimolar). C CONSTS(9) is kdh1 in component SERCA (millimolar). C CONSTS(10) is kdhi in component SERCA (millimolar_squared). C CONSTS(11) is kdhsr in component SERCA (millimolar_squared). C CONSTS(12) is kdh in component SERCA (millimolar). C CONSTS(13) is n in component SERCA (dimensionless). C CONSTS(14) is Ca_i in component SERCA (millimolar). C CONSTS(15) is Ca_sr in component SERCA (millimolar). C CONSTS(16) is H_i in component SERCA (millimolar). C STATES(1) is ATP in component SERCA (millimolar). C CONSTS(17) is ADP in component SERCA (millimolar). C CONSTS(18) is P_i in component SERCA (millimolar). C ALGBRC(1) is T_ATP in component SERCA (dimensionless). C CONSTS(20) is T_Cai in component SERCA (dimensionless). C CONSTS(21) is T_Casr in component SERCA (dimensionless). C CONSTS(22) is T_H1 in component SERCA (dimensionless). C CONSTS(23) is T_Hi in component SERCA (dimensionless). C CONSTS(24) is T_Hsr in component SERCA (dimensionless). C CONSTS(25) is T_H in component SERCA (dimensionless). C ALGBRC(2) is a_p1 in component SERCA (first_order_rate_constant). C CONSTS(26) is a_p2 in component SERCA (first_order_rate_constant). C CONSTS(27) is a_m1 in component SERCA (first_order_rate_constant). C ALGBRC(3) is a_m2 in component SERCA (first_order_rate_constant). C ALGBRC(4) is s2 in component SERCA (first_order_rate_constant). C ALGBRC(5) is v_cycle in component SERCA (first_order_rate_constant). C RATES(1) is d/dt ATP in component SERCA (millimolar). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) CONSTS(1) = 25900 CONSTS(2) = 2540 CONSTS(3) = 20.5 CONSTS(4) = 2 CONSTS(5) = 67200 CONSTS(6) = 149 CONSTS(7) = 0.9 CONSTS(8) = 2.24 CONSTS(9) = 1.09e-5 CONSTS(10) = 3.54e-3 CONSTS(11) = 1.05e-8 CONSTS(12) = 7.24e-5 CONSTS(13) = 2 CONSTS(14) = 1e-3 CONSTS(15) = 1 CONSTS(16) = 1e-4 STATES(1) = 0.01 CONSTS(17) = 20e-3 CONSTS(18) = 1 CONSTS(19) = CONSTS(4)/CONSTS(1) CONSTS(20) = CONSTS(14)/CONSTS(7) CONSTS(27) = 0.100000 CONSTS(21) = CONSTS(15)/CONSTS(8) CONSTS(22) = CONSTS(16)/CONSTS(9) CONSTS(23) = CONSTS(16) ** CONSTS(13)/CONSTS(10) CONSTS(24) = CONSTS(16) ** CONSTS(13)/CONSTS(11) CONSTS(25) = CONSTS(16)/CONSTS(12) CONSTS(26) = ( CONSTS(3)*CONSTS(24))/( CONSTS(24)*(1.00000+CONSTS(25))+ CONSTS(25)*(1.00000+CONSTS(21) ** 2.00000)) CONSTS(27) = ( CONSTS(5)*CONSTS(17)*CONSTS(21) ** 2.00000*CONSTS(25))/( CONSTS(24)*(1.00000+CONSTS(25))+ CONSTS(25)*(1.00000+CONSTS(21) ** 2.00000)) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = CONSTS(27) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = STATES(1)/CONSTS(19) ALGBRC(2) = ( CONSTS(2)*ALGBRC(1)*CONSTS(20) ** 2.00000)/( ALGBRC(1)*CONSTS(20) ** 2.00000+ CONSTS(23)*(1.00000+ ALGBRC(1)*(1.00000+CONSTS(22)+CONSTS(20) ** 2.00000))) ALGBRC(3) = ( CONSTS(6)*CONSTS(18)*CONSTS(23))/( ALGBRC(1)*CONSTS(20) ** 2.00000+ CONSTS(23)*(1.00000+ ALGBRC(1)*(1.00000+CONSTS(22)+CONSTS(20) ** 2.00000))) ALGBRC(4) = ALGBRC(2)+CONSTS(26)+CONSTS(27)+ALGBRC(3) ALGBRC(5) = ( ALGBRC(2)*CONSTS(26) - CONSTS(27)*ALGBRC(3))/ALGBRC(4) RETURN END