increase
RATES Methane_formation-start10 if (m < 0) then goto 7020 rate = 2.3e-09*(TOT("C(4)")/1e-3 + TOT("C(4)"))30 moles = rate * TIME40 if (moles > m) then moles = m50 SAVE moles60 put(rate,1)70 END-end Biomass-start 1 Y = parm(1) 2 d = parm(2) 10 rate_M = get(1) 20 B = kin("Biomass") 30 rate = -Y*rate_M + d*B # negative rate increases M (biomass) # positive rate (d*B) decreases M (biomass) 40 dB = rate * time 50 save dB-endEnd SOLUTION 1 temp 37 pH 7 charge pe 4 redox pe units ppm density 1 -water 1 # kgENDGAS_PHASE 1 -fixed_pressure -pressure 100 -volume 1 -temperature 37 CH4(g) 0 CO2(g) 40 Hdg(g) 160 #In Phreeqc Database is Hdg ENDINCREMENTAL_REACTIONS trueKINETICS 1 Methane_formation -formula H2 1 Hdg -1 -m0 1 -tol 1e-08 Biomass -formula H 0.0 -m 1.36e-4 -parms 0.89 5.78E-7 -steps 864000 in 100 steps # seconds; 100 Tage-step_divide 1-runge_kutta 3-bad_step_max 500ENDUSE solution 1USE kinetics 1USE gas_phase 1USER_GRAPH 1 -headings time TDIC CH4(aq) Hdg(aq) Biomass CO2(g) Hdg(g) CH4(g) -axis_titles "Days" "Mole concentration" "Pressure gas phase [atm]" -axis_scale y_axis 1e-6 2 auto auto log -initial_solutions false -connect_simulations true -plot_concentration_vs x -start10 GRAPH_X TOTAL_TIME / 8640030 GRAPH_Y TOT("C(4)"), TOT("C(-4)"), TOT("Hdg"), KIN("Biomass")40 GRAPH_SY GAS("CO2(g)"), GAS("Hdg(g)"), GAS("CH4(g)") -end -active true
RATES Methane_formation-start10 if (m < 0) then goto 7020 rate = 1.643e-5*TOT("C(4)")/(1.094e-7 + TOT("C(4)"))*TOT("Hdg")/(1e-10 + TOT("Hdg"))30 moles = rate * TIME40 if (moles > m) then moles = m50 SAVE moles60 put(rate,1)70 END-end Biomass-start 1 Y = parm(1) 2 d = parm(2) 10 rate_M = get(1) 20 B = kin("Biomass") 30 rate = -Y*rate_M + d*B # negative rate increases M (biomass) # positive rate (d*B) decreases M (biomass) 40 dB = rate * time 50 save dB-endEnd SOLUTION 1 temp 45 #optimal 45degC, max 122degC, min 10degC pH 7.7 charge #optimal 7.7, max 10.2, min 4.1 pe 4 redox pe units ppm density 1 -water 1 # kgENDGAS_PHASE 1 -fixed_pressure -pressure 100 -volume 1 -temperature 45 #optimal 45degC, max 122degC, min 10degC CH4(g) 0 CO2(g) 40 Hdg(g) 160 #In Phreeqc Database is Hdg ENDINCREMENTAL_REACTIONS trueKINETICS 1 Methane_formation -formula H2 1 Hdg -1 -m0 6.118 #all available moles of Hdg --> see phr.out file in the beginning when reaction starts -tol 1e-08 Biomass -formula CH1.8O0.5N0.2 0.0 -m 1.36e-4 -parms 0.03 8.565e-7 # Methanogeic bacteria: Y=0.03, d=8.565e-07 #-steps 8640000 in 100 steps # seconds; 100 Tage#-steps 86400000 in 100 steps # seconds; 1000 Tage#-steps 1728000 in 100 steps # seconds; 20 Tage-steps 3456000 in 100 #34560000 in 100 steps # seconds; 400 Tage-step_divide 1-runge_kutta 3-bad_step_max 500ENDUSE solution 1USE kinetics 1USE gas_phase 1USER_GRAPH 1 -chart_title "Gaseous components during methanogenesis" -headings CO2(g) CH4(g) Hdg(g) -axis_titles "Days" "Pressure gas phase [atm]" -axis_scale y_axis auto auto #log #-axis_scale x_axis 0 400 -initial_solutions false -connect_simulations true -plot_concentration_vs x -start10 PLOT_XY TOTAL_TIME/86400, GAS("CO2(g)"), color=Black,symbol=Square,symbol_size=0,y_axis=1,line_width=320 PLOT_XY TOTAL_TIME/86400, GAS("CH4(g)"),color=Orange,symbol=Triangle,symbol_size=0,y_axis=1,line_width=330 PLOT_XY TOTAL_TIME/86400, GAS("Hdg(g)"), color=Blue,symbol=Diamond,symbol_size=0,y_axis=1,line_width=3 -end -active trueUSER_GRAPH 2 -chart_title "Aqueous species during methanogenesis" -headings CO2(aq) CH4(aq) Hdg(aq) Biomass(aq) -axis_titles "Days" "Mole concentration of aqu. species" "Moles of Biomass in aqu. phase" -axis_scale y_axis auto auto #log -axis_scale sy_axis auto auto #log #-axis_scale x_axis 0 400 -initial_solutions false -connect_simulations true -plot_concentration_vs x -start10 PLOT_XY TOTAL_TIME/86400, TOT("C(4)"), color=Black,symbol=Square,symbol_size=0,y_axis=1,line_width=320 PLOT_XY TOTAL_TIME/86400, TOT("C(-4)"),color=Orange,symbol=Triangle,symbol_size=0,y_axis=1,line_width=330 PLOT_XY TOTAL_TIME/86400, TOT("Hdg"), color=Blue,symbol=Diamond,symbol_size=0,y_axis=1,line_width=340 PLOT_XY TOTAL_TIME/86400, KIN("Biomass"), color=Green,symbol=Circle,symbol_size=6,y_axis=2,line_width=1 -end -active true USER_GRAPH 3 -chart_title "Total Moles in the System" -headings CO2 CH4 Hdg -axis_titles "Days" "Moles" "Moles" -axis_scale y_axis auto auto #log -axis_scale sy_axis auto auto #log #-axis_scale x_axis 0 400 -initial_solutions false -connect_simulations true -plot_concentration_vs x -start10 PLOT_XY TOTAL_TIME/86400, TOTMOLE("C(4)")+GAS("CO2(g)"), color=Black,symbol=Square,symbol_size=0,y_axis=1,line_width=320 PLOT_XY TOTAL_TIME/86400, TOT("C(-4)")+GAS("CH4(g)"),color=Orange,symbol=Triangle,symbol_size=0,y_axis=2,line_width=330 PLOT_XY TOTAL_TIME/86400, TOT("Hdg")+GAS("Hdg(g)"), color=Blue,symbol=Diamond,symbol_size=0,y_axis=1,line_width=3 -end -active true