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 25 entries in the algebraic variable array.
C There are a total of 7 entries in each of the rate and state variable arrays.
C There are a total of 30 entries in the constant variable array.
C
C
C CONSTS(1) is concentration in component Subtilin (nM).
C CONSTS(2) is RNA1 in component SpeciesInitialConcentrations (nM).
C CONSTS(3) is RNA2 in component SpeciesInitialConcentrations (nM).
C CONSTS(4) is spaK in component SpeciesInitialConcentrations (nM).
C CONSTS(5) is spaR in component SpeciesInitialConcentrations (nM).
C CONSTS(6) is spaKactive in component SpeciesInitialConcentrations (nM).
C CONSTS(7) is spaRactive in component SpeciesInitialConcentrations (nM).
C CONSTS(8) is GFP in component SpeciesInitialConcentrations (nM).
C CONSTS(30) is JRNA in component Template_Promoter_Constitutive (nM_per_s).
C ALGBRC(5) is JGain in component RNA1_interface (nM_per_s).
C ALGBRC(1) is J in component Template_RxR1P1 (nM_per_s).
C ALGBRC(12) is J in component Template_ProteinCDS (nM_per_s).
C ALGBRC(19) is J in component Template_RxR2P1 (nM_per_s).
C ALGBRC(16) is J in component Template_RxR1P1 (nM_per_s).
C ALGBRC(14) is J in component Template_RxR1P1 (nM_per_s).
C ALGBRC(15) is J in component Template_RxR2P1 (nM_per_s).
C ALGBRC(20) is JGain in component spaK_interface (nM_per_s).
C ALGBRC(17) is J in component Template_RxR1P1 (nM_per_s).
C ALGBRC(21) is JGain in component spaKactive_interface (nM_per_s).
C ALGBRC(6) is J in component Template_ProteinCDS (nM_per_s).
C ALGBRC(18) is J in component Template_RxR1P1 (nM_per_s).
C ALGBRC(22) is J in component Template_RxR1P1 (nM_per_s).
C ALGBRC(23) is JGain in component spaR_interface (nM_per_s).
C ALGBRC(24) is J in component Template_RxR1P1 (nM_per_s).
C ALGBRC(25) is JGain in component spaRactive_interface (nM_per_s).
C ALGBRC(3) is JRNA in component Template_Promoter_Inductive (nM_per_s).
C ALGBRC(10) is JGain in component RNA2_interface (nM_per_s).
C ALGBRC(7) is J in component Template_RxR1P1 (nM_per_s).
C ALGBRC(8) is J in component Template_ProteinCDS (nM_per_s).
C ALGBRC(13) is JGain in component GFP_interface (nM_per_s).
C ALGBRC(11) is J in component Template_RxR1P1 (nM_per_s).
C CONSTS(9) is cellVolume in component Chassis_Bacillus (femtoliter).
C VOI is time in component Time (second).
C CONSTS(10) is k in component Bugbuster_Promoter1 (PoPs).
C STATES(1) is concentration in component Template_Species (nM).
C CONSTS(11) is kDecay in component Bioenvironment_Degradation_BugbusterRNA1 (per_s).
C ALGBRC(2) is RNARiPs in component Template_RBS (RiPsInAttoMoles).
C CONSTS(12) is k in component Bugbuster_RBS_spaR (RiPs).
C ALGBRC(9) is RNARiPs in component Template_RBS (RiPsInAttoMoles).
C CONSTS(13) is k in component Bugbuster_RBS_spaK (RiPs).
C STATES(2) is concentration in component Template_Species (nM).
C CONSTS(14) is kDecay in component Bioenvironment_Degradation_spaK (per_s).
C CONSTS(15) is k in component Bioenvironment_RxR2P1_spaKActivation (per_nM_per_s).
C STATES(3) is concentration in component Template_Species (nM).
C CONSTS(16) is k in component Bioenvironment_Dephosphorylation_spaKactive (per_s).
C CONSTS(17) is kDecay in component Bioenvironment_Degradation_spaKactive (per_s).
C STATES(4) is concentration in component Template_Species (nM).
C CONSTS(18) is kDecay in component Bioenvironment_Degradation_spaR (per_s).
C CONSTS(19) is k in component Bioenvironment_RxR2P1_spaRActivation (per_nM_per_s).
C STATES(5) is concentration in component Template_Species (nM).
C CONSTS(20) is k in component Bioenvironment_Dephosphorylation_spaRactive (per_s).
C CONSTS(21) is kDecay in component Bioenvironment_Degradation_spaRactive (per_s).
C CONSTS(22) is k in component Bugbuster_Promoter2 (PoPs).
C CONSTS(23) is n in component Bugbuster_Promoter2 (dimensionless).
C CONSTS(24) is Km in component Bugbuster_Promoter2 (nM).
C STATES(6) is concentration in component Template_Species (nM).
C CONSTS(25) is kDecay in component Bioenvironment_Degradation_BugbusterRNA2 (per_s).
C ALGBRC(4) is RNARiPs in component Template_RBS (RiPsInAttoMoles).
C CONSTS(26) is k in component Bugbuster_RBS_GFP (RiPs).
C STATES(7) is concentration in component Template_Species (nM).
C CONSTS(27) is kDecay in component Bioenvironment_Degradation_GFP (per_s).
C CONSTS(28) is avogadrosConstant in component Template_Promoter_Constitutive (per_mole).
C CONSTS(29) is avogadrosConstant in component Template_Promoter_Inductive (per_mole).
C RATES(1) is d/dt concentration in component Template_Species (nM).
C RATES(2) is d/dt concentration in component Template_Species (nM).
C RATES(3) is d/dt concentration in component Template_Species (nM).
C RATES(4) is d/dt concentration in component Template_Species (nM).
C RATES(5) is d/dt concentration in component Template_Species (nM).
C RATES(6) is d/dt concentration in component Template_Species (nM).
C RATES(7) is d/dt concentration in component Template_Species (nM).
C
SUBROUTINE initConsts(CONSTS, RATES, STATES)
REAL CONSTS(*), RATES(*), STATES(*)
CONSTS(1) = 1000
CONSTS(2) = 0
CONSTS(3) = 0
CONSTS(4) = 0
CONSTS(5) = 0
CONSTS(6) = 0
CONSTS(7) = 0
CONSTS(8) = 0
CONSTS(9) = 1
CONSTS(10) = 0.04
CONSTS(11) = 0.0058
CONSTS(12) = 0.1
CONSTS(13) = 0.1818
CONSTS(14) = 0.0012
CONSTS(15) = 1e-4
CONSTS(16) = 0.1
CONSTS(17) = 0.0012
CONSTS(18) = 0.0012
CONSTS(19) = 1e-4
CONSTS(20) = 0.1
CONSTS(21) = 0.0012
CONSTS(22) = 0.04
CONSTS(23) = 2
CONSTS(24) = 320
CONSTS(25) = 0.0058
CONSTS(26) = 0.145
CONSTS(27) = 0.0012
CONSTS(28) = 6.0221415e23
CONSTS(29) = 6.0221415e23
CONSTS(30) = CONSTS(10)*1.00000e+09/( CONSTS(9)*1.00000e-15*CONSTS(28))
STATES(1) = CONSTS(2)
STATES(2) = CONSTS(4)
STATES(3) = CONSTS(6)
STATES(4) = CONSTS(5)
STATES(5) = CONSTS(7)
STATES(6) = CONSTS(3)
STATES(7) = CONSTS(8)
RETURN
END
SUBROUTINE computeRates(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = CONSTS(11)*STATES(1)
ALGBRC(5) = CONSTS(30) - ALGBRC(1)
RATES(1) = ALGBRC(5)
ALGBRC(3) = CONSTS(22)*STATES(5) ** CONSTS(23)/(CONSTS(24) ** CONSTS(23)+STATES(5) ** CONSTS(23))*1.00000e+09/( CONSTS(9)*1.00000e-15*CONSTS(29))
ALGBRC(7) = CONSTS(25)*STATES(6)
ALGBRC(10) = ALGBRC(3) - ALGBRC(7)
RATES(6) = ALGBRC(10)
ALGBRC(4) = 1.00000e+09*CONSTS(26)*STATES(6)*CONSTS(9)*1.00000e-15
ALGBRC(8) = 1.00000e+06*ALGBRC(4)/CONSTS(9)
ALGBRC(11) = CONSTS(27)*STATES(7)
ALGBRC(13) = ALGBRC(8) - ALGBRC(11)
RATES(7) = ALGBRC(13)
ALGBRC(9) = 1.00000e+09*CONSTS(13)*STATES(1)*CONSTS(9)*1.00000e-15
ALGBRC(12) = 1.00000e+06*ALGBRC(9)/CONSTS(9)
ALGBRC(19) = STATES(3)*STATES(4)*CONSTS(19)
ALGBRC(16) = CONSTS(16)*STATES(3)
ALGBRC(14) = CONSTS(14)*STATES(2)
ALGBRC(15) = CONSTS(1)*STATES(2)*CONSTS(15)
ALGBRC(20) = ALGBRC(12)+ALGBRC(19)+ALGBRC(16) - (ALGBRC(15)+ALGBRC(14))
RATES(2) = ALGBRC(20)
ALGBRC(17) = CONSTS(17)*STATES(3)
ALGBRC(21) = ALGBRC(15) - ALGBRC(17)+ALGBRC(16)+ALGBRC(19)
RATES(3) = ALGBRC(21)
ALGBRC(2) = 1.00000e+09*CONSTS(12)*STATES(1)*CONSTS(9)*1.00000e-15
ALGBRC(6) = 1.00000e+06*ALGBRC(2)/CONSTS(9)
ALGBRC(18) = CONSTS(18)*STATES(4)
ALGBRC(22) = CONSTS(20)*STATES(5)
ALGBRC(23) = ALGBRC(6)+ALGBRC(22) - (ALGBRC(18)+ALGBRC(19))
RATES(4) = ALGBRC(23)
ALGBRC(24) = CONSTS(21)*STATES(5)
ALGBRC(25) = ALGBRC(19) - ALGBRC(24)+ALGBRC(22)
RATES(5) = ALGBRC(25)
RETURN
END
SUBROUTINE computeVariables(VOI, CONSTS, RATES, STATES, ALGBRC)
REAL VOI, CONSTS(*), RATES(*), STATES(*), ALGBRC(*)
ALGBRC(1) = CONSTS(11)*STATES(1)
ALGBRC(5) = CONSTS(30) - ALGBRC(1)
ALGBRC(3) = CONSTS(22)*STATES(5) ** CONSTS(23)/(CONSTS(24) ** CONSTS(23)+STATES(5) ** CONSTS(23))*1.00000e+09/( CONSTS(9)*1.00000e-15*CONSTS(29))
ALGBRC(7) = CONSTS(25)*STATES(6)
ALGBRC(10) = ALGBRC(3) - ALGBRC(7)
ALGBRC(4) = 1.00000e+09*CONSTS(26)*STATES(6)*CONSTS(9)*1.00000e-15
ALGBRC(8) = 1.00000e+06*ALGBRC(4)/CONSTS(9)
ALGBRC(11) = CONSTS(27)*STATES(7)
ALGBRC(13) = ALGBRC(8) - ALGBRC(11)
ALGBRC(9) = 1.00000e+09*CONSTS(13)*STATES(1)*CONSTS(9)*1.00000e-15
ALGBRC(12) = 1.00000e+06*ALGBRC(9)/CONSTS(9)
ALGBRC(19) = STATES(3)*STATES(4)*CONSTS(19)
ALGBRC(16) = CONSTS(16)*STATES(3)
ALGBRC(14) = CONSTS(14)*STATES(2)
ALGBRC(15) = CONSTS(1)*STATES(2)*CONSTS(15)
ALGBRC(20) = ALGBRC(12)+ALGBRC(19)+ALGBRC(16) - (ALGBRC(15)+ALGBRC(14))
ALGBRC(17) = CONSTS(17)*STATES(3)
ALGBRC(21) = ALGBRC(15) - ALGBRC(17)+ALGBRC(16)+ALGBRC(19)
ALGBRC(2) = 1.00000e+09*CONSTS(12)*STATES(1)*CONSTS(9)*1.00000e-15
ALGBRC(6) = 1.00000e+06*ALGBRC(2)/CONSTS(9)
ALGBRC(18) = CONSTS(18)*STATES(4)
ALGBRC(22) = CONSTS(20)*STATES(5)
ALGBRC(23) = ALGBRC(6)+ALGBRC(22) - (ALGBRC(18)+ALGBRC(19))
ALGBRC(24) = CONSTS(21)*STATES(5)
ALGBRC(25) = ALGBRC(19) - ALGBRC(24)+ALGBRC(22)
RETURN
END
