C C There are a total of 6 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 29 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(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 STATES(1) is Ca_sr in component SERCA (millimolar). C CONSTS(15) is H_i in component SERCA (millimolar). C CONSTS(16) 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 CONSTS(19) is T_Cai in component SERCA (dimensionless). C ALGBRC(1) is T_Casr in component SERCA (dimensionless). C CONSTS(20) is T_H1 in component SERCA (dimensionless). C CONSTS(21) is T_Hi in component SERCA (dimensionless). C CONSTS(22) is T_Hsr in component SERCA (dimensionless). C CONSTS(23) is T_H in component SERCA (dimensionless). C CONSTS(24) is a_p1 in component SERCA (first_order_rate_constant). C CONSTS(25) is a_p2 in component SERCA (first_order_rate_constant). C ALGBRC(2) is a_p3 in component SERCA (first_order_rate_constant). C CONSTS(26) is a_m1 in component SERCA (first_order_rate_constant). C ALGBRC(3) is a_m2 in component SERCA (first_order_rate_constant). C CONSTS(27) is a_m3 in component SERCA (first_order_rate_constant). C ALGBRC(4) is s1 in component SERCA (per_second_squared). C ALGBRC(5) is s2 in component SERCA (per_second_squared). C CONSTS(28) is s3 in component SERCA (per_second_squared). C ALGBRC(6) is v_cycle in component SERCA (first_order_rate_constant). C RATES(1) is d/dt Ca_sr 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) = 16 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) = 150e-6 STATES(1) = 0 CONSTS(15) = 1e-4 CONSTS(16) = 5 CONSTS(17) = 36.3e-3 CONSTS(18) = 1 CONSTS(19) = CONSTS(14)/CONSTS(7) CONSTS(28) = 1.00000 CONSTS(20) = CONSTS(15)/CONSTS(9) CONSTS(21) = CONSTS(15) ** CONSTS(13)/CONSTS(10) CONSTS(22) = CONSTS(15) ** CONSTS(13)/CONSTS(11) CONSTS(23) = CONSTS(15)/CONSTS(12) CONSTS(24) = CONSTS(1)*CONSTS(16) CONSTS(25) = ( CONSTS(2)*CONSTS(19) ** 2.00000)/(CONSTS(19) ** 2.00000+ CONSTS(19) ** 2.00000*CONSTS(21)+ CONSTS(21)*(1.00000+CONSTS(20))) CONSTS(26) = ( CONSTS(4)*CONSTS(21))/(CONSTS(19) ** 2.00000+ CONSTS(19) ** 2.00000*CONSTS(21)+ CONSTS(21)*(1.00000+CONSTS(20))) CONSTS(27) = CONSTS(6)*CONSTS(18) CONSTS(28) = CONSTS(24)*CONSTS(25)+ CONSTS(27)*CONSTS(26)+ CONSTS(27)*CONSTS(25) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = CONSTS(28) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = STATES(1)/CONSTS(8) ALGBRC(2) = ( CONSTS(3)*CONSTS(22))/( ALGBRC(1) ** 2.00000*CONSTS(23)+CONSTS(23)+ CONSTS(22)*(1.00000+CONSTS(23))) ALGBRC(3) = ( CONSTS(5)*CONSTS(17)*ALGBRC(1) ** 2.00000*CONSTS(23))/( ALGBRC(1) ** 2.00000*CONSTS(23)+CONSTS(23)+ CONSTS(22)*(1.00000+CONSTS(23))) ALGBRC(4) = CONSTS(25)*ALGBRC(2)+ CONSTS(26)*ALGBRC(2)+ CONSTS(26)*ALGBRC(3) ALGBRC(5) = CONSTS(24)*ALGBRC(2)+ ALGBRC(3)*CONSTS(24)+ ALGBRC(3)*CONSTS(27) ALGBRC(6) = ( CONSTS(24)*CONSTS(25)*ALGBRC(2) - CONSTS(26)*ALGBRC(3)*CONSTS(27))/(ALGBRC(4)+ALGBRC(5)+CONSTS(28)) RETURN END