Anaerobic Reactor

QSDsan: Quantitative Sustainable Design for sanitation and resource recovery systems

This module is developed by:

This module is under the University of Illinois/NCSA Open Source License. Please refer to https://github.com/QSD-Group/QSDsan/blob/main/LICENSE.txt for license details.

class qsdsan.unit_operations.dynamic._anaerobic_reactor.AnaerobicCSTR(ID='', ins: Sequence[AbstractStream] | None = None, outs: Sequence[AbstractStream] | None = (), thermo=None, init_with='WasteStream', V_liq=3400, V_gas=300, model=None, T=308.15, headspace_P=1.013, external_P=1.013, pipe_resistance=50000.0, fixed_headspace_P=False, retain_cmps=(), fraction_retain=0.95, isdynamic=True, exogenous_vars=(), pH_ctrl=None, **kwargs)

An anaerobic continuous stirred tank reactor with biogas in headspace. [1], [2]

Parameters:
  • ins (WasteStream) – Influent to the reactor.

  • outs (Iterable) – Biogas and treated effluent(s).

  • V_liq (float, optional) – Liquid-phase volume [m^3]. The default is 3400.

  • V_gas (float, optional) – Headspace volume [m^3]. The default is 300.

  • model (Processes, optional) – The kinetic model, typically ADM1-like. The default is None.

  • T (float, optional) – Operation temperature [K]. The default is 308.15.

  • headspace_P (float, optional) – Headspace pressure, if fixed [bar]. The default is 1.013.

  • external_P (float, optional) – External pressure, typically atmospheric pressure [bar]. The default is 1.013.

  • pipe_resistance (float, optional) – Biogas extraction pipe resistance [m3/d/bar]. The default is 5.0e4.

  • fixed_headspace_P (bool, optional) – Whether to assume fixed headspace pressure. The default is False.

  • retain_cmps (Iterable[str], optional) – IDs of the components that are assumed to be retained in the reactor, ideally. The default is ().

  • fraction_retain (float, optional) – The assumed fraction of ideal retention of select components. The default is 0.95.

References

property DO_ID

Not applicable.

property V_liq

[float] The designed maximum liquid volume, not accounting for increased volume due to aeration, in m^3.

property aeration

Not applicable

property external_P

External (atmospheric) pressure [bar].

property fixed_headspace_P

Headspace total pressure [bar].

property headspace_P

Headspace total pressure [bar].

ideal_gas_law(p=None, S=None)

Calculates partial pressure [bar] given concentration [M] at operation temperature or vice versa according to the ideal gas law .

line: str = 'Anaerobic CSTR'

class-attribute Name denoting the type of Unit class. Defaults to the class name of the first child class

property model

[CompiledProcesses or NoneType] Suspended growth model.

p_vapor(convert_to_bar=True)

Calculates the saturated vapor pressure at operation temperature.

property pipe_resistance

Gas pipe resistance coefficient [m3/d/bar].

run()

Run mass and energy balance. This method also runs specifications user defined specifications unless it is being run within a specification (to avoid infinite loops).

See also

_run, specifications, add_specification, add_bounded_numerical_specification

property split

[numpy.1darray or NoneType] The volumetric split of outs.

property state

The state of the anaerobic CSTR, including component concentrations [kg/m3], biogas concentrations in the headspace [M biogas], and liquid flow rate [m^3/d].