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 7 entries in the algebraic variable array.
C There are a total of 11 entries in each of the rate and state variable arrays.
C There are a total of 57 entries in the constant variable array.
C
C
C VOI is time in component environment (hour).
C STATES(1) is Q_Ca_p in component Q_Ca_p (millimole).
C CONSTS(1) is J_bp_Ca in component model_fluxes (millimole_per_hour).
C ALGBRC(1) is J_pb_Ca in component model_fluxes (millimole_per_hour).
C CONSTS(2) is J_pu_Ca in component model_fluxes (millimole_per_hour).
C ALGBRC(4) is J_ip_Ca in component model_fluxes (millimole_per_hour).
C STATES(2) is Q_P_p in component Q_P_p (millimole).
C CONSTS(39) is J_bp_P in component model_fluxes (millimole_per_hour).
C ALGBRC(5) is J_pb_P in component model_fluxes (millimole_per_hour).
C CONSTS(3) is J_pu_P in component model_fluxes (millimole_per_hour).
C CONSTS(49) is J_ip_P in component model_fluxes (millimole_per_hour).
C CONSTS(56) is J_pc_P in component model_fluxes (millimole_per_hour).
C ALGBRC(7) is J_cp_P in component model_fluxes (millimole_per_hour).
C STATES(3) is Q_P_c in component Q_P_c (millimole).
C STATES(4) is Q_PTH_p in component Q_PTH_p (millimole).
C ALGBRC(2) is S_PTH in component model_fluxes (millimole_per_hour).
C CONSTS(4) is C_PTH_p in component model_parameters (millimolar).
C CONSTS(5) is k_PTH in component model_parameters (first_order_rate_constant).
C STATES(5) is Q_Ca_b in component Q_Ca_b (millimole).
C STATES(6) is Q_P_b in component Q_P_b (millimole).
C STATES(7) is Q_E_k in component Q_E_k (millimole).
C CONSTS(6) is S_E in component model_parameters (millimole_per_hour).
C CONSTS(7) is k_E in component model_parameters (first_order_rate_constant).
C STATES(8) is Q_D_p in component Q_D_p (millimole).
C CONSTS(8) is k_D in component model_parameters (first_order_rate_constant).
C STATES(9) is Q_TCa_i in component Q_TCa_i (millimole).
C CONSTS(50) is k1_D in component model_parameters (first_order_rate_constant).
C CONSTS(51) is k2_D in component model_parameters (first_order_rate_constant).
C STATES(10) is Q_C_PT in component Q_C_PT (millimole).
C CONSTS(52) is k3_D in component model_parameters (first_order_rate_constant).
C CONSTS(53) is k4_D in component model_parameters (first_order_rate_constant).
C STATES(11) is Q_TP_k in component Q_TP_k (millimole).
C CONSTS(54) is k1_P in component model_parameters (first_order_rate_constant).
C CONSTS(9) is k2_P in component model_parameters (first_order_rate_constant).
C CONSTS(10) is J_P_ing in component model_fluxes (millimole_per_hour).
C CONSTS(11) is Stoic_Ca_P in component model_fluxes (dimensionless).
C CONSTS(12) is k_Ca_i in component model_fluxes (first_order_rate_constant).
C CONSTS(13) is C_Ca_i in component model_parameters (millimolar).
C CONSTS(14) is C_Ca_p in component model_parameters (millimolar).
C CONSTS(15) is C_P_p in component model_parameters (millimolar).
C CONSTS(16) is k_Ca_b in component model_parameters (first_order_rate_constant).
C CONSTS(17) is k3_P in component model_parameters (first_order_rate_constant).
C CONSTS(18) is k4_P in component model_parameters (first_order_rate_constant).
C CONSTS(40) is Y_Ca_i_2plus in component model_parameters (first_order_rate_constant).
C CONSTS(41) is Y_Ca_p_1minus in component model_parameters (first_order_rate_constant).
C CONSTS(19) is C_D_p in component model_parameters (picomolar).
C CONSTS(55) is Ca_thr in component model_parameters (first_order_rate_constant).
C CONSTS(57) is Ca_T in component model_parameters (second_order_rate_constant).
C ALGBRC(3) is P_thr in component model_parameters (millimole_per_hour).
C ALGBRC(6) is P_T in component model_parameters (litre_per_hour).
C CONSTS(42) is Y_i_D_p_1plus in component model_parameters (first_order_rate_constant).
C CONSTS(43) is Y_PT_D_p_1plus in component model_parameters (first_order_rate_constant).
C CONSTS(44) is Y_k_Jext_1plus in component model_parameters (first_order_rate_constant).
C CONSTS(45) is Y_PTH_p_2plus in component model_parameters (first_order_rate_constant).
C CONSTS(46) is Y_PTH_p_2minus in component model_parameters (first_order_rate_constant).
C CONSTS(47) is Y_i_D_p_1minus in component model_parameters (first_order_rate_constant).
C CONSTS(48) is Y_PT_D_p_1minus in component model_parameters (first_order_rate_constant).
C CONSTS(20) is Y_Ca_i_2plus_Max in component model_parameters (first_order_rate_constant).
C CONSTS(21) is Y_PTH_p_2plus_Max in component model_parameters (first_order_rate_constant).
C CONSTS(22) is Y_PTH_p_2minus_Max in component model_parameters (first_order_rate_constant).
C CONSTS(23) is Y_Ca_p_1plus_minus_Max in component model_parameters (first_order_rate_constant).
C CONSTS(24) is Y_i_D_p_1plus_minus_Max in component model_parameters (first_order_rate_constant).
C CONSTS(25) is Y_PT_D_p_1plus_minus_Max in component model_parameters (first_order_rate_constant).
C CONSTS(26) is Y_k_Jext_1plus_minus_Max in component model_parameters (first_order_rate_constant).
C CONSTS(27) is X_R_PTH_Ca in component model_parameters (millimolar).
C CONSTS(28) is X_R_i_Ca in component model_parameters (millimolar).
C CONSTS(29) is X_R_PTH_D in component model_parameters (picomolar).
C CONSTS(30) is X_R_E_PTH in component model_parameters (picomolar).
C CONSTS(31) is X_R_i_D in component model_parameters (picomolar).
C CONSTS(32) is X_R_P_k_PTH in component model_parameters (picomolar).
C CONSTS(33) is b_PTH_Ca in component model_parameters (litre_per_millimole).
C CONSTS(34) is b_PTH_D in component model_parameters (litre_per_picomole).
C CONSTS(35) is b_E_PTH in component model_parameters (litre_per_picomole).
C CONSTS(36) is b_i_D in component model_parameters (litre_per_picomole).
C CONSTS(37) is a in component model_parameters (dimensionless).
C CONSTS(38) is d in component model_parameters (dimensionless).
C RATES(1) is d/dt Q_Ca_p in component Q_Ca_p (millimole).
C RATES(2) is d/dt Q_P_p in component Q_P_p (millimole).
C RATES(3) is d/dt Q_P_c in component Q_P_c (millimole).
C RATES(4) is d/dt Q_PTH_p in component Q_PTH_p (millimole).
C RATES(5) is d/dt Q_Ca_b in component Q_Ca_b (millimole).
C RATES(6) is d/dt Q_P_b in component Q_P_b (millimole).
C RATES(7) is d/dt Q_E_k in component Q_E_k (millimole).
C RATES(8) is d/dt Q_D_p in component Q_D_p (millimole).
C RATES(9) is d/dt Q_TCa_i in component Q_TCa_i (millimole).
C RATES(10) is d/dt Q_C_PT in component Q_C_PT (millimole).
C RATES(11) is d/dt Q_TP_k in component Q_TP_k (millimole).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      STATES(1) = 1.000
      CONSTS(1) = 3.3
      CONSTS(2) = 0.21
      STATES(2) = 1.000
      CONSTS(3) = 1.27
      STATES(3) = 3226.0
      STATES(4) = 1.000
      CONSTS(4) = 3.85
      CONSTS(5) = 100.0
      STATES(5) = 100.0
      STATES(6) = 1.000
      STATES(7) = 1.000
      CONSTS(6) = 1.000
      CONSTS(7) = 0.05
      STATES(8) = 1.000
      CONSTS(8) = 0.1
      STATES(9) = 1.000
      STATES(10) = 1.000
      STATES(11) = 1.000
      CONSTS(9) = 1.000
      CONSTS(10) = 1.000
      CONSTS(11) = 0.464
      CONSTS(12) = 1.000
      CONSTS(13) = 1.000
      CONSTS(14) = 2.4
      CONSTS(15) = 1.2
      CONSTS(16) = 1.000
      CONSTS(17) = 1.000
      CONSTS(18) = 51.8
      CONSTS(19) = 90.0
      CONSTS(20) = 1.000
      CONSTS(21) = 1.000
      CONSTS(22) = 1.000
      CONSTS(23) = 0.02
      CONSTS(24) = 0.02
      CONSTS(25) = 0.01
      CONSTS(26) = 0.01
      CONSTS(27) = 1.0
      CONSTS(28) = 1.0
      CONSTS(29) = 90.0
      CONSTS(30) = 3.85
      CONSTS(31) = 90.0
      CONSTS(32) = 90.0
      CONSTS(33) = 0.05
      CONSTS(34) = 0.03
      CONSTS(35) = 0.55
      CONSTS(36) = 0.03
      CONSTS(37) = 0.85
      CONSTS(38) = 0.15
      CONSTS(39) =  CONSTS(11)*CONSTS(1)
      CONSTS(40) =  CONSTS(20)*(CONSTS(13)/(CONSTS(13)+CONSTS(28)))
      CONSTS(41) =  CONSTS(23)*( CONSTS(37)*(1.00000 -  tanh( CONSTS(33)*(CONSTS(14) - CONSTS(27))))+CONSTS(38))
      CONSTS(42) =  CONSTS(24)*( CONSTS(37)*(1.00000+ tanh( CONSTS(36)*(CONSTS(19) - CONSTS(31))))+CONSTS(38))
      CONSTS(43) =  CONSTS(25)*( CONSTS(37)*(1.00000+ tanh( CONSTS(34)*(CONSTS(19) - CONSTS(29))))+CONSTS(38))
      CONSTS(44) =  CONSTS(26)*( CONSTS(37)*(1.00000+ tanh( CONSTS(35)*( 1.00000*CONSTS(15) - CONSTS(30))))+CONSTS(38))
      CONSTS(45) =  CONSTS(21)*(CONSTS(4)/(CONSTS(4)+ 1.00000*CONSTS(32)))
      CONSTS(46) =  CONSTS(22)*(CONSTS(32)/( 1.00000*CONSTS(4)+CONSTS(32)))
      CONSTS(47) =  CONSTS(24)*( CONSTS(37)*(1.00000 -  tanh( CONSTS(36)*(CONSTS(19) - CONSTS(31))))+CONSTS(38))
      CONSTS(48) =  CONSTS(25)*( CONSTS(37)*(1.00000 -  tanh( CONSTS(34)*(CONSTS(19) - CONSTS(29))))+CONSTS(38))
      CONSTS(49) = CONSTS(10)
      CONSTS(50) = CONSTS(42)
      CONSTS(51) = CONSTS(47)
      CONSTS(52) = CONSTS(43)
      CONSTS(53) = CONSTS(48)
      CONSTS(54) = CONSTS(44)
      CONSTS(55) = 1.95000+CONSTS(45)
      CONSTS(56) =  CONSTS(18)*1.00000*CONSTS(15)
      CONSTS(57) = CONSTS(55)/CONSTS(14)
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      RATES(7) = CONSTS(6) -  CONSTS(7)*STATES(7)
      RATES(8) =  1.00000*STATES(7) -  CONSTS(8)*STATES(8)
      RATES(9) =  (1.00000 - STATES(9))*CONSTS(50) -  STATES(9)*CONSTS(51)
      RATES(10) =  (1.00000 - STATES(10))*CONSTS(52) -  STATES(10)*CONSTS(53)
      RATES(11) =  (1.00000 - STATES(11))*CONSTS(54) -  STATES(11)*CONSTS(9)
      ALGBRC(2) =  1.00000*CONSTS(41)*( CONSTS(52)*(1.00000 - STATES(10)) -  CONSTS(53)*STATES(10))
      RATES(4) = ALGBRC(2) -  CONSTS(5)*1.00000*CONSTS(4)
      ALGBRC(1) =  CONSTS(16)*STATES(5)
      RATES(5) = ALGBRC(1) - CONSTS(1)
      ALGBRC(4) = ( CONSTS(40)*(1.00000 - STATES(9))*1.00000*CONSTS(50)+ CONSTS(12)*1.00000*(CONSTS(13) - CONSTS(14))) -  STATES(9)*CONSTS(51)
      RATES(1) = (CONSTS(1)+ALGBRC(4)) - (ALGBRC(1)+CONSTS(2))
      ALGBRC(5) =  CONSTS(11)*ALGBRC(1)
      RATES(6) = ALGBRC(5) - CONSTS(39)
      ALGBRC(7) =  CONSTS(17)*STATES(3)
      RATES(2) = (CONSTS(39)+CONSTS(49)+ALGBRC(7)) - (ALGBRC(5)+CONSTS(3)+CONSTS(56))
      RATES(3) = CONSTS(56) - ALGBRC(7)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(2) =  1.00000*CONSTS(41)*( CONSTS(52)*(1.00000 - STATES(10)) -  CONSTS(53)*STATES(10))
      ALGBRC(1) =  CONSTS(16)*STATES(5)
      ALGBRC(4) = ( CONSTS(40)*(1.00000 - STATES(9))*1.00000*CONSTS(50)+ CONSTS(12)*1.00000*(CONSTS(13) - CONSTS(14))) -  STATES(9)*CONSTS(51)
      ALGBRC(5) =  CONSTS(11)*ALGBRC(1)
      ALGBRC(7) =  CONSTS(17)*STATES(3)
      ALGBRC(3) =  CONSTS(46)*STATES(11)
      ALGBRC(6) = ALGBRC(3)/CONSTS(15)
      RETURN
      END