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 8 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 (minute).
C STATES(1) is Ca_m in component Ca_m (micromolar).
C ALGBRC(1) is J_min in component J_min (micromolar).
C ALGBRC(2) is J_mout in component J_mout (micromolar).
C CONSTS(1) is k_min in component J_min (micromolar).
C STATES(2) is Ca_cyt in component Ca_cyt (micromolar).
C CONSTS(2) is K_m in component J_min (micromolar).
C CONSTS(3) is n in component J_min (micromolar).
C CONSTS(4) is k_mout in component J_mout (micromolar).
C STATES(3) is J_ERch in component J_ERch (micromolar).
C STATES(4) is J_ERpump in component J_ERpump (micromolar).
C STATES(5) is J_ERleak in component J_ERleak (micromolar).
C STATES(6) is J_in in component J_in (micromolar).
C STATES(7) is J_out in component J_out (micromolar).
C STATES(8) is Ca_ER in component Ca_ER (micromolar).
C CONSTS(5) is beta in component J_ERch (dimensionless).
C CONSTS(6) is k_0ch in component J_ERch (micromolar_per_minute).
C CONSTS(7) is K_chcyt in component J_ERch (micromolar).
C CONSTS(8) is K_chER in component J_ERch (micromolar).
C CONSTS(9) is K_ERpump in component J_ERpump (micromolar).
C CONSTS(10) is K_pump in component J_ERpump (micromolar).
C CONSTS(11) is K_ERleak in component J_ERleak (per_minute).
C CONSTS(12) is K_0in in component J_in (micromolar_per_minute).
C CONSTS(13) is K_out in component J_out (per_minute).
C RATES(1) is d/dt Ca_m in component Ca_m (micromolar).
C RATES(2) is d/dt Ca_cyt in component Ca_cyt (micromolar).
C RATES(8) is d/dt Ca_ER in component Ca_ER (micromolar).
C RATES(3) is d/dt J_ERch in component J_ERch (micromolar).
C RATES(4) is d/dt J_ERpump in component J_ERpump (micromolar).
C RATES(5) is d/dt J_ERleak in component J_ERleak (micromolar).
C RATES(6) is d/dt J_in in component J_in (micromolar).
C RATES(7) is d/dt J_out in component J_out (micromolar).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 0.1
CONSTS(1) = 330
STATES(2) = 0.01
CONSTS(2) = 1.6
CONSTS(3) = 8
CONSTS(4) = 0.5
STATES(3) = 0.1
STATES(4) = 0.1
STATES(5) = 0.1
STATES(6) = 0.1
STATES(7) = 0.1
STATES(8) = 20
CONSTS(5) = 1.7
CONSTS(6) = 325
CONSTS(7) = 0.45
CONSTS(8) = 1
CONSTS(9) = 25
CONSTS(10) = 0.5
CONSTS(11) = 1
CONSTS(12) = 1.7
CONSTS(13) = 10
CONSTS(13) = CONSTS(12)*1.00000
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(6) = CONSTS(13)
RATES(8) = ((STATES(4) - STATES(5)) - STATES(3))*1.00000
RATES(3) = CONSTS(5)*CONSTS(6)*( (STATES(2) ** 4.00000/(CONSTS(7) ** 4.00000+STATES(2) ** 4.00000))*(STATES(8) ** 2.00000/(CONSTS(8) ** 2.00000+STATES(8) ** 2.00000)))*1.00000
RATES(4) = CONSTS(9)*(STATES(2) ** 2.00000/(CONSTS(10) ** 2.00000+STATES(2) ** 2.00000))
RATES(5) = (( CONSTS(11)*STATES(8))/1.00000)*1.00000
RATES(7) = (( CONSTS(13)*STATES(2))/1.00000)*1.00000
ALGBRC(1) = ( CONSTS(1)*STATES(2) ** CONSTS(3))/(CONSTS(2) ** CONSTS(3)+STATES(2) ** CONSTS(3))
ALGBRC(2) = ( CONSTS(4)*STATES(1))/1.00000
RATES(1) = ALGBRC(1) - ALGBRC(2)
RATES(2) = (((((STATES(3) - STATES(4))+STATES(5)+STATES(6)) - STATES(7))+ALGBRC(2)) - ALGBRC(1))*1.00000
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = ( CONSTS(1)*STATES(2) ** CONSTS(3))/(CONSTS(2) ** CONSTS(3)+STATES(2) ** CONSTS(3))
ALGBRC(2) = ( CONSTS(4)*STATES(1))/1.00000
RETURN
END
