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 5 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 12 entries in the constant variable array. C C C VOI is time in component environment (second). C ALGBRC(1) is H_int in component concentrations (mM). C ALGBRC(2) is H_ext in component concentrations (mM). C CONSTS(1) is psi_int in component concentrations (volt). C CONSTS(2) is psi_ext in component concentrations (volt). C CONSTS(10) is psi in component concentrations (volt). C STATES(1) is pH_int in component concentrations (dimensionless). C STATES(2) is pH_ext in component concentrations (dimensionless). C CONSTS(3) is J_Vtype_H_Max in component H_ATPase (mM_per_s). C ALGBRC(4) is J_Vtype_H in component H_ATPase (mM_per_s). C ALGBRC(5) is plot in component fluxes (dimensionless). C ALGBRC(3) is mu_H in component H_ATPase (joule_per_mmole). C CONSTS(4) is mu_0 in component H_ATPase (joule_per_mmole). C CONSTS(5) is xi in component H_ATPase (mmole_per_joule). C CONSTS(6) is F in component H_ATPase (coulomb_per_mmole). C CONSTS(7) is R in component H_ATPase (joule_per_mmole_kelvin). C CONSTS(8) is T in component H_ATPase (kelvin). C CONSTS(9) is z in component H_ATPase (dimensionless). C RATES(1) is d/dt pH_int in component concentrations (dimensionless). C RATES(2) is d/dt pH_ext in component concentrations (dimensionless). C SUBROUTINE initConsts(CONSTS, RATES, STATES) REAL CONSTS(*), RATES(*), STATES(*) CONSTS(1) = -0.03 CONSTS(2) = 0.0 STATES(1) = 7.5 STATES(2) = 4.0 CONSTS(3) = 1.8 CONSTS(4) = 4.0 CONSTS(5) = 0.4 CONSTS(6) = 96.5 CONSTS(7) = 0.008315 CONSTS(8) = 300 CONSTS(9) = -1.57 CONSTS(10) = CONSTS(2) - CONSTS(1) CONSTS(10) = 0.00000 CONSTS(11) = 0.100000 RETURN END SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) RATES(1) = CONSTS(10) RATES(2) = CONSTS(11) RETURN END SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC) REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*) ALGBRC(1) = 1000.00*10.0000 ** - STATES(1) ALGBRC(2) = 1000.00*10.0000 ** - STATES(2) ALGBRC(3) = CONSTS(7)*CONSTS(8)*log(ALGBRC(2)/ALGBRC(1))+ CONSTS(9)*CONSTS(6)*CONSTS(10) ALGBRC(4) = CONSTS(3)/(1.00000+EXP( CONSTS(5)*(ALGBRC(3) - CONSTS(4)))) ALGBRC(5) = ALGBRC(4)/CONSTS(3) RETURN END