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