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 18 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 14 entries in the constant variable array. C C C VOI is time in component environment (second). C STATES(1) is HCO3_int in component concentrations (mM). C STATES(2) is HCO3_ext in component concentrations (mM). C STATES(3) is Cl_int in component concentrations (mM). C STATES(4) is Cl_ext in component concentrations (mM). C ALGBRC(13) is J_AE1_HCO3 in component AE1 (mM_per_s). C ALGBRC(18) is J_AE1_Cl in component AE1 (mM_per_s). C ALGBRC(14) is J_HCO3_influx in component AE1 (mM_per_s). C ALGBRC(15) is J_Cl_influx in component AE1 (mM_per_s). C CONSTS(1) is K_HCO3_ext in component AE1 (mM). C CONSTS(2) is K_HCO3_int in component AE1 (mM). C CONSTS(3) is K_Cl_ext in component AE1 (mM). C CONSTS(4) is K_Cl_int in component AE1 (mM). C CONSTS(5) is P_HCO3_ext in component AE1 (per_s). C CONSTS(6) is P_HCO3_int in component AE1 (per_s). C CONSTS(7) is P_Cl_ext in component AE1 (per_s). C CONSTS(8) is P_Cl_int in component AE1 (per_s). C ALGBRC(2) is beta_ext in component AE1 (dimensionless). C ALGBRC(9) is beta_int in component AE1 (dimensionless). C ALGBRC(10) is gamma_ext in component AE1 (dimensionless). C ALGBRC(11) is gamma_int in component AE1 (dimensionless). C ALGBRC(12) is sigma in component AE1 (per_s). C CONSTS(9) is x_Tmax in component AE1 (mM). C CONSTS(10) is K_I in component AE1 (mM). C ALGBRC(1) is x_T in component AE1 (mM). C ALGBRC(16) is x_ext in component AE1 (mM). C ALGBRC(17) is x_int in component AE1 (mM). C ALGBRC(3) is Jo_bm in component AE1 (mM_per_s). C ALGBRC(4) is Ji_bm in component AE1 (mM_per_s). C ALGBRC(5) is Js_bm in component AE1 (mM_per_s). C ALGBRC(6) is Jo_cm in component AE1 (mM_per_s). C ALGBRC(7) is Ji_cm in component AE1 (mM_per_s). C ALGBRC(8) is Js_cm in component AE1 (mM_per_s). C RATES(1) is d/dt HCO3_int in component concentrations (mM). C RATES(2) is d/dt HCO3_ext in component concentrations (mM). C RATES(3) is d/dt Cl_int in component concentrations (mM). C RATES(4) is d/dt Cl_ext in component concentrations (mM). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) STATES(1) = 26.0 STATES(2) = 26.0 STATES(3) = 1.0 STATES(4) = 114.0 CONSTS(1) = 198 CONSTS(2) = 198 CONSTS(3) = 50 CONSTS(4) = 50 CONSTS(5) = 1247 CONSTS(6) = 135 CONSTS(7) = 562 CONSTS(8) = 61 CONSTS(9) = 1 CONSTS(10) = 172 CONSTS(10) = 0.00000 CONSTS(11) = 0.00000 CONSTS(12) = 1.00000 CONSTS(13) = 0.00000 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = CONSTS(10) RATES(2) = CONSTS(11) RATES(3) = CONSTS(12) RATES(4) = CONSTS(13) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = CONSTS(9)/(1.00000+STATES(1)/CONSTS(10)) ALGBRC(2) = STATES(2)/CONSTS(1) ALGBRC(3) = (1.00000/ALGBRC(1))*(1.00000/CONSTS(5)+1.00000/CONSTS(6)+CONSTS(2)/( CONSTS(6)*STATES(1))) ** - 1.00000 ALGBRC(4) = (1.00000/ALGBRC(1))*(1.00000/CONSTS(5)+1.00000/CONSTS(6)+CONSTS(1)/( CONSTS(5)*STATES(2))) ** - 1.00000 ALGBRC(5) = (1.00000/ALGBRC(1))*(1.00000/CONSTS(5)+1.00000/CONSTS(6)) ** - 1.00000 ALGBRC(6) = (1.00000/ALGBRC(1))*(1.00000/CONSTS(7)+1.00000/CONSTS(8)+CONSTS(4)/( CONSTS(8)*STATES(3))) ** - 1.00000 ALGBRC(7) = (1.00000/ALGBRC(1))*(1.00000/CONSTS(7)+1.00000/CONSTS(8)+CONSTS(3)/( CONSTS(7)*STATES(4))) ** - 1.00000 ALGBRC(8) = (1.00000/ALGBRC(1))*(1.00000/CONSTS(7)+1.00000/CONSTS(8)) ** - 1.00000 ALGBRC(9) = STATES(1)/CONSTS(2) ALGBRC(10) = STATES(4)/CONSTS(3) ALGBRC(11) = STATES(3)/CONSTS(4) ALGBRC(12) = (1.00000+ALGBRC(2)+ALGBRC(10))*( CONSTS(6)*ALGBRC(9)+ CONSTS(8)*ALGBRC(11))+ (1.00000+ALGBRC(9)+ALGBRC(11))*( CONSTS(5)*ALGBRC(2)+ CONSTS(7)*ALGBRC(10)) ALGBRC(13) = (ALGBRC(1)/ALGBRC(12))*( CONSTS(6)*ALGBRC(9)*CONSTS(7)*ALGBRC(10) - CONSTS(5)*ALGBRC(2)*CONSTS(8)*ALGBRC(11)) ALGBRC(14) = (ALGBRC(1)/ALGBRC(12))*CONSTS(5)*ALGBRC(2)*( CONSTS(6)*ALGBRC(9)+ CONSTS(8)*ALGBRC(11)) ALGBRC(15) = (ALGBRC(1)/ALGBRC(12))*CONSTS(7)*ALGBRC(10)*( CONSTS(6)*ALGBRC(9)+ CONSTS(8)*ALGBRC(11)) ALGBRC(16) = ( ALGBRC(1)*( CONSTS(6)*ALGBRC(9)+ CONSTS(8)*ALGBRC(11)))/ALGBRC(12) ALGBRC(17) = ( ALGBRC(1)*( CONSTS(5)*ALGBRC(2)+ CONSTS(7)*ALGBRC(10)))/ALGBRC(12) ALGBRC(18) = - ALGBRC(13) RETURN END