Equations and model boundaries#
This page describes the original independent route models. For stateful substrate pools and gas storage, see continuous biogas plants.
All energies below are in kWh unless stated otherwise. Feed amounts, gas volumes
and electrical loads refer to one interval of duration t hours. Efficiencies are
dimensionless fractions on an LHV basis. These models expose assumptions; they do
not infer equipment parameters from a feedstock name.
Thermal conversion#
For wet mass m, wet-basis moisture w, dry-feed LHV L in MJ/kg, selected fuel
energy recovery r, water evaporation duty q_water in kWh/kg water and dry-feed
process duty q_dry in kWh/kg dry matter:
m_dry = m * (1 - w)
m_water = m * w
E_feed = m_dry * L / 3.6
F = E_feed * r
H_demand = m_water * q_water + m_dry * q_dry
The dry LHV applies to all dry matter, including any ash already present; no
additional ash correction is made. All feed moisture is assumed to evaporate.
q_water must include the appropriate sensible and latent heat. q_dry represents
the separately specified reaction and sensible duty of the dry feed.
The meaning of r depends on the route:
Route |
Recovery boundary |
|---|---|
Combustion |
Energy transferred from the boiler to the downstream power block |
Gasification |
Chemical energy in the selected fuel gas supplied to the generator |
Pyrolysis |
Combined chemical energy in the selected fuel products supplied to the generator |
Use recovery fractions before the explicit process-heat deductions. A quoted net efficiency that already deducts drying or reactor heat would count those demands twice. The combustion model similarly assumes drying demand is specified separately from boiler energy recovery. Pyrolysis products are aggregated; product fractions, char yields, gas composition and engine fuel compatibility are not predicted. One common generator efficiency is an approximation if several products would use different conversion equipment.
Unrecovered feedstock energy is reported as E_feed - F without assigning a
destination. Only the wet/dry feed mass split is calculated; this is not a full
product mass balance. Selected recovery and heat-duty parameters require
experimental or equipment-specific calibration.
Biogas#
For dry normal biogas volume V, methane volume fraction x, methane capture
fraction c and methane LHV L_CH4 in kWh/Nm³:
V_CH4_produced = V * x
V_CH4_captured = V_CH4_produced * c
F = V_CH4_captured * L_CH4
The default methane LHV, 9.94 kWh/Nm³, is an approximate configurable value for the declared normal state. Other combustible gas species are ignored. Gas cleaning, compression and pumps must be included in the declared auxiliary loads. Capture describes methane reaching the generation system; exhaust methane slip is not modelled. Uncaptured methane and unused fuel are separate outputs with no assumed disposal destination.
Volatile-solids digestion#
For dry-feed volatile-solids fraction v, destruction fraction d and methane
yield y_VS in Nm³ per kg VS destroyed:
m_VS_fed = m_dry * v
m_VS_destroyed = m_VS_fed * d
V_CH4_produced = m_VS_destroyed * y_VS
H_demand = m_wet * process_heat_kwh_per_kg_wet
Biogas volume is methane volume divided by the methane fraction; the biogas model then applies capture and generation. Do not insert a yield per kg VS fed without converting its basis. Predicted methane chemical energy may not exceed the supplied feedstock LHV. No retention time, inhibition, microbial kinetics, mixing or digestate-quality prediction is included.
Organic wastewater#
For wastewater volume V_water in m³, concentration C_COD in kg COD/m³, removal
fraction d_COD and yield y_COD in Nm³ per kg COD removed:
m_COD_fed = V_water * C_COD
m_COD_removed = m_COD_fed * d_COD
V_CH4_produced = m_COD_removed * y_COD
H_demand = V_water * process_heat_kwh_per_m3
The accepted yield is capped at 22.414 / 64 = 0.35021875 Nm³/kg COD removed.
This follows from CH4 + 2 O2 -> CO2 + 2 H2O: one mole of methane corresponds to
64 g oxygen demand and approximately 22.414 L ideal-gas volume at 0 °C and 1 atm.
Real yields may be substantially lower. COD removal and yield must be measured or
justified for the substrate and reactor. Concentrations in mg/L must be divided
by 1000 to obtain kg/m³.
The wastewater model has no influent LHV, so it does not report overall chemical energy closure upstream of methane. It does not model nutrient removal, effluent compliance, dissolved methane, hydraulics or the complete treatment process.
Profiles and uncertainty#
simulate_profile scales interval feed amounts from the base amount divided by
base duration. Each interval supplies a new availability and feed-rate multiplier.
Fixed interval process electricity, and the biogas route’s explicit process heat,
scale with elapsed time. Route-specific mass/volume heat demands scale with feed.
Intervals are independent: there is no gas storage, startup state or reactor memory.
monte_carlo samples independent uniform distributions with a seeded local random
generator. It retains every draw and uses linear interpolation for quantiles.
Invalid physical combinations raise an error rather than being silently discarded.
The reported percentiles describe input assumptions; they are not probability
estimates for an actual installation without calibration and uncertainty analysis.
Technical references#
These sources describe the physical routes and accounting concepts. They do not validate the synthetic inputs shipped with this repository.
US DOE: Biopower—Energy for Heat and Electricity: route descriptions.
US EPA: Basic Information about Anaerobic Digestion: feedstocks, biogas and digestion products.
US EPA: Methods for Calculating CHP Efficiency: electrical and useful-heat accounting.
US EPA: Reciprocating Internal Combustion Engines, CHP Catalog: equipment characteristics; check HHV/LHV basis before using tabulated values.