Anaerobic digester (hydrolysis + acidogenesis + methanogenesis) simulation
1 inlet -> 2 outlets [biogas, digestate]
Governing equations
The exact equations the solver works for a anaerobic digester (hydrolysis + acidogenesis + methanogenesis) — the same math shown in the app's "Theory" panel, not a black box.
- dilution rate [1/s] — volumetric feed divided by reactor volume, shared by every stage (one well-mixed CSTR)
- particulate/polymeric substrate concentration [mol/m³] remaining after hydrolysis
- first-order hydrolysis rate constant [1/s]
- soluble-substrate production rate from hydrolysis [mol/(m³·s)]
- specific growth rate of the acidogen / methanogen population [1/s]
- specific death rate of each population [1/s]
- soluble substrate concentration feeding acidogenesis [mol/m³]
- volatile fatty acid (VFA, acetate-equivalent) concentration [mol/m³] — both the methanogens' substrate and, via K_{i,m}, their own inhibitor
- Monod half-saturation constant for each stage [mol/m³]
- Haldane self-inhibition constant for methanogenesis by VFA [mol/m³]
Parameters
substrate (feed component), volume [m^3, required], mu_max_acidogen [1/s, required], mu_max_methanogen [1/s, required]; optional k_hyd [1/s, first-order hydrolysis rate constant, default 1e-5], Ks_acidogen/Ks_methanogen [mol/m^3], yield_xa/yield_xm [mol biomass/mol substrate], vfa_yield [mol VFA/mol soluble substrate, default 0.8], Ki_methanogen [mol/m^3, Haldane self-inhibition of methanogenesis by VFA — omit for no inhibition], maintenance_acidogen/maintenance_methanogen [mol substrate/(mol biomass*s)], death_rate_acidogen/death_rate_methanogen [1/s], soluble_substrate/vfa/acidogen_biomass/methanogen_biomass [pseudo-component name overrides], pressure_drop [Pa]. Two-stage reduced model (hydrolysis+acidogenesis, then methanogenesis, solved sequentially — see the module docstring for the disclosed bound); biogas CH4:CO2 is exactly 1:1 by acetoclastic stoichiometry