Generated Code
The following is f77 code generated by the CellML API from this CellML file. (Back to language selection)
The raw code is available.
C C There are a total of 2 entries in the algebraic variable array. C There are a total of 3 entries in each of the rate and state variable arrays. C There are a total of 18 entries in the constant variable array. C C C VOI is time in component environment (min). C STATES(1) is Z in component Ca (uM). C STATES(2) is Y in component Ca (uM). C CONSTS(18) is V_in in component V_in (uM_per_min). C ALGBRC(1) is V_2 in component V_2 (uM_per_min). C ALGBRC(2) is V_3 in component V_3 (uM_per_min). C CONSTS(1) is K_f in component Ca (per_min). C CONSTS(2) is K in component Ca (per_min). C CONSTS(3) is beta in component Ca_flux (dimensionless). C CONSTS(4) is v_0 in component V_in (uM_per_min). C CONSTS(5) is v_1 in component V_in (uM_per_min). C CONSTS(6) is V_M2 in component V_2 (uM_per_min). C CONSTS(7) is K_2 in component V_2 (uM). C STATES(3) is A in component A (uM). C CONSTS(8) is K_y in component V_3 (uM). C CONSTS(9) is K_z in component V_3 (uM). C CONSTS(10) is K_a in component V_3 (uM). C CONSTS(11) is V_M3 in component V_3 (uM_per_min). C CONSTS(12) is upsilon_p in component A (uM_per_min). C CONSTS(13) is upsilon_d in component A (uM_per_min). C CONSTS(14) is K_p in component A (uM). C CONSTS(15) is K_d in component A (uM). C CONSTS(16) is n in component A (dimensionless). C CONSTS(17) is epsilon in component A (per_min). C RATES(1) is d/dt Z in component Ca (uM). C RATES(2) is d/dt Y in component Ca (uM). C RATES(3) is d/dt A in component A (uM). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 0.1 STATES(2) = 1.0 CONSTS(1) = 1 CONSTS(2) = 10 CONSTS(3) = 0.5 CONSTS(4) = 2 CONSTS(5) = 1 CONSTS(6) = 6.5 CONSTS(7) = 0.1 STATES(3) = 0.5 CONSTS(8) = 0.2 CONSTS(9) = 0.3 CONSTS(10) = 0.2 CONSTS(11) = 19.5 CONSTS(12) = 2.5 CONSTS(13) = 80 CONSTS(14) = 1 CONSTS(15) = 0.4 CONSTS(16) = 4 CONSTS(17) = 0.1 CONSTS(18) = CONSTS(4)+ CONSTS(5)*CONSTS(3) RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(3) = ( CONSTS(3)*CONSTS(12) - CONSTS(13)*(STATES(3) ** 2.00000/(CONSTS(14) ** 2.00000+STATES(3) ** 2.00000))*(STATES(1) ** CONSTS(16)/(CONSTS(15) ** CONSTS(16)+STATES(1) ** CONSTS(16)))) - CONSTS(17)*STATES(3) ALGBRC(1) = CONSTS(6)*(STATES(1) ** 2.00000/(CONSTS(7) ** 2.00000+STATES(1) ** 2.00000)) ALGBRC(2) = CONSTS(11)*(STATES(3) ** 4.00000/(CONSTS(10) ** 4.00000+STATES(3) ** 4.00000))*(STATES(2) ** 2.00000/(CONSTS(8) ** 2.00000+STATES(2) ** 2.00000))*(STATES(1) ** 4.00000/(CONSTS(9) ** 4.00000+STATES(1) ** 4.00000)) RATES(1) = (CONSTS(18) - ALGBRC(1))+ALGBRC(2)+( CONSTS(1)*STATES(2) - CONSTS(2)*STATES(1)) RATES(2) = (ALGBRC(1) - ALGBRC(2)) - CONSTS(1)*STATES(2) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = CONSTS(6)*(STATES(1) ** 2.00000/(CONSTS(7) ** 2.00000+STATES(1) ** 2.00000)) ALGBRC(2) = CONSTS(11)*(STATES(3) ** 4.00000/(CONSTS(10) ** 4.00000+STATES(3) ** 4.00000))*(STATES(2) ** 2.00000/(CONSTS(8) ** 2.00000+STATES(2) ** 2.00000))*(STATES(1) ** 4.00000/(CONSTS(9) ** 4.00000+STATES(1) ** 4.00000)) RETURN END