C C There are a total of 9 entries in the algebraic variable array. C There are a total of 4 entries in each of the rate and state variable arrays. C There are a total of 16 entries in the constant variable array. C C C VOI is time in component environment (second). C STATES(1) is Ca_m in component Ca_m (micromolar). C ALGBRC(1) is J_min in component J_min (micromolar). C ALGBRC(2) is J_mout in component J_mout (micromolar). C CONSTS(1) is k_min in component J_min (micromolar). C STATES(2) is Ca_cyt in component Ca_cyt (micromolar). C CONSTS(2) is K_m in component J_min (micromolar). C CONSTS(3) is n in component J_min (micromolar). C CONSTS(4) is k_mout in component J_mout (micromolar). C ALGBRC(3) is J_ERch in component J_ERch (micromolar). C ALGBRC(4) is J_ERpump in component J_ERpump (micromolar). C ALGBRC(5) is J_ERleak in component J_ERleak (micromolar). C ALGBRC(7) is J_CaPr in component J_CaPr (micromolar). C ALGBRC(9) is J_Pr in component J_Pr (micromolar). C CONSTS(5) is rho_m in component Ca_cyt (dimensionless). C CONSTS(6) is beta_m in component Ca_cyt (dimensionless). C STATES(3) is Ca_tot in component Ca_tot (micromolar). C STATES(4) is Ca_ER in component Ca_ER (micromolar). C CONSTS(7) is rho_ER in component Ca_ER (dimensionless). C CONSTS(8) is beta_ER in component Ca_ER (dimensionless). C ALGBRC(6) is CaPr in component CaPr (micromolar). C CONSTS(9) is k_ERch in component J_ERch (micromolar). C CONSTS(10) is K_ch in component J_ERch (micromolar). C CONSTS(11) is k_ERpump in component J_ERpump (per_second). C CONSTS(12) is k_ERleak in component J_ERleak (per_second). C CONSTS(13) is k_min in component J_CaPr (per_second). C CONSTS(14) is k_plus in component J_Pr (per_micromolar_per_second). C ALGBRC(8) is Pr in component Pr (micromolar). C CONSTS(15) is Ca_tot in component CaPr (micromolar). C CONSTS(16) is Pr_tot in component Pr (micromolar). C RATES(1) is d/dt Ca_m in component Ca_m (micromolar). C RATES(2) is d/dt Ca_cyt in component Ca_cyt (micromolar). C RATES(3) is d/dt Ca_tot in component Ca_tot (micromolar). C RATES(4) is d/dt Ca_ER in component Ca_ER (micromolar). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 0.1 CONSTS(1) = 330 STATES(2) = 0.01 CONSTS(2) = 1.6 CONSTS(3) = 8 CONSTS(4) = 0.5 CONSTS(5) = 0.01 CONSTS(6) = 0.025 STATES(3) = 0.01 STATES(4) = 20 CONSTS(7) = 0.01 CONSTS(8) = 0.0025 CONSTS(9) = 0.001 CONSTS(10) = 5 CONSTS(11) = 20 CONSTS(12) = 0.05 CONSTS(13) = 0.01 CONSTS(14) = 0.1 CONSTS(15) = 90 CONSTS(16) = 120 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = ( CONSTS(1)*STATES(2) ** CONSTS(3))/(CONSTS(2) ** CONSTS(3)+STATES(2) ** CONSTS(3)) ALGBRC(2) = ( CONSTS(4)*STATES(1))/1.00000 RATES(1) = ALGBRC(1) - ALGBRC(2) ALGBRC(3) = (( CONSTS(9)*STATES(2) ** 2.00000)/(CONSTS(10) ** 2.00000+STATES(2) ** 2.00000))*(STATES(4) - STATES(2)) ALGBRC(4) = CONSTS(11)*STATES(2) ALGBRC(5) = CONSTS(12)*(STATES(4) - STATES(2)) RATES(4) = (CONSTS(8)/CONSTS(7))*((ALGBRC(4) - ALGBRC(5)) - ALGBRC(3))*1.00000 ALGBRC(6) = CONSTS(15) - (STATES(2)+ (CONSTS(7)/CONSTS(8))*STATES(4)) RATES(3) = STATES(2)+ (CONSTS(7)/CONSTS(8))*STATES(4)+ (CONSTS(5)/CONSTS(6))*STATES(1)+ALGBRC(6) ALGBRC(7) = CONSTS(13)*ALGBRC(6) ALGBRC(8) = CONSTS(16) - ALGBRC(6) ALGBRC(9) = CONSTS(14)*STATES(2)*ALGBRC(8) RATES(2) = ((((ALGBRC(3) - ALGBRC(4))+ALGBRC(5)+ALGBRC(7)) - ALGBRC(9))+ (CONSTS(5)/CONSTS(6))*(ALGBRC(2) - ALGBRC(1)))*1.00000 RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = ( CONSTS(1)*STATES(2) ** CONSTS(3))/(CONSTS(2) ** CONSTS(3)+STATES(2) ** CONSTS(3)) ALGBRC(2) = ( CONSTS(4)*STATES(1))/1.00000 ALGBRC(3) = (( CONSTS(9)*STATES(2) ** 2.00000)/(CONSTS(10) ** 2.00000+STATES(2) ** 2.00000))*(STATES(4) - STATES(2)) ALGBRC(4) = CONSTS(11)*STATES(2) ALGBRC(5) = CONSTS(12)*(STATES(4) - STATES(2)) ALGBRC(6) = CONSTS(15) - (STATES(2)+ (CONSTS(7)/CONSTS(8))*STATES(4)) ALGBRC(7) = CONSTS(13)*ALGBRC(6) ALGBRC(8) = CONSTS(16) - ALGBRC(6) ALGBRC(9) = CONSTS(14)*STATES(2)*ALGBRC(8) RETURN END