C C There are a total of 4 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 10 entries in the constant variable array. C C C VOI is time in component environment (second). C ALGBRC(1) is F in component equations (force). C STATES(1) is R_on in component equations (dimensionless). C STATES(2) is A in component equations (dimensionless). C CONSTS(1) is alpha in component equations (dimensionless). C ALGBRC(2) is D in component equations (dimensionless). C ALGBRC(4) is k_XB in component equations (per_second). C CONSTS(2) is k_a in component equations (per_second). C STATES(3) is x in component equations (um). C CONSTS(3) is x_0 in component undefined_parameters (um). C CONSTS(4) is epsilon in component undefined_parameters (force_per_um). C CONSTS(5) is beta in component undefined_parameters (per_um). C CONSTS(6) is g in component undefined_parameters (per_second). C CONSTS(7) is f in component undefined_parameters (per_second). C CONSTS(8) is k_off in component undefined_parameters (per_second). C CONSTS(9) is k_on in component undefined_parameters (per_second). C STATES(4) is L in component parameters_stelzer_et_al (um). C CONSTS(10) is L_0 in component parameters_stelzer_et_al (um). C ALGBRC(3) is dL_dt in component parameters_stelzer_et_al (um_per_second). C RATES(1) is d/dt R_on in component equations (dimensionless). C RATES(2) is d/dt A in component equations (dimensionless). C RATES(3) is d/dt x in component equations (um). C RATES(4) is d/dt L in component parameters_stelzer_et_al (um). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 1 STATES(2) = 0 CONSTS(1) = 0.1 CONSTS(2) = 0 STATES(3) = 1 CONSTS(3) = 1 CONSTS(4) = 1 CONSTS(5) = 2 CONSTS(6) = 1 CONSTS(7) = 1 CONSTS(8) = 1 CONSTS(9) = 1 STATES(4) = 2.12 CONSTS(10) = 2.12 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(2) = 1.00000 - STATES(2) RATES(2) = CONSTS(7)*ALGBRC(2)*STATES(1) - CONSTS(6)*STATES(2) ALGBRC(3) = TERNRY(0.00100000.LT.VOI.AND.VOI.LE.0.00300000, 10.6000, 0.00000) RATES(3) = - CONSTS(6)*(STATES(3) - CONSTS(3))+ALGBRC(3) RATES(4) = ALGBRC(3) ALGBRC(4) = CONSTS(2)*STATES(2) RATES(1) = - ((CONSTS(8)+ALGBRC(4)+ CONSTS(1)*CONSTS(9))/(1.00000+CONSTS(1))+ CONSTS(7)*ALGBRC(2))*STATES(1)+ (CONSTS(6) - (ALGBRC(4)+ CONSTS(1)*CONSTS(9))/(1.00000+CONSTS(1)))*STATES(2)+ (ALGBRC(4)+( CONSTS(1)*CONSTS(9))/(1.00000+CONSTS(1)))*CONSTS(5)*(STATES(4) - CONSTS(10)) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(2) = 1.00000 - STATES(2) ALGBRC(3) = TERNRY(0.00100000.LT.VOI.AND.VOI.LE.0.00300000, 10.6000, 0.00000) ALGBRC(4) = CONSTS(2)*STATES(2) ALGBRC(1) = STATES(2)*CONSTS(4)*STATES(3) RETURN END REAL FUNCTION TERNRY(TEST, VALA, VALB) LOGICAL TEST REAL VALA, VALB IF (TEST) THEN TERNRY = VALA ELSE TERNRY = VALB ENDIF RETURN END