C C There are a total of 0 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 5 entries in the constant variable array. C C C VOI is time in component environment (minute). C CONSTS(1) is VVE in component stress_relaxation (litre). C STATES(1) is VV7 in component short_term_stress_relaxation (litre). C CONSTS(2) is SR in component parameter_values (dimensionless). C CONSTS(3) is SRK in component parameter_values (minute). C STATES(2) is VV6 in component long_term_stress_relaxation (litre). C CONSTS(4) is SR2 in component parameter_values (dimensionless). C CONSTS(5) is SRK2 in component parameter_values (minute). C RATES(1) is d/dt VV7 in component short_term_stress_relaxation (litre). C RATES(2) is d/dt VV6 in component long_term_stress_relaxation (litre). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) CONSTS(1) = 0.743224 STATES(1) = 0.00366525 CONSTS(2) = 1 CONSTS(3) = 5 STATES(2) = 0.0101913 CONSTS(4) = 1 CONSTS(5) = 10000 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = ( (CONSTS(1) - 0.740000)*CONSTS(2) - STATES(1))/CONSTS(3) RATES(2) = ( (CONSTS(1) - 0.740000)*CONSTS(4) - STATES(2))/CONSTS(5) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RETURN END