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 3 entries in the algebraic variable array.
C There are a total of 1 entries in each of the rate and state variable arrays.
C There are a total of 9 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is Na_int in component concentrations (mM).
C CONSTS(1) is Na_ext in component concentrations (mM).
C CONSTS(2) is K_int in component concentrations (mM).
C CONSTS(3) is K_ext in component concentrations (mM).
C CONSTS(4) is NH4_ext in component concentrations (mM).
C ALGBRC(1) is J_NaK_Na in component NaK (mM_per_s).
C ALGBRC(2) is J_NaK_K in component NaK (mM_per_s).
C ALGBRC(3) is J_NaK_NH4 in component NaK (mM_per_s).
C CONSTS(6) is K_Na in component NaK (mM).
C CONSTS(7) is K_K in component NaK (mM).
C CONSTS(8) is K_NH4 in component NaK (mM).
C CONSTS(5) is J_NaK_Na_Max in component NaK (mM_per_s).
C RATES(1) is d/dt Na_int in component concentrations (mM).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 0.0
CONSTS(1) = 0.0
CONSTS(2) = 39.0
CONSTS(3) = 10.0
CONSTS(4) = 0.0
CONSTS(5) = 10.8
CONSTS(6) = 0.200000*(1.00000+CONSTS(2)/8.33000)
CONSTS(7) = 0.100000*(1.00000+CONSTS(1)/18.5000)
CONSTS(8) = 1.00000
CONSTS(8) = 0.200000*CONSTS(7)
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = CONSTS(8)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = CONSTS(5)*STATES(1)/(STATES(1)+CONSTS(6)) ** 3.00000*CONSTS(3)/(CONSTS(3)+CONSTS(7)) ** 2.00000
ALGBRC(2) = ( (- 2.00000/3.00000)*ALGBRC(1))/(1.00000+( CONSTS(4)*CONSTS(7))/( CONSTS(3)*CONSTS(8)))
ALGBRC(3) = ALGBRC(2)*CONSTS(4)/CONSTS(8) ** 1.00000*CONSTS(7)/CONSTS(3) ** 1.00000
RETURN
END
