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 5 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 26 entries in the constant variable array.
C
C
C VOI is time in component environment (second).
C STATES(1) is R_des in component R_des (micromolar).
C CONSTS(25) is K_plus in component model_parameters (per_micromolar_per_second).
C STATES(2) is C_cyto in component C_cyto (micromolar).
C CONSTS(1) is n_i in component model_parameters (dimensionless).
C CONSTS(2) is K_act in component model_parameters (micromolar).
C CONSTS(3) is n_a in component model_parameters (dimensionless).
C CONSTS(4) is K_minus in component model_parameters (per_second).
C CONSTS(5) is K_1 in component model_parameters (per_second).
C CONSTS(6) is b in component model_parameters (per_second).
C ALGBRC(3) is I_ra in component I_ra (micromolar).
C CONSTS(7) is Ca_tot in component model_parameters (micromolar).
C CONSTS(8) is alpha in component model_parameters (dimensionless).
C CONSTS(9) is V_MP in component model_parameters (micromolar_per_second).
C CONSTS(10) is n_p in component model_parameters (dimensionless).
C CONSTS(11) is K_p in component model_parameters (micromolar).
C ALGBRC(1) is I_rable in component I_rable (micromolar).
C STATES(3) is IP3 in component IP3 (micromolar).
C CONSTS(12) is K_IP in component model_parameters (micromolar).
C CONSTS(26) is V_PLC in component V_PLC (micromolar).
C ALGBRC(2) is V_3K in component V_3K (micromolar).
C ALGBRC(4) is V_5P in component V_5P (micromolar).
C CONSTS(13) is V_plc in component model_parameters (micromolar_per_second).
C CONSTS(14) is gamma in component model_parameters (dimensionless).
C CONSTS(15) is V_k in component model_parameters (micromolar_per_second).
C CONSTS(16) is K_k in component model_parameters (micromolar).
C CONSTS(17) is n_d in component model_parameters (dimensionless).
C CONSTS(18) is K_d in component model_parameters (micromolar).
C STATES(4) is IP4 in component IP4 (micromolar).
C CONSTS(19) is V_p1 in component model_parameters (micromolar_per_second).
C CONSTS(20) is K_p1 in component model_parameters (micromolar).
C CONSTS(21) is K_p2 in component model_parameters (micromolar).
C ALGBRC(5) is V_15P in component V_15P (micromolar).
C CONSTS(22) is k in component model_parameters (per_second).
C CONSTS(23) is V_p2 in component model_parameters (micromolar_per_second).
C CONSTS(24) is K_inh in component model_parameters (micromolar).
C RATES(1) is d/dt R_des in component R_des (micromolar).
C RATES(2) is d/dt C_cyto in component C_cyto (micromolar).
C RATES(3) is d/dt IP3 in component IP3 (micromolar).
C RATES(4) is d/dt IP4 in component IP4 (micromolar).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
STATES(1) = 0.1
STATES(2) = 0.1
CONSTS(1) = 4
CONSTS(2) = 0.56
CONSTS(3) = 3
CONSTS(4) = 0.5
CONSTS(5) = 2.57
CONSTS(6) = 7e-4
CONSTS(7) = 80
CONSTS(8) = 0.1
CONSTS(9) = 4
CONSTS(10) = 2
CONSTS(11) = 0.35
STATES(3) = 0.1
CONSTS(12) = 1
CONSTS(13) = 1.3
CONSTS(14) = 0.2
CONSTS(15) = 0.5
CONSTS(16) = 1
CONSTS(17) = 2
CONSTS(18) = 0.3
STATES(4) = 0.1
CONSTS(19) = 5
CONSTS(20) = 10
CONSTS(21) = 2
CONSTS(22) = 0.01
CONSTS(23) = 0.2
CONSTS(24) = 0.15
CONSTS(25) = CONSTS(4)/CONSTS(24) ** CONSTS(1)
CONSTS(26) = CONSTS(14)*CONSTS(13)*1.00000
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
RATES(1) = CONSTS(25)*STATES(2) ** CONSTS(1)*1.00000*( ((1.00000 - STATES(1))/(1.00000+STATES(2)/CONSTS(2) ** CONSTS(3)))*1.00000) - CONSTS(4)*STATES(1)
ALGBRC(1) = ( (1.00000 - STATES(1))*STATES(3))/(CONSTS(12)+STATES(3))
ALGBRC(3) = ( ALGBRC(1)*1.00000)/(1.00000+CONSTS(2)/STATES(2) ** CONSTS(3))
RATES(2) = CONSTS(5)*1.00000*( CONSTS(6)*1.00000+ ALGBRC(3)*1.00000)*( (CONSTS(7) - STATES(2)*(CONSTS(8)+1.00000))*1.00000) - CONSTS(9)*( (STATES(2) ** CONSTS(10)/(CONSTS(11) ** CONSTS(10)+STATES(2) ** CONSTS(10)))*1.00000)
ALGBRC(2) = CONSTS(15)*(STATES(3)/(CONSTS(16)+STATES(3)))*(STATES(2) ** CONSTS(17)/(CONSTS(18) ** CONSTS(17)+STATES(2) ** CONSTS(17)))*1.00000
ALGBRC(4) = CONSTS(19)*1.00000*(STATES(3)/( CONSTS(20)*(1.00000+STATES(4)/CONSTS(21))+STATES(3)))
RATES(3) = ((CONSTS(26) - ALGBRC(2)) - ALGBRC(4))/1.00000
ALGBRC(5) = ( CONSTS(23)*1.00000*STATES(4))/( CONSTS(21)*(1.00000+STATES(3)/CONSTS(20))+STATES(4))
RATES(4) = (ALGBRC(2) - ALGBRC(5))*1.00000 - CONSTS(22)*STATES(4)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = ( (1.00000 - STATES(1))*STATES(3))/(CONSTS(12)+STATES(3))
ALGBRC(3) = ( ALGBRC(1)*1.00000)/(1.00000+CONSTS(2)/STATES(2) ** CONSTS(3))
ALGBRC(2) = CONSTS(15)*(STATES(3)/(CONSTS(16)+STATES(3)))*(STATES(2) ** CONSTS(17)/(CONSTS(18) ** CONSTS(17)+STATES(2) ** CONSTS(17)))*1.00000
ALGBRC(4) = CONSTS(19)*1.00000*(STATES(3)/( CONSTS(20)*(1.00000+STATES(4)/CONSTS(21))+STATES(3)))
ALGBRC(5) = ( CONSTS(23)*1.00000*STATES(4))/( CONSTS(21)*(1.00000+STATES(3)/CONSTS(20))+STATES(4))
RETURN
END
