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 4 entries in each of the rate and state variable arrays.
C There are a total of 23 entries in the constant variable array.
C
C
C VOI is time in component environment (minute).
C STATES(1) is RA in component RA (nanomolar).
C CONSTS(22) is v_s1 in component v_s1 (flux).
C CONSTS(1) is k_d1 in component model_parameters (second_order_rate_constant).
C CONSTS(2) is C in component RA (nanomolar).
C CONSTS(3) is k_d5 in component RA (first_order_rate_constant).
C STATES(2) is M_C in component M_C (nanomolar).
C CONSTS(4) is V_0 in component M_C (flux).
C CONSTS(5) is V_sC in component M_C (flux).
C STATES(3) is F in component F (nanomolar).
C CONSTS(6) is n in component M_C (dimensionless).
C CONSTS(7) is K_A in component M_C (nanomolar).
C CONSTS(8) is k_d3 in component model_parameters (first_order_rate_constant).
C STATES(4) is C in component C (nanomolar).
C CONSTS(9) is k_s2 in component model_parameters (first_order_rate_constant).
C CONSTS(10) is k_d2 in component model_parameters (first_order_rate_constant).
C CONSTS(11) is k_s3 in component model_parameters (first_order_rate_constant).
C CONSTS(23) is M_F in component M_F (nanomolar).
C CONSTS(12) is m in component F (dimensionless).
C CONSTS(13) is K_I in component F (nanomolar).
C CONSTS(14) is k_d4 in component model_parameters (first_order_rate_constant).
C CONSTS(15) is k_s1 in component model_parameters (first_order_rate_constant).
C CONSTS(16) is RALDH2_0 in component model_parameters (nanomolar).
C CONSTS(17) is x in component model_parameters (dimensionless).
C CONSTS(18) is L in component model_parameters (dimensionless).
C CONSTS(19) is M_0 in component model_parameters (nanomolar).
C ALGBRC(1) is alpha_1 in component alpha_1 (dimensionless).
C CONSTS(20) is K_r1 in component model_parameters (nanomolar).
C ALGBRC(2) is alpha_2 in component alpha_2 (dimensionless).
C CONSTS(21) is K_r2 in component model_parameters (nanomolar).
C ALGBRC(3) is rho in component rho (dimensionless).
C RATES(1) is d/dt RA in component RA (nanomolar).
C RATES(2) is d/dt M_C in component M_C (nanomolar).
C RATES(4) is d/dt C in component C (nanomolar).
C RATES(3) is d/dt F in component F (nanomolar).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 0.1
CONSTS(1) = 1
CONSTS(2) = 0.1
CONSTS(3) = 0
STATES(2) = 0.1
CONSTS(4) = 0.365
CONSTS(5) = 7.1
STATES(3) = 0.0001
CONSTS(6) = 2
CONSTS(7) = 0.2
CONSTS(8) = 1
STATES(4) = 0.1
CONSTS(9) = 1
CONSTS(10) = 0.28
CONSTS(11) = 1
CONSTS(12) = 2
CONSTS(13) = 0.2
CONSTS(14) = 1
CONSTS(15) = 1
CONSTS(16) = 7.1
CONSTS(17) = 15
CONSTS(18) = 50
CONSTS(19) = 5
CONSTS(20) = 1
CONSTS(21) = 1
CONSTS(22) = CONSTS(15)*CONSTS(16)*(1.00000 - CONSTS(17)/CONSTS(18))
CONSTS(23) = ( CONSTS(19)*CONSTS(17))/CONSTS(18)
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = (CONSTS(22) - CONSTS(1)*CONSTS(2)*STATES(1)) - CONSTS(3)*STATES(1)
RATES(2) = (CONSTS(4)+( CONSTS(5)*STATES(3) ** CONSTS(6))/(CONSTS(7) ** CONSTS(6)+STATES(3) ** CONSTS(6))) - CONSTS(8)*STATES(2)
RATES(4) = CONSTS(9)*STATES(2) - CONSTS(10)*STATES(4)
RATES(3) = ( CONSTS(11)*CONSTS(23)*CONSTS(13) ** CONSTS(12))/(CONSTS(13) ** CONSTS(12)+STATES(1) ** CONSTS(12)) - CONSTS(14)*STATES(3)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = STATES(1)/(STATES(1)+CONSTS(20))
ALGBRC(2) = STATES(3)/(STATES(3)+CONSTS(21))
ALGBRC(3) = ALGBRC(2)/ALGBRC(1)
RETURN
END
