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 15 entries in each of the rate and state variable arrays.
C There are a total of 21 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is Arg in component Arg (micromolar).
C ALGBRC(1) is S in component Arg (flux).
C STATES(2) is Fe3 in component Fe3 (micromolar).
C STATES(3) is Fe3_Arg in component Fe3_Arg (micromolar).
C STATES(4) is Fe2_Arg in component Fe2_Arg (micromolar).
C STATES(5) is Fe2 in component Fe2 (micromolar).
C CONSTS(1) is k1 in component model_constants (second_order_rate_constant).
C CONSTS(2) is k_1 in component model_constants (first_order_rate_constant).
C CONSTS(3) is k4 in component model_constants (second_order_rate_constant).
C CONSTS(4) is k_4 in component model_constants (first_order_rate_constant).
C STATES(6) is Fe3_NO in component Fe3_NO (micromolar).
C STATES(7) is Fe2_NO in component Fe2_NO (micromolar).
C CONSTS(5) is O2 in component model_constants (micromolar).
C STATES(8) is Fe3_NOHA in component Fe3_NOHA (micromolar).
C STATES(9) is NOHA in component NOHA (micromolar).
C CONSTS(6) is k2 in component model_constants (first_order_rate_constant).
C CONSTS(7) is k13 in component model_constants (second_order_rate_constant).
C CONSTS(8) is k14 in component model_constants (first_order_rate_constant).
C CONSTS(9) is k8 in component model_constants (first_order_rate_constant).
C CONSTS(10) is k_8 in component model_constants (second_order_rate_constant).
C CONSTS(11) is k3 in component model_constants (first_order_rate_constant).
C STATES(10) is Fe2_NOHA in component Fe2_NOHA (micromolar).
C CONSTS(12) is k9 in component model_constants (first_order_rate_constant).
C CONSTS(13) is k_9 in component model_constants (second_order_rate_constant).
C STATES(11) is Fe3_O2_Arg in component Fe3_O2_Arg (micromolar).
C CONSTS(14) is k5 in component model_constants (second_order_rate_constant).
C CONSTS(15) is k_5 in component model_constants (first_order_rate_constant).
C CONSTS(16) is k6 in component model_constants (first_order_rate_constant).
C CONSTS(17) is k7 in component model_constants (first_order_rate_constant).
C STATES(12) is Fe3_O2_NOHA in component Fe3_O2_NOHA (micromolar).
C CONSTS(18) is k_10 in component model_constants (first_order_rate_constant).
C CONSTS(19) is k10 in component model_constants (second_order_rate_constant).
C CONSTS(20) is k11 in component model_constants (first_order_rate_constant).
C CONSTS(21) is k12 in component model_constants (first_order_rate_constant).
C STATES(13) is NO in component NO (micromolar).
C ALGBRC(2) is dNOdt in component NO (flux).
C STATES(14) is citrulline in component citrulline (micromolar).
C STATES(15) is NO3 in component NO3 (micromolar).
C RATES(1) is d/dt Arg in component Arg (micromolar).
C RATES(2) is d/dt Fe3 in component Fe3 (micromolar).
C RATES(3) is d/dt Fe3_Arg in component Fe3_Arg (micromolar).
C RATES(5) is d/dt Fe2 in component Fe2 (micromolar).
C RATES(4) is d/dt Fe2_Arg in component Fe2_Arg (micromolar).
C RATES(11) is d/dt Fe3_O2_Arg in component Fe3_O2_Arg (micromolar).
C RATES(8) is d/dt Fe3_NOHA in component Fe3_NOHA (micromolar).
C RATES(10) is d/dt Fe2_NOHA in component Fe2_NOHA (micromolar).
C RATES(12) is d/dt Fe3_O2_NOHA in component Fe3_O2_NOHA (micromolar).
C RATES(6) is d/dt Fe3_NO in component Fe3_NO (micromolar).
C RATES(7) is d/dt Fe2_NO in component Fe2_NO (micromolar).
C RATES(13) is d/dt NO in component NO (micromolar).
C RATES(14) is d/dt citrulline in component citrulline (micromolar).
C RATES(15) is d/dt NO3 in component NO3 (micromolar).
C RATES(9) is d/dt NOHA in component NOHA (micromolar).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 100.0
STATES(2) = 0.045
STATES(3) = 0.0
STATES(4) = 0.0
STATES(5) = 0.0
CONSTS(1) = 0.1
CONSTS(2) = 0.1
CONSTS(3) = 1.89
CONSTS(4) = 11.4
STATES(6) = 0.0
STATES(7) = 0.0
CONSTS(5) = 172.0
STATES(8) = 0.0
STATES(9) = 0.0
CONSTS(6) = 0.91
CONSTS(7) = 0.033
CONSTS(8) = 53.9
CONSTS(9) = 0.1
CONSTS(10) = 0.1
CONSTS(11) = 0.91
STATES(10) = 0.0
CONSTS(12) = 11.4
CONSTS(13) = 1.89
STATES(11) = 0.0
CONSTS(14) = 2.58
CONSTS(15) = 98.0
CONSTS(16) = 12.6
CONSTS(17) = 0.91
STATES(12) = 0.0
CONSTS(18) = 89.9
CONSTS(19) = 3.33
CONSTS(20) = 29.4
CONSTS(21) = 0.91
STATES(13) = 0.0
STATES(14) = 0.0
STATES(15) = 0.0
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(2) = ( CONSTS(2)*STATES(3)+ CONSTS(8)*STATES(6)+ CONSTS(7)*STATES(7)*CONSTS(5)+ CONSTS(9)*STATES(8)) - ( CONSTS(1)*STATES(1)*STATES(2)+ CONSTS(6)*STATES(2)+ CONSTS(10)*STATES(9)*STATES(2))
RATES(3) = CONSTS(1)*STATES(2)*STATES(1) - ( CONSTS(2)*STATES(3)+ CONSTS(11)*STATES(3))
RATES(5) = ( CONSTS(6)*STATES(2)+ CONSTS(4)*STATES(4)+ CONSTS(12)*STATES(10)) - ( CONSTS(3)*STATES(5)*STATES(1)+ CONSTS(13)*STATES(5)*STATES(9))
RATES(4) = ( CONSTS(11)*STATES(3)+ CONSTS(15)*STATES(11)+ CONSTS(3)*STATES(5)*STATES(1)) - ( CONSTS(14)*STATES(4)*CONSTS(5)+ CONSTS(4)*STATES(4))
RATES(11) = CONSTS(14)*STATES(4)*CONSTS(5) - ( CONSTS(16)*STATES(11)+ CONSTS(15)*STATES(11))
RATES(8) = ( CONSTS(16)*STATES(11)+ CONSTS(10)*STATES(2)*STATES(9)) - ( CONSTS(17)*STATES(8)+ CONSTS(9)*STATES(8))
RATES(10) = ( CONSTS(17)*STATES(8)+ CONSTS(18)*STATES(12)+ CONSTS(13)*STATES(5)*STATES(9)) - ( CONSTS(12)*STATES(10)+ CONSTS(19)*STATES(10)*CONSTS(5))
RATES(12) = CONSTS(19)*STATES(10)*CONSTS(5) - ( CONSTS(20)*STATES(12)+ CONSTS(18)*STATES(12))
RATES(6) = CONSTS(20)*STATES(12) - ( CONSTS(8)*STATES(6)+ CONSTS(21)*STATES(6))
RATES(7) = CONSTS(21)*STATES(6) - CONSTS(7)*STATES(7)*CONSTS(5)
RATES(13) = CONSTS(8)*STATES(6)
RATES(14) = CONSTS(20)*STATES(12)
RATES(15) = CONSTS(7)*STATES(7)*CONSTS(5)
RATES(9) = ( CONSTS(9)*STATES(8)+ CONSTS(12)*STATES(10)) - ( CONSTS(10)*STATES(2)*STATES(9)+ CONSTS(13)*STATES(5)*STATES(9))
ALGBRC(1) = ( CONSTS(1)*STATES(1)*STATES(2)+ CONSTS(3)*STATES(1)*STATES(5)) - ( CONSTS(2)*STATES(3)+ CONSTS(4)*STATES(4))
RATES(1) = ( CONSTS(2)*STATES(3)+ CONSTS(4)*STATES(4)+ALGBRC(1)) - ( CONSTS(1)*STATES(1)*STATES(2)+ CONSTS(3)*STATES(1)*STATES(5))
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = ( CONSTS(1)*STATES(1)*STATES(2)+ CONSTS(3)*STATES(1)*STATES(5)) - ( CONSTS(2)*STATES(3)+ CONSTS(4)*STATES(4))
ALGBRC(2) = CONSTS(8)*STATES(6)
RETURN
END
