The system is mainly comprised of either a single-stage or a two-stage encapsulated anaerobic reactor and optional auxiliary unit operations such as degassing membrane contactor, iron sponge scrubber, and double-membrane biogas holder. A two-stage system consists of a fermenting first stage and a methanogenic second stage, which differ in the initial relative abundance of acidogens, acetogens, and methanogens within the encapsulation matrix besides pH (SI Section S4). The biogas from the anaerobic system is assumed to be reused for heating onsite at the brewery, taking advantage of its existing infrastructure (i.e., the natural gas boiler and heat exchangers) and offsetting natural gas purchases. For benchmarking purposes, upflow anaerobic sludge blanket (UASB) reactors were also modeled to represent the performance of state-of-the-art anaerobic technologies without encapsulation.