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 40 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 24 entries in the constant variable array.
C
C
C VOI is t in component environment (second).
C CONSTS(1) is R in component environment (J_per_K_per_mol).
C CONSTS(2) is T in component environment (kelvin).
C CONSTS(3) is F in component environment (C_per_mol).
C CONSTS(4) is C_m in component environment (fF).
C STATES(1) is q_Ca_o in component environment (fmol).
C STATES(2) is q_Ca_i in component environment (fmol).
C STATES(3) is q_Na_o in component environment (fmol).
C STATES(4) is q_Na_i in component environment (fmol).
C STATES(5) is q_P1_NCX in component environment (fmol).
C STATES(6) is q_P2_NCX in component environment (fmol).
C STATES(7) is q_P3_NCX in component environment (fmol).
C STATES(8) is q_P4_NCX in component environment (fmol).
C STATES(9) is q_P5_NCX in component environment (fmol).
C STATES(10) is q_P6_NCX in component environment (fmol).
C ALGBRC(30) is v_Ca_o_NCX in component NCX (fmol_per_sec).
C ALGBRC(23) is v_Ca_i_NCX in component NCX (fmol_per_sec).
C ALGBRC(34) is v_Na_o_NCX in component NCX (fmol_per_sec).
C ALGBRC(20) is v_Na_i_NCX in component NCX (fmol_per_sec).
C STATES(11) is q_mem in component environment (fC).
C ALGBRC(38) is I_mem_NCX in component NCX (fA).
C CONSTS(5) is kappa_1_NCX in component NCX_parameters (fmol_per_sec).
C CONSTS(6) is kappa_2_NCX in component NCX_parameters (fmol_per_sec).
C CONSTS(7) is kappa_3_NCX in component NCX_parameters (fmol_per_sec).
C CONSTS(8) is kappa_4_NCX in component NCX_parameters (fmol_per_sec).
C CONSTS(9) is kappa_5_NCX in component NCX_parameters (fmol_per_sec).
C CONSTS(10) is kappa_6_NCX in component NCX_parameters (fmol_per_sec).
C CONSTS(11) is K_1_NCX in component NCX_parameters (per_fmol).
C CONSTS(12) is K_2_NCX in component NCX_parameters (per_fmol).
C CONSTS(13) is K_3_NCX in component NCX_parameters (per_fmol).
C CONSTS(14) is K_4_NCX in component NCX_parameters (per_fmol).
C CONSTS(15) is K_5_NCX in component NCX_parameters (per_fmol).
C CONSTS(16) is K_6_NCX in component NCX_parameters (per_fmol).
C CONSTS(17) is K_Na_i in component NCX_parameters (per_fmol).
C CONSTS(18) is K_Ca_i in component NCX_parameters (per_fmol).
C CONSTS(19) is K_Na_o in component NCX_parameters (per_fmol).
C CONSTS(20) is K_Ca_o in component NCX_parameters (per_fmol).
C CONSTS(21) is nNa_o_NCX in component NCX_parameters (dimensionless).
C CONSTS(22) is nNa_i_NCX in component NCX_parameters (dimensionless).
C CONSTS(23) is zf_NCX in component NCX_parameters (dimensionless).
C CONSTS(24) is zr_NCX in component NCX_parameters (dimensionless).
C ALGBRC(2) is mu_Ca_o in component NCX (J_per_mol).
C ALGBRC(3) is mu_Ca_i in component NCX (J_per_mol).
C ALGBRC(4) is mu_Na_o in component NCX (J_per_mol).
C ALGBRC(5) is mu_Na_i in component NCX (J_per_mol).
C ALGBRC(6) is mu_P1_NCX in component NCX (J_per_mol).
C ALGBRC(7) is mu_P2_NCX in component NCX (J_per_mol).
C ALGBRC(8) is mu_P3_NCX in component NCX (J_per_mol).
C ALGBRC(9) is mu_P4_NCX in component NCX (J_per_mol).
C ALGBRC(10) is mu_P5_NCX in component NCX (J_per_mol).
C ALGBRC(11) is mu_P6_NCX in component NCX (J_per_mol).
C ALGBRC(39) is v_P1_NCX in component NCX (fmol_per_sec).
C ALGBRC(24) is v_P2_NCX in component NCX (fmol_per_sec).
C ALGBRC(27) is v_P3_NCX in component NCX (fmol_per_sec).
C ALGBRC(31) is v_P4_NCX in component NCX (fmol_per_sec).
C ALGBRC(36) is v_P5_NCX in component NCX (fmol_per_sec).
C ALGBRC(40) is v_P6_NCX in component NCX (fmol_per_sec).
C ALGBRC(12) is Af_r1 in component NCX (J_per_mol).
C ALGBRC(18) is Ar_r1 in component NCX (J_per_mol).
C ALGBRC(19) is v_r1 in component NCX (fmol_per_sec).
C ALGBRC(13) is Af_r2 in component NCX (J_per_mol).
C ALGBRC(21) is Ar_r2 in component NCX (J_per_mol).
C ALGBRC(22) is v_r2 in component NCX (fmol_per_sec).
C ALGBRC(14) is Af_r3 in component NCX (J_per_mol).
C ALGBRC(25) is Ar_r3 in component NCX (J_per_mol).
C ALGBRC(26) is v_r3 in component NCX (fmol_per_sec).
C ALGBRC(15) is Af_r4 in component NCX (J_per_mol).
C ALGBRC(28) is Ar_r4 in component NCX (J_per_mol).
C ALGBRC(29) is v_r4 in component NCX (fmol_per_sec).
C ALGBRC(16) is Af_r5 in component NCX (J_per_mol).
C ALGBRC(32) is Ar_r5 in component NCX (J_per_mol).
C ALGBRC(33) is v_r5 in component NCX (fmol_per_sec).
C ALGBRC(17) is Af_r6 in component NCX (J_per_mol).
C ALGBRC(35) is Ar_r6 in component NCX (J_per_mol).
C ALGBRC(37) is v_r6 in component NCX (fmol_per_sec).
C ALGBRC(1) is V_mem in component NCX (volt).
C RATES(1) is d/dt q_Ca_o in component environment (fmol).
C RATES(2) is d/dt q_Ca_i in component environment (fmol).
C RATES(3) is d/dt q_Na_o in component environment (fmol).
C RATES(4) is d/dt q_Na_i in component environment (fmol).
C RATES(11) is d/dt q_mem in component environment (fC).
C RATES(5) is d/dt q_P1_NCX in component environment (fmol).
C RATES(6) is d/dt q_P2_NCX in component environment (fmol).
C RATES(7) is d/dt q_P3_NCX in component environment (fmol).
C RATES(8) is d/dt q_P4_NCX in component environment (fmol).
C RATES(9) is d/dt q_P5_NCX in component environment (fmol).
C RATES(10) is d/dt q_P6_NCX in component environment (fmol).
C
      SUBROUTINE initConsts(CONSTS, RATES, STATES)
      REAL CONSTS(*), RATES(*), STATES(*)
      CONSTS(1) = 8.314
      CONSTS(2) = 310
      CONSTS(3) = 96485
      CONSTS(4) = 153400
      STATES(1) = 9.3276
      STATES(2) = 0.00456
      STATES(3) = 725.48
      STATES(4) = 380
      STATES(5) = 0.000103509
      STATES(6) = 0.000103509
      STATES(7) = 0.000103509
      STATES(8) = 0.000103509
      STATES(9) = 0.000103509
      STATES(10) = 0.000103509
      STATES(11) = -13039
      CONSTS(5) = 417309
      CONSTS(6) = 1.39522e+07
      CONSTS(7) = 472.755
      CONSTS(8) = 1.39522e+07
      CONSTS(9) = 417309
      CONSTS(10) = 0.370405
      CONSTS(11) = 2.93394e+08
      CONSTS(12) = 14.1045
      CONSTS(13) = 263471
      CONSTS(14) = 2.39875e+06
      CONSTS(15) = 2373.73
      CONSTS(16) = 956.214
      CONSTS(17) = 0.0137751
      CONSTS(18) = 10.2446
      CONSTS(19) = 0.470129
      CONSTS(20) = 7572.91
      CONSTS(21) = 3
      CONSTS(22) = 3
      CONSTS(23) = -0.55679
      CONSTS(24) = 0.44321
      RETURN
      END
      SUBROUTINE computeRates(VOI, CONSTS,  RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(6) =  CONSTS(1)*CONSTS(2)*log( CONSTS(11)*STATES(5))
      ALGBRC(12) = ALGBRC(6)
      ALGBRC(5) =  CONSTS(1)*CONSTS(2)*log( CONSTS(17)*STATES(4))
      ALGBRC(7) =  CONSTS(1)*CONSTS(2)*log( CONSTS(12)*STATES(6))
      ALGBRC(18) =  CONSTS(22)*ALGBRC(5)+ALGBRC(7)
      ALGBRC(19) =  CONSTS(5)*(EXP(ALGBRC(12)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(18)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(20) =  CONSTS(22)*ALGBRC(19)
      RATES(4) = ALGBRC(20)
      ALGBRC(3) =  CONSTS(1)*CONSTS(2)*log( CONSTS(18)*STATES(2))
      ALGBRC(13) = ALGBRC(7)+ALGBRC(3)
      ALGBRC(8) =  CONSTS(1)*CONSTS(2)*log( CONSTS(13)*STATES(7))
      ALGBRC(21) = ALGBRC(8)
      ALGBRC(22) =  CONSTS(6)*(EXP(ALGBRC(13)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(21)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(23) = - ALGBRC(22)
      RATES(2) = ALGBRC(23)
      ALGBRC(24) = ALGBRC(19) - ALGBRC(22)
      RATES(6) = ALGBRC(24)
      ALGBRC(14) = ALGBRC(8)
      ALGBRC(9) =  CONSTS(1)*CONSTS(2)*log( CONSTS(14)*STATES(8))
      ALGBRC(25) = ALGBRC(9)
      ALGBRC(26) =  CONSTS(7)*(EXP(ALGBRC(14)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(25)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(27) = ALGBRC(22) - ALGBRC(26)
      RATES(7) = ALGBRC(27)
      ALGBRC(15) = ALGBRC(9)
      ALGBRC(2) =  CONSTS(1)*CONSTS(2)*log( CONSTS(20)*STATES(1))
      ALGBRC(10) =  CONSTS(1)*CONSTS(2)*log( CONSTS(15)*STATES(9))
      ALGBRC(28) = ALGBRC(10)+ALGBRC(2)
      ALGBRC(29) =  CONSTS(8)*(EXP(ALGBRC(15)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(28)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(30) = ALGBRC(29)
      RATES(1) = ALGBRC(30)
      ALGBRC(31) = - ALGBRC(29)+ALGBRC(26)
      RATES(8) = ALGBRC(31)
      ALGBRC(4) =  CONSTS(1)*CONSTS(2)*log( CONSTS(19)*STATES(3))
      ALGBRC(16) = ALGBRC(10)+ CONSTS(21)*ALGBRC(4)
      ALGBRC(11) =  CONSTS(1)*CONSTS(2)*log( CONSTS(16)*STATES(10))
      ALGBRC(32) = ALGBRC(11)
      ALGBRC(33) =  CONSTS(9)*(EXP(ALGBRC(16)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(32)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(34) =  - CONSTS(21)*ALGBRC(33)
      RATES(3) = ALGBRC(34)
      ALGBRC(36) = - ALGBRC(33)+ALGBRC(29)
      RATES(9) = ALGBRC(36)
      ALGBRC(1) = STATES(11)/CONSTS(4)
      ALGBRC(17) =  CONSTS(1)*CONSTS(2)*log( CONSTS(16)*STATES(10))+ CONSTS(23)*CONSTS(3)*ALGBRC(1)
      ALGBRC(35) =  CONSTS(1)*CONSTS(2)*log( CONSTS(11)*STATES(5))+ CONSTS(24)*CONSTS(3)*ALGBRC(1)
      ALGBRC(37) =  CONSTS(10)*(EXP(ALGBRC(17)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(35)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(38) =  CONSTS(3)*( - CONSTS(23)*ALGBRC(37)+ CONSTS(24)*ALGBRC(37))
      RATES(11) = ALGBRC(38)
      ALGBRC(39) = ALGBRC(37) - ALGBRC(19)
      RATES(5) = ALGBRC(39)
      ALGBRC(40) = - ALGBRC(37)+ALGBRC(33)
      RATES(10) = ALGBRC(40)
      RETURN
      END
      SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
      REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
      ALGBRC(6) =  CONSTS(1)*CONSTS(2)*log( CONSTS(11)*STATES(5))
      ALGBRC(12) = ALGBRC(6)
      ALGBRC(5) =  CONSTS(1)*CONSTS(2)*log( CONSTS(17)*STATES(4))
      ALGBRC(7) =  CONSTS(1)*CONSTS(2)*log( CONSTS(12)*STATES(6))
      ALGBRC(18) =  CONSTS(22)*ALGBRC(5)+ALGBRC(7)
      ALGBRC(19) =  CONSTS(5)*(EXP(ALGBRC(12)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(18)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(20) =  CONSTS(22)*ALGBRC(19)
      ALGBRC(3) =  CONSTS(1)*CONSTS(2)*log( CONSTS(18)*STATES(2))
      ALGBRC(13) = ALGBRC(7)+ALGBRC(3)
      ALGBRC(8) =  CONSTS(1)*CONSTS(2)*log( CONSTS(13)*STATES(7))
      ALGBRC(21) = ALGBRC(8)
      ALGBRC(22) =  CONSTS(6)*(EXP(ALGBRC(13)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(21)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(23) = - ALGBRC(22)
      ALGBRC(24) = ALGBRC(19) - ALGBRC(22)
      ALGBRC(14) = ALGBRC(8)
      ALGBRC(9) =  CONSTS(1)*CONSTS(2)*log( CONSTS(14)*STATES(8))
      ALGBRC(25) = ALGBRC(9)
      ALGBRC(26) =  CONSTS(7)*(EXP(ALGBRC(14)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(25)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(27) = ALGBRC(22) - ALGBRC(26)
      ALGBRC(15) = ALGBRC(9)
      ALGBRC(2) =  CONSTS(1)*CONSTS(2)*log( CONSTS(20)*STATES(1))
      ALGBRC(10) =  CONSTS(1)*CONSTS(2)*log( CONSTS(15)*STATES(9))
      ALGBRC(28) = ALGBRC(10)+ALGBRC(2)
      ALGBRC(29) =  CONSTS(8)*(EXP(ALGBRC(15)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(28)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(30) = ALGBRC(29)
      ALGBRC(31) = - ALGBRC(29)+ALGBRC(26)
      ALGBRC(4) =  CONSTS(1)*CONSTS(2)*log( CONSTS(19)*STATES(3))
      ALGBRC(16) = ALGBRC(10)+ CONSTS(21)*ALGBRC(4)
      ALGBRC(11) =  CONSTS(1)*CONSTS(2)*log( CONSTS(16)*STATES(10))
      ALGBRC(32) = ALGBRC(11)
      ALGBRC(33) =  CONSTS(9)*(EXP(ALGBRC(16)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(32)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(34) =  - CONSTS(21)*ALGBRC(33)
      ALGBRC(36) = - ALGBRC(33)+ALGBRC(29)
      ALGBRC(1) = STATES(11)/CONSTS(4)
      ALGBRC(17) =  CONSTS(1)*CONSTS(2)*log( CONSTS(16)*STATES(10))+ CONSTS(23)*CONSTS(3)*ALGBRC(1)
      ALGBRC(35) =  CONSTS(1)*CONSTS(2)*log( CONSTS(11)*STATES(5))+ CONSTS(24)*CONSTS(3)*ALGBRC(1)
      ALGBRC(37) =  CONSTS(10)*(EXP(ALGBRC(17)/( CONSTS(1)*CONSTS(2))) - EXP(ALGBRC(35)/( CONSTS(1)*CONSTS(2))))
      ALGBRC(38) =  CONSTS(3)*( - CONSTS(23)*ALGBRC(37)+ CONSTS(24)*ALGBRC(37))
      ALGBRC(39) = ALGBRC(37) - ALGBRC(19)
      ALGBRC(40) = - ALGBRC(37)+ALGBRC(33)
      RETURN
      END
Source
Derived from workspace BG_NCX at changeset da8ac256d121.
Collaboration
To begin collaborating on this work, please use your git client and issue this command:
License
The terms of use/license for this work is unspecified.