SOLUTION_MASTER_SPECIES Acetate HAcetate 0 Acetate 59SOLUTION_SPECIESHAcetate = HAcetate -gamma 3.0000 log_k 0HAcetate = Acetate- + H+ -gamma 4.5 log_k -4.7572 -analytic -0.96597E+02 -0.34535E-01 0.19753E+04 0.38593E+02 0.30850E+02RATES Acetate_formation-start10 qm = 1.0093E-5 #specific maximum growth rate15 Y = 0.079 #Yield coefficient20 rate = qm/Y * TOT("C(4)")/(1.155E-4 + TOT("C(4)")) * TOT("Hdg")/(2.5E-6 + TOT("Hdg")) * kin("Biomass") #Acetate Formation using Dual Monod Rate30 moles = rate * TIME #positive value decreases Hdg40 put(rate,1)50 SAVE moles-endBiomass-start 1 Y = 0.079 2 b = 1.0093E-7 10 rate = get(1) 20 rate = -Y*rate + b*M # negative rate increases M (biomass) # positive rate (d*B) decreases M (biomass) 30 moles = rate * time 40 save moles-endENDSOLUTION 1 temp 90 pH 7 charge pe 4 redox pe -water 1 # kgENDGAS_PHASE 1 -fixed_volume -pressure 300 -volume 1 -temperature 90 CO2(g) 100 Hdg(g) 200ENDINCREMENTAL_REACTIONS trueKINETICS 1Acetate_formation -formula CO2 -2 H2O 2 HAcetate 1 Hdg -4 -m0 6.552e+00 -tol 1e-08Biomass -formula CH1.8O0.5N0.2 0.0 -m0 1e-5-steps 1728000 in 100 steps #20 Tage-cvode ENDUSE solution 1USE kinetics 1USE gas_phase 1USER_GRAPH 1 -chart_title "Gaseous components during acetogenesis" -headings CO2(g) Acetate Hdg(g) -axis_titles "Days" "Pressure gas phase [atm]" -axis_scale y_axis auto auto auto -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("Acetate"),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) Acetate Hdg(aq) Biomass(aq) -axis_titles "Days" "Mole concentration of aqu. species" "Moles of Biomass in aqu. phase" -axis_scale y_axis auto auto auto auto -axis_scale sy_axis auto auto -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("Acetate"),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 Hdg Acetate -axis_titles "Days" "Moles" "Moles Acetate" -axis_scale y_axis auto auto -axis_scale sy_axis auto auto -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("Hdg")+GAS("Hdg(g)"), color=Blue,symbol=Diamond,symbol_size=0,y_axis=1,line_width=330 PLOT_XY TOTAL_TIME/86400, TOT("Acetate")+GAS("Acetate"),color=Orange,symbol=Triangle,symbol_size=0,y_axis=2,line_width=3 -end -active true