기본 정보
- 저자
- DOI
- 10.1016/j.egyr.2025.05.045
- 저널
- Energy Reports
- 발행년도
- 2025
- 발행기관
- Elsevier BV
- 피인용수
- 2
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1016/j.egyr.2025.05.045
- 토픽
- Membrane Separation Technologies
- OpenAlex ID
- W4410851838
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
Wastewater Treatment Plants (WWTPs) are characterised by high energy consumption due to their reliance on electricity-intensive processes. Enhancing the flexibility of WWTPs to respond to dynamic electricity prices may reduce operational expenditures and contribute to electrical grid stability. This study introduces an advanced Energy Management model that extends the established IWA Benchmark Simulation Model No. 2 (BSM2) and is implemented in Python with discrete time steps. The Python model was validated against the original MATLAB/Simulink implementation, demonstrating computational speed improvements ranging from 70 % to 1199 % in open control loop configurations, with mean absolute percentage errors between 1.2 % and 6 %. The Energy Management model was scaled according to real-world data from WWTPs in Germany. It was further integrated with an operational aeration strategy aimed at reducing power consumption during peak load periods in a dynamic electricity market. Simulation results indicate that the proposed aeration management approach can enhance revenue from power sales by 12 % compared to a reference control strategy, while the Effluent Quality Index increases by only 10 %. Leveraging the insights provided by the model, researchers can make informed decisions to optimise the operation of WWTPs further by reducing operational costs, while supporting grid stability. • A model extension for energy management in wastewater treatment plants (WWTP) is presented. • A control strategy is proposed to reduce power consumption during peak electricity prices. • An example strategy increases revenues from power sales by 12%.
본문 87,931자
본문 펼치기
[Energy Reports 13 (2025) 6349–6361](https://doi.org/10.1016/j.egyr.2025.05.045)
Contents lists available at [ScienceDirect](https://www.elsevier.com/locate/egyr)
# Energy Reports
journal homepage: [www.elsevier.com/locate/egyr](https://www.elsevier.com/locate/egyr)
Research paper
## Energy Management Model for Wastewater Treatment Plants
Jonas Miederer ∗, Lukas Meier, Nora Elhaus, Simon Markthaler, Jürgen Karl
_Institute_ _of_ _Energy_ _Process_ _Engineering,_ _Friedrich-Alexander-Universität_ _Erlangen-Nürnberg,_ _Fürther_ _Str._ _244f,_ _Nürnberg,_ _90429,_ _Germany_
A R T I C L E I N F O
_Keywords:_ Wastewater treatment
Energy management
PythonDynamic electricity market
Benchmark Simulation Model No. 2 (BSM2)
1. Introduction
A B S T R A C T
Wastewater Treatment Plants (WWTPs) are characterised by high energy consumption due to their reliance on
electricity-intensive processes. Enhancing the flexibility of WWTPs to respond to dynamic electricity prices
may reduce operational expenditures and contribute to electrical grid stability. This study introduces an
advanced Energy Management model that extends the established IWA Benchmark Simulation Model No. 2
(BSM2) and is implemented in Python with discrete time steps. The Python model was validated against the
original MATLAB/Simulink implementation, demonstrating computational speed improvements ranging from
70 % to 1199 % in open control loop configurations, with mean absolute percentage errors between 1 _._ 2 % and
6 %. The Energy Management model was scaled according to real-world data from WWTPs in Germany. It was
further integrated with an operational aeration strategy aimed at reducing power consumption during peak load
periods in a dynamic electricity market. Simulation results indicate that the proposed aeration management
approach can enhance revenue from power sales by 12 % compared to a reference control strategy, while the
Effluent Quality Index increases by only 10 %. Leveraging the insights provided by the model, researchers can
make informed decisions to optimise the operation of WWTPs further by reducing operational costs, while
supporting grid stability.
Wastewater Treatment Plants (WWTPs) play a crucial role in ensuring that wastewater is properly treated before it is released back into
the environment. The treatment process is energy intensive and as a
result, WWTPs account for around 1% of total electricity consumption
in developed countries (Longo et al., 2016), with 40 to 75% of the electricity consumption coming from aeration of the biological treatment
tanks (Sarpong et al., 2019). With the increasing focus on sustainability
and energy efficiency, especially in renewable energy systems that have
high fluctuations in production, there is a growing need to optimise
the operation of industrial consumers, reduce their energy consumption
or, if not possible, add flexibility on both the demand and production
side (Torolsan et al., 2023).
One approach to achieving this for the water treatment sector is
through the use of WWTP models, which can provide insight into plant
performance and help identify areas for improvement (Kirchem et al.,
2018). In addition, energy management models designed specifically
for WWTPs can further improve cost efficiency by optimising energy
consumption and generation throughout the treatment process.
While many commercial software packages such as GPS-X, Simba#,
WEST and SUMO are available for energy management modelling,
they are not openly accessible and often lack the flexibility to develop
advanced control strategies or other customisations beyond the scope
of the software that would be necessary to improve demand and
production side optimisation (Hatch, 2024; IFAK, 2024; DHI, 2024;
Dynamita, 2024).
Open source models, on the other hand, often focus on specific parts
of the treatment process and therefore do not cover the whole plant.
They are not as user-friendly as proprietary models, but offer more
flexibility and transparency and can be freely modified and extended
by users, making them ideal for research purposes.
The following sections provide an overview of the state of the art in
open WWTP models and highlight the need for an open source WWTP
energy management model. The structure follows the flow of water
through the treatment process of a typical WWTP, starting with the
influent and ending with the effluent. A representation of the treatment
process is shown in Fig. 3.
On entering the WWTP, the influent is first screened to remove large
debris and then passed through a grit chamber to remove sand and
other heavy particles. The influent then enters the primary clarifier
where the solids settle to the bottom and are removed as sludge.
Popular sedimentation models have been proposed by Otterpohl and
Freund (1992) and Otterpohl et al. (1994), which describe a perfectly
mixed reactor and the separation into a sludge and water phase with
∗ Corresponding author.
_E-mail_ _address:_ [jonas.miederer@fau.de](mailto:jonas.miederer@fau.de) (J. Miederer).
[https://doi.org/10.1016/j.egyr.2025.05.045](https://doi.org/10.1016/j.egyr.2025.05.045)
Received 10 January 2025; Received in revised form 28 April 2025; Accepted 17 May 2025
Available online 29 May 2025
[2352-4847/© 2025 The Authors. Published by Elsevier Ltd. This is an open access article under the CC BY license ( http://creativecommons.org/licenses/by/4.0/ ).](http://creativecommons.org/licenses/by/4.0/)
_J._ _Miederer_ _et_ _al._
Acronyms
AD Anaerobic digester
ADM Anaerobic Digestion Model
AE Aeration energy (kW h d <sup>−1</sup> )
AS Activated sludge
ASM Activated Sludge Model
BOD Biological oxygen demand
BSM Benchmark Simulation Model
BSM2EM Benchmark Simulation Model No. 2 with
Energy Management
CHP Combined heat and power
COD Chemical oxygen demand (g m <sup>−3</sup> )
DAE Differential algebraic equation
EC External carbon (kg d <sup>−1</sup> )
EG Electricity generated (kW h d <sup>−1</sup> )
EQI
Effluent Quality Index (kgpollutant units d <sup>−1</sup> )
GHG Greenhouse Gas
GUI Graphical user interface
HD Heat demand (kW h d <sup>−1</sup> )
HP Heat production (kW h d <sup>−1</sup> )
IQI
Influent Quality Index (kgpollutant units d <sup>−1</sup> )
JIT Just-In-Time
MAPE Mean absolute percentage error (%)
ME Mixing energy (kW h d <sup>−1</sup> )
MLE Modified Ludzack-Ettinger
OCI Operational Cost Index
ODE Ordinary differential equation
PE Pumping energy (kW h d <sup>−1</sup> )
peq population equivalents
SP Sludge production (kg d <sup>−1</sup> )
TSS Total suspended solids (g m <sup>−3</sup> )
WSL Windows Subsystem for Linux
WWTP Wastewater Treatment Plant
Greek Symbols
_????_ COD removal efficiency
_?_ Density (kg m <sup>−3</sup> )
Roman Symbols
_?_ Volume flow (m <sup>3</sup> d <sup>−1</sup> )
_?_ Average price (e MW <sup>−1</sup> h <sup>−1</sup> )
_???_ Volumetric Mass Transfer Coefficientd <sup>−1</sup>
_?_ Price (e MW <sup>−1</sup> h <sup>−1</sup> )
_??_ Soluble inert organic matter (gCOD m <sup>−3</sup> )
_??_ Dissolved oxygen (gO2 m <sup>−3</sup> )
_??_ Readily biodegradable substrate (gCOD m <sup>−3</sup> )
_????_ Alkalinity (molHCO−
3 <sup>m−3)</sup>
_????_ Alkalinity (molHCO−
3 <sup>m−3)</sup>
_???_ Soluble biodegradable organic nitrogen
(gN m <sup>−3</sup> )
_???_ Ammonium and ammonia nitrogen
(gN m <sup>−3</sup> )
_???_ Nitrate and nitrite nitrogen (gN m <sup>−3</sup> )
_?_ Temperature ( <sup>◦</sup> C)
a removal efficiency _????_ . Furthermore, a model by Takács et al.
(1991) is one of the most commonly used models for this purpose. It
uses the Vesilind settling mechanics (Vesilind, 1968) and calculates the
settling velocity of sludge particles based on particle size and water
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
_??_ Particulate inert organic matter (gCOD m <sup>−3</sup> )
_??_ Particulate products from biomass decay
(gCOD m <sup>−3</sup> )
_??_ Slowly biodegradable substrate (gCOD m <sup>−3</sup> )
_???_ Active autotrophic biomass (gCOD m <sup>−3</sup> )
_???_ Active heterotrophic biomass (gCOD m <sup>−3</sup> )
_???_ Particulate biodegradable organic nitrogen
(gN m <sup>−3</sup> )
_????_ Total suspended solids (gSS m <sup>−3</sup> )
S Soluble substance (g m <sup>−3</sup> )
Superscripts
sat Saturation
Subscripts
d Day
do Dewatered sludge
e Effluent
i Influent
intr Internal
NKj Kjeldahl nitrogen
NO Nitrate
O Oxygen
p Isobaric
pu Pumped primary sludge
r AS reactor sludge recycle
S Standard
sl Sludge from AD
t Current time step
tu Thickened sludge
w Waste sludge flow
velocity. Newer models also take into account coagulation and breakup of sludge flocs (Plósz et al., 2007). Another sophisticated model that
includes bulk flow and compaction is the Bürger-Diehl model (Bürger
et al., 2013).
Following the removal of the primary sludge, the influent is passed
through the biological treatment tanks, where microorganisms are
responsible for the breakdown of the organic matter in the wastewater.
The most widely employed model group is the family of Activated
Sludge Models (ASM) which focus on modelling the biological cleaning of wastewater by aeration. This is the treatment principle most
frequently employed in practice, for instance in the Modified LudzackEttiger (MLE) process. Most ASM models depict basins or ponds containing water. These bodies of water can be aerated, thereby supplying
bacteria with oxygen and thereby facilitating the decomposition of
hydrocarbons and ammonia.
In 1983, the International Association on Water Pollution Research
and Control (IAWPRC) established a working group with the objective of designing a model that was both simple and accurate. This
model was published in 1987 as Activated Sludge Model No. 1 (Henze
et al., 1987; Gujer and Henze, 1991). The model describes the biological processes to remove organic and nitrogen-based components
based on Monod kinetics. It is the most widely utilised model of its
kind (Savun-Hemimoğlu, 2021).
Subsequent to the initial publication of ASM1, two further iterations, ASM2 and ASM2d, were published in 1995 and 1999, respectively. These models built upon the foundations laid out by ASM1,
but introduced additional mechanisms for the elimination of phosphorus (Gujer et al., 1995; Henze et al., 1999; Wanner, 2021). In
1999, the same research group published ASM3. This iteration, too,
_J._ _Miederer_ _et_ _al._
concentrated exclusively on the elimination of organic and nitrogenbased components, yet it addressed certain deficiencies observed in
ASM1 and incorporated considerations pertaining to storage processes
involving polymers (Gujer et al., 1999; Wanner, 2021; Gernaey et al.,
2004).
It is noteworthy that the majority of commercially available software incorporates a modified version of the ASM family (Gernaey
and Jeppsson, 2014; DHI, 2024; EnviroSim, 2024; Hatch, 2024; IFAK,
2024). The ASM models are based on scientific insights into the biological and chemical processes occurring in aerated aquatic environments (Gernaey et al., 2004). As they are based on parameters that
are rooted in the physical world, they can be extended quite easily to
assess custom performance indicators and troubleshoot potential shortcomings of plant set-ups (Jeppsson et al., 2006). However, it should
be noted that these models are not without their limitations, including
their complexity and the consequent necessity for a high number of
parameters to be fitted to serve the desired use case (Schneider et al.,
2022; Corominas et al., 2010).
Following a secondary settling stage and sludge recirculation, the
water is reintroduced into the environment. The sludge is then subjected to further stabilisation, resulting in the formation of biogas. The
most impactful model for this purpose is the Anaerobic Digestion Model
No. 1 (ADM1) (Batstone et al., 2002). It was developed in collaboration
with the IWA Task Group for Mathematical Modelling of Anaerobic
Digestion Processes. The model is a multi-step-degradation model that
describes the anaerobic digestion of organic matter. It is based on the
biochemical processes of hydrolysis, acidogenesis, acetogenesis, and
two methanogenic steps.
The preceding models have each concentrated on a particular aspect of the treatment process. In order to model the entire treatment
process, the aforementioned approaches were coupled to analyse a full
WWTP. The development of these plant-wide models was driven by two
overarching objectives: firstly, to identify optimised control strategies,
and secondly, to establish a well-researched benchmark platform for the
evaluation of these control strategies. Consequently, the nomenclature
of these models is Benchmark Simulation Models (BSM). The first of
these, BSM1, was published in 2008 and solely represents five stages of
activated sludge basins and one settler to recycle the activated sludge.
Two of the units are not aerated to reinforce anoxic reactions, while
three are aerated to force aerobic reactions. The work group supplemented a dataset of three different wastewater influent compositions
consisting of dry weather, rainy weather and storm weather (Alex et al.,
2008). Subsequently, the scope was expanded to encompass extended
time ranges. It also incorporates differences in influent temperature and
was published as BSM1-LT (Gernaey and Jeppsson, 2014). The BSM1
model has been employed in numerous studies to compare control
strategies regarding aeration of biological stages (Belchior et al., 2012;
Han et al., 2012, 2015; Santín et al., 2015; Wang et al., 2020).
However, it is important to note that BSM1 also has some shortcomings. These include simplified aeration and an absence of temperature
dependencies (Gernaey and Jeppsson, 2014). Furthermore, the model
does not consider sludge treatment, which is crucial for the assessment
of energy efficiency in WWTPs. In 2014, the IWA Task Group of Benchmarking of Control Strategies published BSM2. This model comprises
primary treatment, such as sedimentation, biological treatment with
nitrification and denitrification, and aeration, as well as temperaturedependent reactions. The model also incorporates anaerobic digestion
of sludge and the subsequent production of biogas. These layers facilitate the conversion of the state variables of the different models to each
other while ensuring the preservation of mass balances (Nopens et al.,
2009).
The model has gained widespread acceptance within research communities, primarily due to its application in validating advanced control
strategies. Additionally, it serves as a foundational element for the
Energy Management model presented in this study. Subsequently, a
Risk Module was published to address issues such as deflocculation or
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
bulking sludge (Flores-Alsina et al., 2009). Further extensions, including BSM-UWS for comprehensive urban wastewater systems, sought
to establish a framework for evaluating the performance of complete
sewage systems (Saagi et al., 2017) and included the estimation of
greenhouse gas (GHG) emissions from WWTPs (Flores-Alsina et al.,
2011; Arnell, 2016). However, the modelling of the energy system
of WWTPs is not a focus of recent additions to the platform (Jeppsson, 2017), and is instead mostly covered by the proprietary models
mentioned above.
Certain studies utilise implementations of the BSM2 model to investigate components that exert an influence on energy management,
though. For instance, Parra Ramirez et al. (2023) incorporated an electrolyser in their study to examine the oxygen supply for the activated
sludge process. Concurrently, several demand-side management studies
were conducted, emphasising the community’s interest in economically
optimising wastewater treatment plant operations within dynamic electricity markets (Kirchem et al., 2018; Skouteris et al., 2021). Within the
water-energy nexus, many studies investigate the techno-economical
impact of Combined Heat and Power units (CHPs) on specific WWTPs,
mostly underlining the importance of gas management and the high
potential of savings when employing CHP units (Sanaye and Yazdani,
2022; Elio and Milcarek, 2022; Sarpong and Gude, 2021; Sarpong et al.,
2020). However, for the purpose of clarity, only studies that are using
the BSM2 model for techno-economical analyses on the usage of CHPs
are discussed here.
Liu et al. (2021) utilised BSM2 to analyse the impact of different
reject water scheduling strategies on power demand, energy costs,
and effluent quality. The authors investigated reject water scheduling
(water stemming from the dewatering process that is recycled into
the treatment process) as demand-response to fluctuating electricity
prices in Ireland. In a BioWin implementation of the open loop BSM2
model (EnviroSim, 2024), they demonstrated that strategic scheduling
of reject water can lead to significant peak demand mitigation (up to
63.4%) and annual energy cost savings of 10 755 e without compromising effluent quality, depending on the control strategy employed. While
this approach seems very promising, the authors did not address the
integration of CHPs or other gas consumers, which are crucial for the
holistic energy management of WWTPs.
Further, Sheik and Ambati (2024) developed an advanced control
system for BSM2-P that combines PI and fuzzy logic control strategies
to minimise the Operating Cost Index and Effluent Quality Index. In this
binary control topology, a lower-level PI controller controlled dissolved
oxygen levels in the second aerobic reactor, while a supervisory-level
fuzzy logic controller adjusted setpoints based on ammonia concentrations. Compared to non-monitoring control structures, operating costs
were improved by 6.5%. Interestingly, increased greenhouse gas production was observed - an important trade-off in energy optimisation
strategies.
Furthermore, Revollar et al. (2021) presented energy management
methodologies for the BSM2 model. These include CHP and Flare
operations. However, it should be noted that the model was not made
available to the public and is missing several components relevant to
energy management in real WWTPs.
In a similar vein, Lee et al. (2017) examined the behaviour of
the BSM2 model in conjunction with a CHP unit. Utilising a genetic
algorithm, they sought to optimise the operation of the overall system.
However, further gas consumers were not implemented and the model
was not made publicly available.
To the best of the authors’ knowledge, there is currently no open
source energy management model for WWTPs incorporating typical
components such as CHP units, boilers or a flare that is based on the
BSM2 model. The existing models are either not publicly available or
do not cover the entire sewage gas lifecycle. Furthermore, they do not
provide the flexibility to develop advanced control strategies or other
customisations and optimisations beyond the scope of the software.
_J._ _Miederer_ _et_ _al._
Fig. 1. Sample influent flow ( _̇??_ ), temperature and values of total suspended solids
(TSS) for 7 d.
This lack of available tools limits the ability of researchers and practitioners to effectively model energy consumption and generation in
WWTPs, hindering efforts to optimise their operation. The present work
aims to address this gap by presenting an energy management model
for WWTPs that extends the BSM2 model implemented in the Python
programming language - BSM2EM.
2. Methods
As the BSM2 model is the basis of this study, the structure of the
model and its implementation will only be described briefly. Subsequently, the extension of the model to incorporate an Energy Management model will be presented. Finally, an example rule-based control
strategy is presented that optimises the operation of the WWTP.
_2.1._ _Benchmark_ _simulation_ _model_ _no. 2_
The BSM2 is a widely utilised model for simulating the treatment processes in WWTPs. It represents a WWTP with around 80 000
population equivalents (peq) (Saagi et al., 2017) and is designed for
approx. 20 000 m <sup>3</sup> d <sup>−1</sup> of wastewater influent (Gernaey and Jeppsson,
2014). As previously referenced, the development of this model was
undertaken by the IWA Task Group on Benchmarking of Control Strategies for WWTPs. The model is based on ASM1 (Henze et al., 1987),
ADM1 (Batstone et al., 2002), interfacing layers (Nopens et al., 2009),
a Takács-type settling tank model (Takács et al., 1991), and a simple
model for other settling processes. The model has been implemented
in a number of proprietary software packages, including GPS-X, WEST,
and Simba#, but is also available as an open source model in MATLAB/Simulink and Modelica (DHI, 2024; Hatch, 2024; IFAK, 2024).
Due to the existence of numerous exhaustive technical reports, only
a concise overview of the model is provided herein (Gernaey and
Jeppsson, 2014).
_2.1.1._ _Definition_ _of_ _the_ _influent_
The influent stream is the raw wastewater introduced into the plant,
characterised by several ASM1-specific parameters, temperature, and
flow rate. Some implementations also include dummy variables to
account for additional influent components. The BSM2 model uses a
synthetic influent dataset spanning 609 d with a 15 min resolution, incorporating dry weather, rainfall, and temperature variations. This dataset
is used for model validation and comparison of control strategies and
can be replaced with others to simulate different scenarios, such as
storm weather (Alex et al., 2008).
Fig. 1 shows diurnal fluctuations in flow, temperature, and total
suspended solids (TSS) for the first 7 d. While temperature follows
a sinusoidal diurnal pattern, flow rate peaks twice daily, and TSS
concentration decreases steadily after a morning nadir. Fig. 2 lists all
relevant influent components, which are passed and modified through
the treatment processes.
_2.1.5._ _Thickener_ _and_ _dewatering_ _models_
The Thickener and Dewatering units are utilised for the purpose
of increasing the sludge concentration and the removal of water from
the sludge phase. Both Thickener and Dewatering are modelled as
volume-less processes that separate the water from the sludge phase
and increase the sludge concentration. The parameters, denoted by the
symbols pthick and TSSrem, respectively, are utilised to delineate the
concentration of suspended solids in the sludge outlet and the removal
percentage of TSS in the respective units. Utilising these parameters
enables the calculation of the output flows of the resulting sludge and
water phase. The Thickener sludge is processed inside the Anaerobic
Digester, with the overflow recycled to the Primary Clarifier. The
sludge flow from the Dewatering unit is removed from the system. The
reject water phase is stored in the Storage Tank.
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
_2.1.2._ _Primary_ _clarifier_ _model_
The Primary Clarifier is employed for the purpose of separating
the solid and liquid phases of the influent. The BSM2 implementation
contains 900 m <sup>3</sup> of wastewater and is based on the model by Otterpohl
and Freund (1992) and a subsequent revision by Otterpohl et al. (1994).
It describes a perfectly mixed reactor and the separation between a
sludge and a water phase. The COD removal efficiency _????_ ( _?_ ) is
employed to calculate the amount of chemical oxygen demand (COD)
that is removed from the influent over time.
_2.1.3._ _Activated_ _sludge_ _reactor_ _model_
Activated sludge reactors are responsible for the decomposition of
organic matter and the removal of nitrogen-based components. The
model implementation employs reaction mechanics from the ASM1
model. The extensive literature on the subject, and the broad consensus that has emerged around it, means that the model will not be
introduced in depth here. Instead, only a brief explanation is given
and exhaustive technical reports by Henze et al. (1987) and Gernaey
and Jeppsson (2014) are referenced for the convenience of the reader.
The model is comprised of eight processes that describe the microbial decomposition of organic matter, nitrification and denitrification
in Activated Sludge Reactors. These processes are applied to the 13
components of the ASM1 model to form conversion rates. The reactor is
subdivided into five compartments, with the first two having a volume
of 1500 m <sup>3</sup> each and being non-aerated to facilitate anoxic reactions.
The remaining three compartments have volumes of 3000 m <sup>3</sup> each and
are aerated to support the aerobic decomposition of organic matter and
nitrification. An internal recycle flow is used to return water from the
last compartment to the first one to ensure proper decomposition of
nitrogen-based components. The effluent is then subjected to further
treatment in the Secondary Clarifier (Gernaey and Jeppsson, 2014).
_2.1.4._ _Secondary_ _clarifier_ _model_
The Secondary Clarifier is responsible for the separation of the
activated sludge from the treated water. It represents an evenly distributed 10-layer non-reactive tank. The total height is 4 m with a span
of 1500 m <sup>2</sup> . The total volume of the Secondary Clarifier is therefore
6000 m <sup>3</sup> (Gernaey and Jeppsson, 2014). The model proposed by Takács
et al. (1991) is utilised to simulate the settling of sludge particles,
with the flux theory forming the basis of this model. Velocities are
calculated in both upward and downward directions to determine the
mass balances for the sludge and water phases. The plant effluent is
extracted from the top of the Secondary Clarifier and any bypassed
streams. The sludge is then recycled to the activated sludge basins. A
surplus sludge stream is directed to the Thickener.
_J._ _Miederer_ _et_ _al._
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
Fig. 2. 16 components that are passed between treatment processes of the BSM2 model. Dummy components are omitted for clarity.
_2.1.6._ _Anaerobic_ _digester_ _model_
The Anaerobic Digester is modelled using the previously introduced
ADM1 by Batstone et al. (2002). It is adapted to account for temperature dependencies with fixed parameter sets (Gernaey and Jeppsson,
2014). The Digester consists of a 3400 m <sup>3</sup> liquid volume and an additional 100 m <sup>3</sup> gas headspace. The gas composition is considered to
be a mixture of H2, CH4, H2O and CO2. The gas flow rate _̇?_ gas is
calculated from the partial pressures of the gases, which in turn are
calculated from the production rates based on the COD in the Digester
and the respective gas transfer rates. As ADM1 uses a state variable
notation with 26 components, different from the 13 components of
ASM1, interface layers have been introduced by Nopens et al. (2009).
These are used to convert the sludge flow from Thickener to Digester
and back to Dewatering.
_2.1.7._ _Storage_ _tank_
The Storage Tank stores the reject water from the Dewatering unit
and can hold 16 m <sup>3</sup> . It is a non-reactive, perfectly mixed tank and acts as
a buffer before the reject water can be returned to the Primary Clarifier.
It has bypasses when 90% of the tank is filled. Otherwise, the output
flow rate is conditionally determined by the input and a maximum flow
rate.
_2.1.8._ _Additional_ _components_
The BSM2 model also includes Mixers and Splitters to distribute the
flows between the different components. The Splitters support different
modes of operation: They can be used to split the flow into two streams
based on a split ratio or to conditionally split the flow based on a
threshold. The Mixers are used to combine two streams into one based
on the flow rates of the inputs. A weighted average is used to calculate
the output flow rate. A number of statistical tools are also included to
calculate plant performance indicators. These include the calculation
of more abstract quantities such as Kjeldahl Nitrogen ( _????_ ), which
is a standardised subset of nitrogenous constituents, Total Nitrogen,
COD and Biological Oxygen Demand for 5 days ( _???_ 5) and indices
such as Operational Cost Index (OCI) and Effluent (c.f. Eq. (6)) as well
as Influent Quality Index ( _???_ and _???_ ) according to the original
publication (Gernaey and Jeppsson, 2014). In addition, statistics can
be calculated on violations of effluent limits. Aeration energy, pumping
energy and mixing energy are also calculated based on simple heuristics
provided by Gernaey and Jeppsson (2014).
_2.2._ _Energy_ _management_ _model_
The Energy Management model proposed in this work is an extension of the BSM2 that includes modules for simulating the consumption
of biogas produced from the Anaerobic Digester. The model is designed
to be lightweight and performant, reducing the computational overhead on the very demanding BSM2 model. The authors chose to avoid
a physiochemical model of the energy management and therefore did
not use differential equations due to the highly predictable nature of
the gas consumption processes.
Instead, the model uses a simple mass balance approach to calculate
the gas consumption based on the gas production rates of the Anaerobic
Digester and the gas consumption rates of the different consumers. The
accuracy of the model is ensured by choosing a sufficiently small time
step of maximum 15 min. The gas storage thresholds are set conservatively to avoid over- and underflows or negative gas storage levels.
It includes a number of different gas consumers, such as CHP units,
Boilers, and Gas Flares, each with their own configurable parameters.
_2.2.1._ _Validation_
The parameters of the model utilities were collected from and
validated against the gas management of a real-world 1 400 000 peq
WWTP in Nuremberg, Germany. The on-site infrastructure comprises
two gas storage tanks, four combined heat and power (CHP) units,
two boilers and one flare, which are utilised to consume the biogas
produced by the anaerobic digester. The selection of a plant of this size
was motivated by the availability of time-resolved data over the course
of one year.
During the validation process, the Energy Management model receives gas production and heat demand data from the digester. An
operator algorithm is employed to regulate gas consumption in accordance with a rule-based strategy devised by the WWTP staff, with the
objective of meeting the heat demand of the plant while optimising
power generation. The preference for the CHP units over the Boilers
and the Flare is attributed to their capacity for power generation.
In instances where gas production is inadequate, the CHP units are
deactivated and the Boilers are utilised to satisfy the heat demand.
The Flare is only used when the gas production is too high and the
storage tank is full. Fig. 4 shows the annual gas consumption of CHPs,
Boilers and Flare from the Energy Management model in a validation
simulation compared to the real world data over one year of input. The
model’s performance is evidenced by its strong correlation with realworld data over a one-year period, as demonstrated by a relative error
of 0.4% for the CHP units, 12.7% for the Boilers and 33.3% for the
Flare.
_2.2.2._ _Integration_ _into_ _BSM2_
The Energy Management model is adapted to typical plant configurations of the size of BSM2 and can be easily extended by the
user to include additional gas consumers or other energy management
controllers (Miederer et al., 2022). Fig. 3 presents a flowsheet of the
complete BSM2 model from an energy management perspective. The
interface between BSM2 and Energy Management model is utilising
the gas production employed in the Anaerobic Digester and adds the
heating value of the biogas according to its composition. It is then fed
into the Gas Tank. The different components of the Energy Management
model are described in the following sections.
_J._ _Miederer_ _et_ _al._
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
Fig. 3. Flowsheet of BSM2 with Energy Management extension.
to 140 h of operation. These downtimes are introduced to model a more
realistic behaviour of the CHP units and to assess redundancy in the
system.
Fig. 4. Annual gas consumption of CHPs, Boilers and Flare from the Energy Management model compared against the real-world WWTP.
_2.2.3._ _Gas_ _tank_
The Gas Tank is used to store the biogas produced by the Anaerobic
Digester. It has a volume of 1500 m <sup>3</sup> S <sup>,</sup> <sup>which</sup> <sup>is</sup> <sup>around</sup> <sup>13 h</sup> <sup>of</sup> <sup>average</sup>
gas production in the BSM2 open loop scenario. It stores the gas at a
predefined pressure and the composition is calculated based on mass
balances of the gas components. The Gas Tank is used to supply the
various gas consumers in the plant and to balance the production
and demand side against diurnal fluctuations. Before entering the Gas
Tank, compressors increase the pressure of the biogas coming from
the digester. Their efficiency is set as a constant value. Their power
consumption is calculated on the basis of the load, the gas properties
and the pressure increase.
_2.2.4._ _CHP_ _units_
The conversion of biogas into electricity and heat is achieved by
the CHP units, which are modelled with an efficiency that is dependent
on the load. This load can be set to discrete values or in a continuous
range, and a combination of both is also possible. The units cover
regular maintenance downtimes, and they can be modelled to include
stochastic infrequent shutdowns, which account for other unplanned
downtimes such as maintenance or breakdowns. In the default configuration, two CHPs are scaled to 250 kW of electrical power each to
allow for redundancy and offset the electricity demand of the BSM2
plant. The scale of the CHPs was estimated by interpolating from an
original survey amongst German plant operators. Although the survey
was conducted with 20 plants, the data was filtered to include only
those plants that are similar in size to the BSM2 model. Therefore, the
largest five plants were excluded from the analysis. Fig. 5 shows the
scaling of the CHP units and boilers based on the survey data. The
underlying raw data, including names of the surveyed plants, is listed
in Appendix B. Additional downtimes have been gathered by a data
analysis within the WWTP Nuremberg and are 12 h to 16 h after 120 h
_2.2.5._ _Boilers_
The Boilers are utilised to convert the biogas into heat, with their
operation becoming essential only in scenarios where the plant’s heat
demand surpasses the heat production capacity of the CHP units. The
Boilers are modelled with an efficiency that is load-dependent, similarly
to the CHP units. The load can be configured to discrete values or a
continuous range, with the option of a hybrid configuration. In the
default configuration, one boiler is scaled to 650 kW of thermal power
to cover the heat demand of the BSM2 plant during peak times. Just
as with the CHP units, the scale of the Boiler was determined through
interpolation of relevant survey data listed in Appendix B. As not all
plant operators shared data about the boilers, the number of data points
considered is lower than for the CHP units.
_2.2.6._ _Gas_ _flare_
A Gas Flare is used to burn off excess biogas that cannot be consumed by the other utilities. The Flare has been modelled to have a
maximum flow rate of 160 m <sup>3</sup> h <sup>−1</sup>, which resembles the maximum gas
production of BSM2 when running in open loop setup with the default
influent data. This value is in good agreement with the flare capacity
from the WWTP Nuremberg, if it would be rescaled.
_2.2.7._ _Cooler_
Even though it would be more environmentally friendly to use the
excess heat for district heating, coolers are often used in WWTPs to
dissipate excess heat. A Cooler dissipates the excess heat created by
CHPs and Boilers in the model. It has a maximum heat uptake limit,
which is set to 300 kW, rescaled according to plant data of the WWTP
Nuremberg.
_2.2.8._ _Heat_ _network_
The Heat Network is responsible for the distribution of heat produced by the CHP units and boilers to the consumers within the plant,
including the fermenter. The model has been configured to ensure
temperatures of 70 <sup>◦</sup> C to 95 <sup>◦</sup> C, also according to data from the WWTP
Nuremberg and a constant flow rate of 50 m <sup>3</sup> h <sup>−1</sup> of water. The heat
is distributed based on the heat demand of the consumers. It enables
temperature-dependent controlling algorithms to account for realistic
scheduling problems.
_J._ _Miederer_ _et_ _al._
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
Fig. 5. Scaling of CHP and Boiler units based on the data of 15, resp. nine representative WWTPs.
_2.2.9._ _Gas_ _management_ _controller_
The gas management is implemented as a rule-based Controller. The
controlling follows a simple conditional process for each timestep and
sets the loads of all the gas consumers subsequently:
- As the CHPs are prioritised, their load is calculated first. The
load can only be changed every 6 h to avoid oscillating behaviour
around the storage thresholds. If the load can be changed, the
load is set according to a rule table, depending on the gas storage
level. If the gas storage level is above a certain threshold, maximum load is set. If the gas storage level is in a low state, the load
is set to a certain percentage of the maximum load. The load is
set to zero if the gas storage level is too low.
- Next, the temperature of the Heat Network is calculated after the
CHPs are scheduled. Additionally, the heat demand from sludge
entering the Anaerobic Digester is considered. If the temperature
is too low, the Boilers are switched on to cover the remaining
heat demand. The load of the Boilers is also depending on the
gas storage level. Utilising this mechanic, it is ensured that the
gas storage is not completely depleted. The Boilers can only be
changed every hour to avoid oscillating behaviour.
- Further, surplus heat is dissipated in the Cooler, if the Heat Net
temperature is too high.
- Finally, the Flare is used to burn off excess biogas if the gas
storage is above a certain threshold, just as in real plants.
_2.3._ _Rule-based_ _aeration_ _control_ _strategy_
It is imperative to acknowledge that the objective of this study is not
to identify an optimal aeration control strategy for the BSM2 model, but
rather to illustrate the capabilities of the Energy Management model.
Consequently, a straightforward rule-based aeration control strategy,
initially proposed by Skouteris et al. (2021), is adapted to the BSM2
model, including the newly added Energy Management components
and the Gas Management Controller. The energy consumption and costs
of the BSM2 open loop model in a dynamic electricity market are
then compared. Power prices are based on the EPEX SPOT day-ahead
market data for Germany in 2023. They are based on a Merit Order
auction between power producers and consumers and are published
at noon for every hour of the next day (SMARD, 2024). The average
price for 2023 is 95 _._ 21 e MW <sup>−1</sup> h <sup>−1</sup> with a minimum threshold price of
−500 e MW <sup>−1</sup> h <sup>−1</sup> and a maximum price of 524 _._ 27 e MW <sup>−1</sup> h <sup>−1</sup> . As the
focus of this study is on demonstrating the energy management, only
these wholesale prices are used. Additional costs such as grid fees or
taxes are not considered.
The model is then run with custom rule-based control strategies and
compared to a status quo control strategy, focusing on the continuous
operation of the CHP units and aeration for 1 year of simulation time
after a stabilisation period of around 7 d with constant influent.
The status quo scenario maintains a constant aeration load, indicated by _???_ values of ⟨0 _,_ 0 _,_ 120 _,_ 120 _,_ 60⟩ d <sup>−1</sup> for all five reactors, just as
proposed in the default open loop setup of BSM2 (Gernaey and Jeppsson, 2014), adding solely the Energy Management components and the
Gas Management Controller. In contrast, the rule-based aeration control
strategy utilises the following conditions:
- With publishing of the day-ahead power prices, the plant scheduler sets a threshold according to a percentage of the highest
prices. This resembles the percentile with the highest prices of the
day. For example, the threshold is set to 75%. The daily threshold
is used to determine the power prices that are considered high
while still maintaining a certain stability in the control strategy.
- At each time step, the plant scheduler assesses the power prices.
If the current price is above the threshold and the ammonia
concentration ( _???_ ) in the effluent water is below a specified
threshold value, the _???_ values are decreased to a certain percentage of the default value. This study uses a default _???_ value
of 120 d <sup>−1</sup> . In the example, if the current price is over the 75th
percentile (e.g. it is amongst the 25% of the highest prices) and
the ammonia concentration in the effluent is below 4 gN m <sup>−3</sup>, the
_???_ is decreased to 75% of the default capacity - 90 d <sup>−1</sup> . While _???_
resembles the volumetric mass transfer coefficients, it correlates
strongly with energy consumption - see Eq. (2).
- In these times, the CHP units can sell the surplus electricity to the
grid.
- However, if the gas storage level is depleted, the CHP units are
deactivated to conserve gas for the Boilers
- The boilers are only used to cover the heat demand of the plant
if the CHP units are not able to provide enough heat.
- The flare is only used if the gas storage is full.
The gas management strategy employed in both the rule-based
aeration and status quo scenarios is consistent. It is described in Section 2.2.9. To conduct the study, suitable parameter sets for the aeration control strategy are identified. The used parameters are shown
in Table 1. In order to account for the dynamic power cost and the
energy management, the calculation of the _???_ <u>(Jeppsson</u> et al., 2007)
is modified to include a relative power price _??_ ∕ _?_ _?_ and existing power
<u>generation</u> utilities. The mean daily power price, denoted by the symbol
_?_ _?_ is selected as a reference, given that the rule-based control strategy
_J._ _Miederer_ _et_ _al._
Table 1
<u>Parameter</u> <u>matrix</u> <u>for</u> <u>the</u> <u>rule-based</u> <u>aeration</u> <u>control</u> <u>strategy.</u>
Parameter Value #1 Value #2 Value #3 Unit
Percentile of prices to reduce load 25 50 75 %
Aeration decrease to 25 50 75 %
_???_ pollution threshold 4 6 8 gN m <sup>−3</sup>
also operates on a daily basis. These modifications are implemented
to ensure that the _???_ accurately reflects the actual costs of an
electricity grid characterised by fluctuating power prices. The _???_ is
thus calculated as follows on a per-time step basis:
_???_ = ( _??_ + _??_ + _??_ - _??_ )⋅ _??_ ∕ _?_ _?_ +3⋅ _??_ +3⋅ _??_ +max (0 _, ??_ - _??_ )
(1)
where _??_ is the aeration energy, _??_ is the mixing energy, _??_ is the
pumping energy, _??_ is the electricity generated by the CHP units, _??_ is
the current power price, _??_ refers to the addition of external carbon to
the system, _??_ is the heat demand of the fermenter and _??_ is the heat
production of CHP units and boilers. Contrary to the original definition
proposed by Vrecko et al. (2007), sludge production _??_ does not take
into account the accumulation of sludge within the plant.
The _???_ is used to give a measure of the operational cost of the
plant. It increases with rising energy consumption and power prices
and therefore needs to be minimised. In accordance with the original
definition, it is a dimensionless quantity, given that it incorporates
multiple weighted terms that are useful for describing the operating
costs of WWTPs (Jeppsson et al., 2007). The weights are approximate
measures to account for the different cost factors. For instance, the
sludge disposal cost is represented by a weight of 3, while the triple
weight for external carbon addition accounts for the costs of carbon
sources such as methanol (Jeppsson et al., 2007; Vrecko et al., 2007).
The individual energy consumption terms are calculated as follows:
_??_ = _??_ <sup>_???_</sup> <sup>∕1</sup> <sup>_._</sup> <sup>8</sup>
∑5
_???,?_ ⋅ _????_ (2)
_?_ =1
_??_ =0 _._ 004 _̇?????_ + 0 _._ 008 _̇??_ + 0 _._ 05 _̇??_ + 0 _._ 075 _̇???_ + 0 _._ 06 _̇???_ + 0 _._ 004 _̇???_
∑5
_?_ =1
(3)
(4)
] <sup>)</sup>
[ _???,?_ if _????_ ≤ 20 d <sup>−1</sup>
0 otherwise
_??_ =24 ⋅ 0 _._ 005
(
_???_ +
_??_ = _̇???_ ⋅ _???_ ⋅ _??,??_ ⋅ _????_ (5)
where _??_ <sup>_???_</sup> <sup>is</sup> <sup>the</sup> <sup>oxygen</sup> <sup>saturation</sup> <sup>concentration,</sup> <sup>_???,?_</sup> <sup>is</sup> <sup>the</sup> <sup>volume</sup>
of the activated sludge (AS) reactor _?_, _????_ is the aeration rate of the AS
reactor _?_, _̇?????_ is the return flow rate inside the AS system, _̇??_ is the AS
sludge recycle, _̇??_ is the waste sludge flow, _̇???_ is the pumped primary
sludge, _̇???_ is the thickened sludge flow, _̇???_ is the dewatered sludge
flow. _???_ is the volume of the anaerobic digester, _̇???_ is the sludge
flow into the anaerobic digester, _???_ is the density of the sludge, _??,??_
is the specific heat capacity of the sludge and _????_ is the temperature
difference between the sludge from water treatment and the operating
temperature of the digester.
As the reduced power usage of the rule-based control strategy is
expected to reduce the operational cost but also to reduce effluent
quality, the _???_ is also calculated (Vrecko et al., 2007):
_???_ = <sup>(</sup> 2 ⋅ _???_ + _???_ + 30 ⋅ _????,?_ + 10 ⋅ _???,?_ + 2 ⋅ _???_ 5 _,?_
) ⋅ _̇ ??_ (6)
where _???,?_ represents soluble nitrate and _̇??_ is the flow rate of the
effluent. The _???_ is used to give a measure of the effluent quality of
the plant and has the unit kgpollutant units d <sup>−1</sup> . It is therefore essential to
minimise it to ensure the effluent quality remains satisfactory.
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
_2.4._ _Simulation_ _procedure_
The original BSM2 model has been implemented in MATLAB/
Simulink; however, Python, a popular programming language for scientific computing, has emerged as a notable alternative. Python boasts
a number of advantages over MATLAB, including its open source
nature, extensive library and tool availability, and enhanced flexibility and extensibility. The primary objective of this research is
to develop a model that can be seamlessly integrated with contemporary control strategies, such as predictive control with machine
learning. Given the prevalence of Python in the domain of data-driven
control, particularly in conjunction with machine learning, it is a
natural choice for the implementation of this model. Python itself is a
multi-paradigm programming language that supports object-oriented,
imperative, functional and procedural programming styles.
Consequently, the BSM2 model in Python is implemented using
object-oriented programming techniques, thereby facilitating the creation of a modular and extensible model that can be readily adapted to
different plant set-ups and sizes. The model solution is based on a script
that solves the system in a discrete time step, and as it is a modular
system, each component is solved separately with a LSODA solver from
the SciPy library (Hindmarsh, 1983). To enhance the efficiency of the
solution process, the pure Python code is substituted by a Just-In-Time
(JIT) compiled LLVM code using the Numba library (Lam et al., 2015),
resulting in a substantial acceleration of the solution process. Rather
than compiling the entire model as in MATLAB/Simulink, this approach
enables a greater degree of flexibility in observation and modification,
as well as enhanced interaction during code execution for the user.
The model is initialised with the provided parameters, and simulation time steps are defined based on the user’s decision. Subsequently,
the submodels (e.g. Primary Clarifier, Activated Sludge Reactors) are
initialised, inputs are loaded, and the arrays to store the results are
created. The simulation is initiated by stepping through the time intervals. Each submodule is solved separately, considering differential and
non-differential terms. The differential terms are solved first. As these
are all time-dependent, a ordinary differential equation (ODE) solver
is sufficient. The outputs are then passed to the next submodule, and
the simulation is stopped when the end time is reached. Finally, the
generated data is processed and stored. The flowchart of the solution
process is shown in Fig. 6.
However, as the model is implemented from scratch with a different
programming paradigm, it is necessary to validate the model against
the original BSM2 implementation.
3. Results and discussion
In the first instance, the Python version of the original BSM2 is validated against the MATLAB/Simulink implementation. Subsequently,
the Energy Management model and the different rule-based control
strategies are used to simulate the BSM2 model.
_3.1._ _Validation_ _of_ _BSM2_ _implementation_
In discrete-time models, the accuracy of the simulation is dependent
upon the resolution of the time step. In order to validate the Python implementation, it is permissible for a small error to be present; however,
it is imperative that this error is reduced with increasing resolution, to
demonstrate the correctness of the implementation.
In order to validate the Python implementation of the BSM2 model,
the effluent concentrations of the different components to the original MATLAB/Simulink implementation were compared (wwtmodels,
2025). Open loop simulations without sensors, controllers and actuators
were run for 50 d with simulation resolutions of 15 min, 5 min, and
1 min, respectively. In addition, a closed loop simulation including all
controlling devices was run for 50 d with a resolution of 1 min due to the
_J._ _Miederer_ _et_ _al._
Fig. 6. Flowchart of the solution process.
high sensitivity of the sensors and controllers to the resolution. The influent was the standardised dynamic influent dataset provided with the
BSM2 model described in Section 2.1.1. The mean absolute percentage
error (MAPE) was calculated for each component and resolution for the
resulting effluent flow.
The findings demonstrated a clear decrease in error with increasing
resolution. For the finest resolution of 1 min, the averaged MAPE over
all 21 ASM1-components was 1.2%, increasing to 6% for the 15 min
resolution. The error for the different components varied, with the
value for ammonia ( _???_ ) having the highest error of 4.7% for the
1 min resolution and up to 32.2% for the 15 min resolution. Appendix
A summarises the MAPE for the different components and resolutions.
To visualise the results of the component with the highest error, Fig.
7 presents the difference in results for _???_ over a selected time range
and as a parity plot over the entire 50 d time range. To enhance observability, data points for only 30 min intervals are displayed in the parity
plot. It is evident that the error is significantly reduced with increasing
resolution, and the parity plot demonstrates a clear correlation between
the MATLAB/Simulink and Python implementations.
The closed loop simulation demonstrated an averaged error of 1.5%
for the 1 min resolution. However, given the relatively low and consistently decreasing errors observed as the resolution increased, the model
is deemed valid. The execution times were evaluated on an Intel Core
i7-1355U notebook operating on Windows 11. The installed CPython
version was 3.10.14 inside a Docker container for Windows Subsystem
for Linux (WSL). The MATLAB/Simulink release was R2024a, utilising
the ode45 solver. A differential algebraic equation (DAE) system was
employed to approximate the behaviour of the Anaerobic Digester in
a timely manner. The performance for the open loop simulation is
presented in Table 2. As the execution times in the open loop case are
significantly lower for the Python implementation, the model is feasible
for use in practice.
As the results indicate, the Python implementation of the BSM2
model is valid and can be used for further experiments. To not compromise on model accuracy, however, a simulation resolution of 1 min
is used in further course.
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
Table 2
Execution times for the open loop BSM2 model in Python and MATLAB/Simulink for
<u>the</u> <u>50 d</u> <u>simulation.</u>
Python (15 min) Python (5 min) Python (1 min) MATLAB/Simulink
Absolute [s] 74 s 149 s 566 s 960 s
Relative [%] 7.7% 15.5% 58.9% 100%
_3.2._ _Energy_ _model_ _study_
The _???_ and _???_ previously introduced are averaged from 129 d
to 364 d and are plotted in Fig. 8. The results demonstrate that rulebased control strategies can reduce the _???_ by up to 10.8% compared
to the status quo control strategy. The _???_ displays a marked increase
of 71.7% when rule-based control strategies are implemented, with an
increase in effluent pollution being the driving factor in this reduction
of operational costs. It is evident from the findings that all control
strategies result in an increase in the _???_ when compared to the
reference scenario. The selection of a suitable parameter set is based
on a Pareto frontier analysis. The Pareto frontier primarily consists
of strategies that reduce the aeration load only when power prices
exceed the 75th percentile as indicated by the - symbols. This suggests
that even minor adjustments in operational behaviour can substantially
enhance cost efficiency while maintaining high effluent quality.
The parameter set that halves the aeration load if the power prices
are above the 75th percentile and the effluent ammonia concentration
is below 4 gN m <sup>−3</sup> has been selected because of its good _???_ performance while keeping _???_ relatively low. It is further noted that the
aeration is decreased only for 6 h per day (which is the 25% of time
that is over the threshold percentile), and thus no long-term effects on
the microbiome are assumed. The parameter set is marked in Fig. 8.
In both the status quo scenario and the rule-based control strategies, the management of biogas was maintained at a constant level.
The power generation by the CHP units for the selected strategy is
illustrated in Fig. 9. The CHPs are controlled to transition to a different
operational state only after a minimum of 6 h. Consequently, in scenarios where storage levels are low, the CHPs are deactivated to conserve
gas for the boilers. However, CHP2 was switched off after a few hours,
despite rising storage levels, due to a maintenance break. While CHP1
operation is increased with more biogas in the Storage, CHP2 is under
maintenance and is turned on after completing the repair. Nevertheless,
the biogas Storage is kept well below the maximum capacity and is not
running empty.
The behaviour of the heat generation is shown in Fig. 10. The boilers
are exclusively utilised to address the heat demand of the plant during
periods of peak demand. Consequently, they are activated primarily
when the CHPs are not operational or the CHPs cannot provide all
necessary heat. Typically, the CHPs are capable of meeting the majority
of the heat demand, thereby maintaining the heat net temperature
above the minimum threshold. The Cooler functions to dissipate the
excess heat generated by the CHPs and boilers. The Cooler is activated
when the heat net temperature exceeds 80 <sup>◦</sup> C, and its flexible operation
ensures that the heat net temperature remains within the prescribed
upper and lower bounds.
The behaviour of the selected operational aeration strategy is illustrated in Fig. 11 for a 2 d period. During periods of high power prices,
the aeration load is reduced, provided that the effluent quality remains
uncompromised. The figure clearly indicates a reduction during peak
times on day 127. However, if the effluent quality exceeds the threshold, the aeration load is increased, despite the high prices. During hours
of aeration reduction, the CHPs, which operate predominantly to meet
the plant’s electricity demands, can sell the surplus electricity to the
grid. The analysis reveals that the total income of the plant increases
by 12.3% compared to the status quo control strategy, as determined by
day-ahead price data. This is achieved by selling the surplus electricity
during peak price periods. Additionally, the _???_ during the evaluation
_J._ _Miederer_ _et_ _al._
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
Fig. 7. Effluent ammonia concentrations for different resolutions in open loop set up (left). The difference to the MATLAB/Simulink implementation decreases with increasing
resolution. A parity plot of the effluent ammonia concentration for the different resolutions (right). It visualises the decreasing error with increasing resolution over the whole
simulation time.
Fig. 8. _???_ and _???_ for different control strategies reducing the aeration load based on power price percentiles and a threshold for effluent ammonia concentration. The data
points are representing the different parameter triplets. The Pareto frontier is marked by a black line. The × marks the selected parameter set. Bottom right: status quo scenario.
period is reduced by 6.6%. However, the number of times that effluent
pollution exceeds the threshold increases from 7.5% to 28.5%, although
this is often only slightly above the threshold. The overall effluent
quality remains acceptable, with the _???_ increasing by only 10.5%.
The findings suggest that the implementation of this rule-based control strategy has the potential to substantially reduce the operational
expenses of the WWTP, while concurrently ensuring the maintenance
of acceptable effluent quality. Because high power prices are often
correlated with high energy demand and low supply, the plant can sell
surplus electricity during peak times, thus stabilising the grid.
However, it should be noted that the model is not without its
limitations. Firstly, the rule-based control strategy assumes no longterm effects on the microbiome, which represents a simplification. It is
therefore essential that further studies are conducted in order to experimentally validate the effects of the control strategies on the activated
sludge. Further, an increase in effluent pollution may have implications
for the plant’s compliance with regulatory standards. In some countries,
including Germany, optimisation of operational costs must not come
at the expense of effluent quality (DWA, 2015). Therefore, the model
should be used with caution in practice. In addition, this study only
considered the default open loop benchmark model. A more thorough
comparison to closed loop control strategies must be undertaken in
order to accurately compare model performance to the status quo
benchmarking strategy. Finally, the model has demonstrated its capacity for further utilisation in conjunction with more advanced control
strategies that encompass the consideration of look-ahead information,
sensor-based control, and machine learning algorithms.
4. Conclusion
The Energy Management model presented in this paper is a valuable
tool for optimising the energy consumption of WWTPs. The underlying BSM2 model is validated against the original model in MATLAB/Simulink and shows good agreement with the benchmark data
while providing a significant reduction in execution time compared to
the original implementation.
The capabilities of the model are demonstrated with a rule-based
control strategy that reduces power consumption during peak price
periods. An example control strategy is selected using Pareto frontier
analysis. The example control strategy is selected because of its balance
between operational cost and effluent quality. It is able to reduce power
consumption and increase the plant’s revenue by 12.3% by selling more
surplus energy during peak periods. However, it should be noted that
this strategy comes at the expense of effluent quality, as evidenced
_J._ _Miederer_ _et_ _al._
Fig. 9. Power generation by the CHP units and biogas storage volume for the selected
control strategy.
Fig. 10. Heat generation by the CHP units and Boilers as well as Cooler head
consumption and heat net temperature for the selected control strategy.
Fig. 11. Behaviour of the selected control strategy from 127 d to 129 d. The dashed red
line marks the effluent ammonia threshold.
by a 10.5% increase in the _???_ . The Energy Management extension
provides researchers with a flexible tool to gain insight into WWTP’s
energy usage and help them make informed decisions to improve
energy efficiency and economic performance.
Future work will focus on extending the capabilities of the Energy
Management model. This includes adding more gas consumers and
detailed gas management and upgrading modules, such as biomethane
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
upgrading systems (Elhaus et al., 2023; Markthaler et al., 2020; Hauser
et al., 2022). Also, the potential to store or sell energy from the waste
heat provided by the CHPs, instead of dissipating it with Coolers,
could be investigated (Weitzer et al., 2022), as well as the impact of
reject water scheduling on the energy management, as demonstrated
by Liu et al. (2021). As the development of BSM2 continues, the model
will be updated to reflect the latest advancements, such as advanced
assessment of GHG emissions or phosphorous removal (Jeppsson, 2017;
Flores-Alsina et al., 2011; Arnell, 2016; Gujer et al., 1995; Henze et al.,
1999).
To contribute to its original benchmarking purpose, the model will
be made available as a dedicated Gymnasium environment (Towers
et al., 2023). This will allow data science and machine learning researchers to develop and test new control strategies for WWTPs using
advanced data-driven algorithms, e.g. in the context of reinforcement
learning with a focus on energy management. To make the solely
text-based model more accessible, a graphical user interface (GUI) is
planned to be developed. This GUI will allow WWTP operators to easily
configure the model and run simulations without requiring extensive
programming knowledge. The GUI will also provide visualisation tools
to help users understand the model’s behaviour and results, making it
easier to identify potential areas for improvement in their own plants.
Finally, the model is also made available as an open source tool for
the wider community to use and contribute to via a [GitHub](https://github.com/FAU-EVT/bsm2-python) [Repository](https://github.com/FAU-EVT/bsm2-python)
and Python package manager [PyPI.](https://pypi.org/project/bsm2-python/) Providing this flexible and extensible platform for simulating WWTPs to a broad audience, the authors
hope to further encourage research and innovation in the management
of wastewater treatment plants in a changing energy market.
CRediT authorship contribution statement
Jonas Miederer: Writing - original draft, Visualization, Validation,
Software, Methodology, Conceptualization. Lukas Meier: Writing review & editing, Validation, Software, Formal analysis, Data curation. Nora Elhaus: Writing - review & editing, Supervision, Funding
acquisition, Formal analysis. Simon Markthaler: Writing - review &
editing, Formal analysis. Jürgen Karl: Writing - review & editing,
Supervision, Resources, Project administration, Funding acquisition,
Formal analysis.
Declaration of Generative AI and AI-assisted technologies in the
writing process
During the preparation of this work the authors used GPT-4 and
DeepL Write in order to improve readability and language of the work.
After using these services, the authors reviewed and edited the content
as needed and take full responsibility for the content of the published
article.
Declaration of competing interest
The authors declare the following financial interests/personal relationships which may be considered as potential competing interests:
Jonas Miederer reports financial support was provided by German
Federal Ministry for Economic Affairs and Climate Action. If there
are other authors, they declare that they have no known competing
financial interests or personal relationships that could have appeared
to influence the work reported in this paper.
Acknowledgements
The authors would like to thank the IWA Task Group on Benchmarking of Control Strategies for WWTPs for providing the BSM2 model and
the associated documentation. The authors would also like to thank the
German Federal Ministry for Economic Affairs and Climate Action for
funding the research project KLÄFFIZIENT - grant number 03EI5421A
- that led to the development of the Energy Management model.
_J._ _Miederer_ _et_ _al._
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
Table A.3
<u>Mean</u> <u>absolute</u> <u>percentage</u> <u>error</u> <u>for</u> <u>the</u> <u>different</u> <u>components</u> <u>and</u> <u>resolutions.</u> <u>All</u> <u>values</u> <u>are</u> <u>in</u> <u>percent.</u>
Comp. _??_ _??_ _??_ _??_ _???_ _???_ _??_ _??_ _???_ _???_ _???_ _???_ _????_ _????_ _?_ _?_
1 min 0.21 1.29 1.08 1.79 0.82 1.48 1.71 2.23 0.93 4.63 0.65 1.71 0.17 0.48 2.26 0.04
5 min 0.47 2.33 1.97 2.68 0.9 2.07 2.9 6.83 1.59 11.27 1.27 2.42 0.29 1.08 2.26 0.2
15 min 1.16 4.93 4.21 5.26 1.5 3.71 6.67 19.15 3.8 32.21 2.8 4.62 0.67 2.5 2.26 0.72
Table B.4
<u>List</u> <u>of</u> <u>surveyed</u> <u>WWTPs</u> <u>with</u> <u>CHP</u> <u>and</u> <u>boiler</u> <u>capacities.</u> <u>Some</u> <u>plant</u> <u>operators</u> <u>made</u> <u>no</u> <u>data</u> <u>for</u> <u>boiler</u> <u>capacities</u> <u>available.</u>
Name Population equivalent CHP total capacity [kW] Boiler total capacity [kW]
Klärwerk 1 Nürnberg 1 400 000 6776 4896
Hauptklärwerk Stuttgart-Mühlhausen 850 000 2400 Stadtentwässerung Dresden-Kaditz 820 000 2000 Stadtentwässerung Augsburg 470 000 3800 2300
AZV Breisgauer Bucht 450 000 2142 Abwasserverband Kempten Allgäu 360 000 2286 1720
ELW Wiesbaden Hauptklärwerk 350 000 1800 1480
Stadtentwässerung Bayreuth 300 000 1318 Stadtentwässerung Erlangen 240 000 900 Stadtentwässerung Bamberg 219 453 1420 Stadtenwässerung Fürth 181 400 1113 670
Stadtentwässerung Rosenheim 170 000 1500 650
Stadtentwässerung Schweinfurt 160 275 1200 Verbandsklärwerk Erdinger Moos 140 000 1054 ELW Wiesbaden-Biebrich 130 000 1200 Abwasserzweckverband Staufener Bucht 84 922 250 295
Nebenklärwerk Stuttgart-Ditzingen 82 991 240 720
Nebenklärwerk Stuttgart-Möhringen 64 325 240 1200
Nebenklärwerk Stuttgart-Plieningen 56 136 300 610
Stadtentwässerung Gunzenhausen 20 738 160
Appendix A. Effluent error over different resolutions
See Table A.3.
Appendix B. List of surveyed WWTPs with CHP and boiler capacities
See Table B.4.
Data availability
Link to the Code for the model is given in the manuscript.
References
Alex, J., Benedetti, L., Copp, J., Gernaey, K., Jeppsson, U., Nopens, I., Pons, M.
N., Steyer, J.-P., Vanrolleghem, P., 2008. Benchmark Simulation Model No. 1
(BSM1). Technical Report TEIE-7229, Lund University, URL: [https://www.iea.lth.](https://www.iea.lth.se/publications/Reports/LTH-IEA-7229.pdf)
[Arnell,se/publications/Reports/LTH-IEA-7229.pdfM.,](https://www.iea.lth.se/publications/Reports/LTH-IEA-7229.pdf) 2016. [Performance](https://www.iea.lth.se/publications/Reports/LTH-IEA-7229.pdf) [Assessment.](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb2) of Wastewater Treatment Plants:
Multi-Objective Analysis Using [Plant-Wide](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb2) Models (Ph.D. thesis). Lund University.
[Batstone,](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb3) D.J., Keller, J., Angelidaki, I., [Kalyuzhnyi,](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb2) S., Pavlostathis, S., Rozzi, A.,
Sanders, W., Siegrist, H., Vavilin, V., [2002.](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb3) The IWA anaerobic digestion model
no 1 (ADM1). Water Sci. Technol. 45 [(10),](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb3) 65–73.
Belchior, C.A.C., Araújo, [R.A.M.,](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb3) Landeck, J.A.C., 2012. Dissolved oxygen control of
the activated sludge wastewater treatment process using stable adaptive fuzzy control. Comput. Chem. Eng. 37, 152–162. [http://dx.doi.org/10.1016/j.compchemeng.](http://dx.doi.org/10.1016/j.compchemeng.2011.09.011)
[Bürger,2011.09.011R.,](http://dx.doi.org/10.1016/j.compchemeng.2011.09.011) Diehl,. S., Farås, S., Nopens, I., Torfs, E., 2013. A consistent modelling
methodology for secondary settling tanks: a reliable numerical method. Water Sci.
Technol. 68 (1), 192–208. [http://dx.doi.org/10.2166/wst.2013.239.](http://dx.doi.org/10.2166/wst.2013.239)
Corominas, L., Rieger, L., Takács, I., Ekama, G., Hauduc, H., Vanrolleghem, P.A.,
Oehmen, A., Gernaey, K.V., van Loosdrecht, M.C., Comeau, Y., 2010. New framework for standardized notation in wastewater treatment modelling. Water Sci.
Technol. 61 (4), 841–857. [http://dx.doi.org/10.2166/wst.2010.912.](http://dx.doi.org/10.2166/wst.2010.912)
[DHI,](https://www.dhigroup.com/technologies/mikepoweredbydhi/west) 2024. West. URL: [https://www.dhigroup.com/technologies/mikepoweredbydhi/](http://dx.doi.org/10.2166/wst.2010.912)
[west (Accessed](https://www.dhigroup.com/technologies/mikepoweredbydhi/west) 27 March 2025).
[DWA,](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb8) 2015. Energiecheck und [Energieanalyse](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb8) - Instrumente zur Energieoptimierung
Elhaus, N., Kolb, S., Müller, J., Goldbrunner, M., Karl, J., Herkendell, K., 2023.
Environmental assessment of anaerobic digestion and biological methanation in
power-to-methane systems. J. Clean. Prod. 429, 139509. [http://dx.doi.org/10.](http://dx.doi.org/10.1016/j.jclepro.2023.139509)
[Elio,1016/j.jclepro.2023.139509J.,](http://dx.doi.org/10.1016/j.jclepro.2023.139509) [Milcarek,](http://dx.doi.org/10.1016/j.jclepro.2023.139509) R.J., 2022. Techno-economic. analysis and case study of combined
heat and power systems in a wastewater treatment plant. Energy 260, 125106.
[EnviroSim,http://dx.doi.org/10.1016/j.energy.2022.1251062024.](http://dx.doi.org/10.1016/j.energy.2022.125106) BioWin. [URL:](http://dx.doi.org/10.1016/j.energy.2022.125106) [https://envirosim.com/products.](https://envirosim.com/products) (Accessed 27 March
Flores-Alsina,2025). X., Comas, J., Rodriguez-Roda, I., Gernaey, K.V., Rosen, C., 2009.
Including the effects of filamentous bulking sludge during the simulation of
wastewater treatment plants using a risk assessment model. Water Res. 43 (18),
4527–4538. [http://dx.doi.org/10.1016/j.watres.2009.07.033.](http://dx.doi.org/10.1016/j.watres.2009.07.033)
Flores-Alsina, X., Corominas, L., Snip, [L.,](http://dx.doi.org/10.1016/j.watres.2009.07.033) Vanrolleghem, P.A., 2011. Including green
house gas emissions during benchmarking of wastewater treatment plant control
strategies. Water Res. 45 (16), 4700–4710. [http://dx.doi.org/10.1016/j.watres.](http://dx.doi.org/10.1016/j.watres.2011.04.040)
[Gernaey,2011.04.040K.V.,](http://dx.doi.org/10.1016/j.watres.2011.04.040) Jeppsson,. U., 2014. Benchmarking of Control Strategies for Wastewater
Treatment Plants. IWA publishing, [http://dx.doi.org/10.2166/9781780401171.](http://dx.doi.org/10.2166/9781780401171)
Gernaey, K.V., Van Loosdrecht, M.C., Henze, M., Lind, [M.,](http://dx.doi.org/10.2166/9781780401171) Jørgensen, S.B., 2004.
Activated sludge wastewater treatment plant modelling and simulation: state of the
art. Environ. Model. Softw. 19 (9), 763–783. [http://dx.doi.org/10.1016/j.envsoft.](http://dx.doi.org/10.1016/j.envsoft.2003.03.005)
[Gujer,2003.03.005W.,](http://dx.doi.org/10.1016/j.envsoft.2003.03.005) Henze,. M., 1991. Activated sludge modelling and simulation. Water Sci.
Technol. 23 (4–6), 1011–1023. [http://dx.doi.org/10.2166/wst.1991.0553.](http://dx.doi.org/10.2166/wst.1991.0553)
Gujer, W., Henze, M., Mino, T., Matsuo, T., Wentzel, M.C., Marais, G., 1995. The
activated sludge model no. 2: biological phosphorus removal. Water Sci. Technol.
31 (2), 1–11. [http://dx.doi.org/10.1016/0273-1223(95)00175-m.](http://dx.doi.org/10.1016/0273-1223%0x2895%0x2900175-m)
Gujer, W., Henze, M., Mino, T., Van [Loosdrecht,](http://dx.doi.org/10.1016/0273-1223%0x2895%0x2900175-m) M., 1999. Activated sludge model no.
3. Water Sci. Technol. 39 (1), 183–193. [http://dx.doi.org/10.2166/wst.1999.0039.](http://dx.doi.org/10.2166/wst.1999.0039)
Han, H.-G., Qiao, J.-F., Chen, Q.-L., 2012. Model predictive [control](http://dx.doi.org/10.2166/wst.1999.0039) of dissolved oxygen
concentration based on a self-organizing RBF neural network. Control Eng. Pract.
20 (4), 465–476. [http://dx.doi.org/10.1016/j.conengprac.2012.01.001.](http://dx.doi.org/10.1016/j.conengprac.2012.01.001)
Han, H.-G., Zhang, L., Hou, Y., Qiao, J.-F., [2015.](http://dx.doi.org/10.1016/j.conengprac.2012.01.001) Nonlinear model predictive control
based on a self-organizing recurrent neural network. IEEE Trans. Neural Netw.
Learn. Syst. 27 (2), 402–415. [http://dx.doi.org/10.1109/tnnls.2015.2465174.](http://dx.doi.org/10.1109/tnnls.2015.2465174)
Hatch, 2024. GPS-X. URL: [https://www.hatch.com/hydromantis/gps-x/ (Accessed](http://dx.doi.org/10.1109/tnnls.2015.2465174) 27
March 2025).
Hauser, A., Neubert, M., Feldner, A., Horn, A., Grimm, F., Karl, J., 2022. Design and
implementation of an additively manufactured reactor concept for the catalytic
methanation. Appl. Sci. 12 (18), 9393. [http://dx.doi.org/10.3390/app12189393.](http://dx.doi.org/10.3390/app12189393)
Henze, M., Grady, C.L., Gujer, W., Marais, G., Matsuo, T., [1987.](http://dx.doi.org/10.3390/app12189393) A general model for
single-sludge wastewater treatment systems. Water Res. 505–515. [http://dx.doi.](http://dx.doi.org/10.1016/0043-1354%0x2887%0x2990058-3)
[Henze,org/10.1016/0043-1354(87)90058-3M.,](http://dx.doi.org/10.1016/0043-1354%0x2887%0x2990058-3) Gujer, W., Mino, T., Matsuo,. T., Wentzel, M.C., Marais, G.v.R., Van Loos
drecht, M.C., 1999. Activated sludge model no. 2d, ASM2d. Water Sci. Technol. 39
(1), 165–182. [http://dx.doi.org/10.1016/s0273-1223(98)00829-4.](http://dx.doi.org/10.1016/s0273-1223%0x2898%0x2900829-4)
von Abwasseranlagen. Technical [Report,](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb8) Hennef, Germany, p. 62.
Dynamita, 2024. Sumo. URL: [https://dynamita.com/ (Accessed](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb8) 27 March 2025).
_J._ _Miederer_ _et_ _al._
[Hindmarsh,](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb26) A.C., 1983. Odepack, a [systemized](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb26) collection of ODE solvers. Sci. Comput.
[IFAK,55–64.2024.](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb26) Simba. URL: [https://www.ifak.eu/en/produkte/simba (Accessed](https://www.ifak.eu/en/produkte/simba) 27 March
Jeppsson,2025).U., 2017. The benchmark simulation modelling platform–Areas of recent
development and extension. In: Frontiers in Wastewater Treatment and Modelling:
FICWTM 2017 1. Springer, pp. 81–91. [http://dx.doi.org/10.1007/978-3-319-58421-](http://dx.doi.org/10.1007/978-3-319-58421-8_13)
[Jeppsson,8_13.](http://dx.doi.org/10.1007/978-3-319-58421-8_13) U., Pons, M.-N., Nopens, I., Alex, J., Copp, J., Gernaey, K., Rosen, C.,
Steyer, J.-P., Vanrolleghem, P., 2007. Benchmark simulation model no 2—General
protocol and exploratory case studies. Water Sci. Technol. : A J. Int. Assoc. Water
Pollut. Res. 56, 67–78. [http://dx.doi.org/10.2166/wst.2007.604.](http://dx.doi.org/10.2166/wst.2007.604)
Jeppsson, U., Rosen, C., Alex, J., Copp, J., Gernaey, K.V., Pons, M.-N., Vanrol
leghem, P.A., 2006. Towards a benchmark simulation model for plant-wide control
strategy performance evaluation of WWTPs. Water Sci. Technol. 53 (1), 287–295.
[Kirchem,http://dx.doi.org/10.2166/wst.2006.031D.,](http://dx.doi.org/10.2166/wst.2006.031) Lynch, [M.Á.,](http://dx.doi.org/10.2166/wst.2006.031) Bertsch, V., Casey,. E., 2018. Market effects of industrial
demand response and flexibility potential from wastewater treatment facilities. In:
2018 15th International Conference on the European Energy Market. EEM, pp. 1–6.
[Lam,http://dx.doi.org/10.1109/eem.2018.8469974S.K.,](http://dx.doi.org/10.1109/eem.2018.8469974) Pitrou, A., [Seibert,](http://dx.doi.org/10.1109/eem.2018.8469974) S., 2015. Numba: A. llvm-based python jit compiler. In:
Proceedings of the Second Workshop on the LLVM Compiler Infrastructure in HPC.
pp. 1–6. [http://dx.doi.org/10.1145/2833157.2833162.](http://dx.doi.org/10.1145/2833157.2833162)
Lee, S., Esfahani, I.J., Ifaei, P., [Moya,](http://dx.doi.org/10.1145/2833157.2833162) W., Yoo, C., 2017. Thermo-environ-economic
modeling and optimization of an integrated wastewater treatment plant with
a combined heat and power generation system. Energy Convers. Manage. 142,
385–401. [http://dx.doi.org/10.1016/j.enconman.2017.03.060.](http://dx.doi.org/10.1016/j.enconman.2017.03.060)
Liu, Q., Dereli, R.K., Flynn, D., Casey, [E.,](http://dx.doi.org/10.1016/j.enconman.2017.03.060) 2021. Demand response through reject water
scheduling in water resource recovery facilities: A demonstration with BSM2. Water
Res. 188, 116516. [http://dx.doi.org/10.1016/j.watres.2020.116516.](http://dx.doi.org/10.1016/j.watres.2020.116516)
Longo, S., d’Antoni, B.M., Bongards, M., [Chaparro,](http://dx.doi.org/10.1016/j.watres.2020.116516) A., Cronrath, A., Fatone, F.,
Lema, J.M., Mauricio-Iglesias, M., Soares, A., Hospido, A., 2016. Monitoring and
diagnosis of energy consumption in wastewater treatment plants. A state of the art
and proposals for improvement. Appl. Energy 179, 1251–1268. [http://dx.doi.org/](http://dx.doi.org/10.1016/j.apenergy.2016.07.043)
[Markthaler,10.1016/j.apenergy.2016.07.043S.,](http://dx.doi.org/10.1016/j.apenergy.2016.07.043) [Plankenbühler,](http://dx.doi.org/10.1016/j.apenergy.2016.07.043) T., Weidlich,. T., Neubert, M., Karl, J., 2020. Numerical
simulation of trickle bed reactors for biological methanation. Chem. Eng. Sci. 226,
115847. [http://dx.doi.org/10.1016/j.ces.2020.115847.](http://dx.doi.org/10.1016/j.ces.2020.115847)
[Miederer,](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb37) J., Kolb, S., Karl, J., [2022.](http://dx.doi.org/10.1016/j.ces.2020.115847) [Techno-economic](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb37) assessment of direct methanation
_Energy_ _Reports_ _13_ _(2025)_ _6349_ _6361_
Sanaye, S., Yazdani, M., 2022. Energy, exergy, economic and environmental analysis
of a running integrated anaerobic digester-combined heat and power system in a
municipal wastewater treatment plant. Energy Rep. 8, 9724–9741. [http://dx.doi.](http://dx.doi.org/10.1016/j.egyr.2022.07.155)
[Santín,org/10.1016/j.egyr.2022.07.155I.,](http://dx.doi.org/10.1016/j.egyr.2022.07.155) Pedret, [C.,](http://dx.doi.org/10.1016/j.egyr.2022.07.155) Vilanova, R., 2015.. Applying variable dissolved oxygen set point
in a two level hierarchical control structure to a wastewater treatment process. J.
Process Control 28, 40–55. [http://dx.doi.org/10.1016/j.jprocont.2015.02.005.](http://dx.doi.org/10.1016/j.jprocont.2015.02.005)
Sarpong, G., Gude, V.G., 2021. Codigestion and [combined](http://dx.doi.org/10.1016/j.jprocont.2015.02.005) heat and power systems
energize wastewater treatment plants–analysis and case studies. Renew. Sustain.
Energy Rev. 144, 110937. [http://dx.doi.org/10.1016/j.rser.2021.110937.](http://dx.doi.org/10.1016/j.rser.2021.110937)
Sarpong, G., Gude, V.G., Magbanua, B.S., 2019. Energy autarky of small scale
wastewater treatment plants by enhanced carbon capture and codigestion–a quantitative analysis. Energy Convers. Manage. 199, 111999. [http://dx.doi.org/10.1016/](http://dx.doi.org/10.1016/j.enconman.2019.111999)
[Sarpong,j.enconman.2019.111999G.,](http://dx.doi.org/10.1016/j.enconman.2019.111999) [Gude,](http://dx.doi.org/10.1016/j.enconman.2019.111999) V.G., Magbanua,. B.S., Truax, D.D., 2020. Evaluation of energy
recovery potential in wastewater treatment based on codigestion and combined
heat and power schemes. Energy Convers. Manage. 222, 113147. [http://dx.doi.](http://dx.doi.org/10.1016/j.enconman.2020.113147)
[Savun-Hemimoğlu,org/10.1016/j.enconman.2020.113147B.,](http://dx.doi.org/10.1016/j.enconman.2020.113147) 2021. On the use. of mathematical models for wastewater
treatment: a review and analysis of activated sludge models ASM1 and ASM3. Int.
J. Environ. Geoinformatics 8 (1), 1–18. [http://dx.doi.org/10.30897/ijegeo.794643.](http://dx.doi.org/10.30897/ijegeo.794643)
Schneider, M.Y., Quaghebeur, W., Borzooei, S., Froemelt, [A.,](http://dx.doi.org/10.30897/ijegeo.794643) Li, F., Saagi, R.,
Wade, M.J., Zhu, J.-J., Torfs, E., 2022. Hybrid modelling of water resource recovery
facilities: status and opportunities. Water Sci. Technol. 85 (9), 2503–2524. [http:](http://dx.doi.org/10.2166/wst.2022.115)
[Sheik,//dx.doi.org/10.2166/wst.2022.115A.G.,](http://dx.doi.org/10.2166/wst.2022.115) Ambati, S.R., 2024. Design. of supervisory controllers to reduce energy
consumption in plant-wide biological wastewater treatment plants with feedback
signals from non-ideal sensors. Chem. Eng. Commun. 211 (1), 67–83. [http://dx.](http://dx.doi.org/10.1080/00986445.2023.2218290)
[Skouteris,doi.org/10.1080/00986445.2023.2218290G.,](http://dx.doi.org/10.1080/00986445.2023.2218290) Parra [Ramirez,](http://dx.doi.org/10.1080/00986445.2023.2218290) M.A., Reinecke, S.F.,. Hampel, U., 2021. Energy flexibility
chances for the wastewater treatment plant of the benchmark simulation model 1.
Processes 9 (10), 1854. [http://dx.doi.org/10.3390/pr9101854.](http://dx.doi.org/10.3390/pr9101854)
[SMARD,](https://www.smard.de/home) 2024. SMARD strommarktdaten [2023.](http://dx.doi.org/10.3390/pr9101854) URL: [https://www.smard.de/](https://www.smard.de/home)
[home (Accessed](https://www.smard.de/home) 27 March 2024).
[Takács,](https://www.smard.de/home) I., Patry, G.G., Nolasco, D., 1991. A dynamic model of the clarification
thickening process. Water Res. 25 (10), 1263–1271. [http://dx.doi.org/10.1016/](http://dx.doi.org/10.1016/0043-1354%0x2891%0x2990066-y)
[Torolsan,0043-1354(91)90066-yK.,](http://dx.doi.org/10.1016/0043-1354%0x2891%0x2990066-y) [Bianchini,](http://dx.doi.org/10.1016/0043-1354%0x2891%0x2990066-y) I., Sauer,. A., 2023. Dynamic energy flexibility pricing for indus
on wastewater [treatment](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb37) plants.
Nopens, I., [Batstone,](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb37) D.J., Copp, J.B., Jeppsson, U., Volcke, E., Alex, J., Van
rolleghem, P.A., 2009. An ASM/ADM model interface for dynamic plant-wide
simulation. Water Res. 43 (7), 1913–1923. [http://dx.doi.org/10.1016/j.watres.](http://dx.doi.org/10.1016/j.watres.2009.01.012)
[Otterpohl,2009.01.012R.,](http://dx.doi.org/10.1016/j.watres.2009.01.012) Freund,. M., 1992. Dynamic models for clarifiers of activated sludge
plants with dry and wet weather flows. Water Sci. Technol. 26 (5–6), 1391–1400.
[Otterpohl,http://dx.doi.org/10.2166/wst.1992.0582R.,](http://dx.doi.org/10.2166/wst.1992.0582) Rolfs, [T.,](http://dx.doi.org/10.2166/wst.1992.0582) Londong, J., 1994.. Optimizing operation of wastewater
treatment plants by offline and online computer simulation. Water Sci. Technol.
30 (2), 165. [http://dx.doi.org/10.2166/wst.1994.0040.](http://dx.doi.org/10.2166/wst.1994.0040)
Parra Ramirez, M.A., Fogel, S., [Reinecke,](http://dx.doi.org/10.2166/wst.1994.0040) S.F., Hampel, U., 2023. Techno-economic
assessment of PEM electrolysis for O2 supply in activated sludge systems—A
simulation study based on the BSM2 wastewater treatment plant. Processes 11
(6), 1639. [http://dx.doi.org/10.3390/pr11061639.](http://dx.doi.org/10.3390/pr11061639)
Plósz, B.G., Weiss, M., [Printemps,](http://dx.doi.org/10.3390/pr11061639) C., Essemiani, K., Meinhold, J., 2007. One
dimensional modelling of the secondary clarifier-factors affecting simulation in the
clarification zone and the assessment of the thickening flow dependence. Water
Res. 41 (15), 3359–3371. [http://dx.doi.org/10.1016/j.watres.2007.03.007.](http://dx.doi.org/10.1016/j.watres.2007.03.007)
Revollar, S., Meneses, M., Vilanova, R., Vega, P., [Francisco,](http://dx.doi.org/10.1016/j.watres.2007.03.007) M., 2021. Eco-efficiency
assessment of control actions in wastewater treatment plants. Water 13 (5), 612.
[Saagi,http://dx.doi.org/10.3390/w13050612R.,](http://dx.doi.org/10.3390/w13050612) Flores-Alsina, X., Kroll, S., Gernaey,. K.V., Jeppsson, U., 2017. A model library
trial energy systems. In: 2023 IEEE 11th International Conference on Smart Energy
Grid Engineering. SEGE, pp. 201–205. [http://dx.doi.org/10.1109/sege59172.2023.](http://dx.doi.org/10.1109/sege59172.2023.10274594)
[Towers,10274594M.,](http://dx.doi.org/10.1109/sege59172.2023.10274594) Terry,. J.K., Kwiatkowski, A., Balis, J.U., Cola, G.d., Deleu, T., Goulão, M.,
Kallinteris, A., KG, A., Krimmel, M., Perez-Vicente, R., Pierré, A., Schulhoff, S.,
Tai, J.J., Shen, A.T.J., Younis, O.G., 2023. Gymnasium. [http://dx.doi.org/10.5281/](http://dx.doi.org/10.5281/zenodo.8127026)
[Vesilind,zenodo.8127026P.A.,](http://dx.doi.org/10.5281/zenodo.8127026) 1968.. Design of prototype [thickeners](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb58) from batch settling tests. Water
Sew. Work. [115](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb58) (7), 302–307.
[Vrecko,](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb59) D., Volcke, E., Jeppsson, U., [Gernaey,](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb59) K., 2007. Evaluation Criteria Description
and Example for BSM2. [IWA](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb59) BSM TG [Technical](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb59) Report.
Wang, D., Ha, M., Qiao, J., [2020.](http://refhub.elsevier.com/S2352-4847%0x2825%0x2900324-5/sb59) Data-driven iterative adaptive critic control toward an
urban wastewater treatment plant. IEEE Trans. Ind. Electron. 68 (8), 7362–7369.
[Wanner,http://dx.doi.org/10.1109/tie.2020.3001840J.,](http://dx.doi.org/10.1109/tie.2020.3001840) 2021. The [development](http://dx.doi.org/10.1109/tie.2020.3001840) in biological. wastewater treatment over the
last 50 years. Water Sci. Technol. 84 (2), 274–283. [http://dx.doi.org/10.2166/](http://dx.doi.org/10.2166/9781789064490_ch3)
[Weitzer,9781789064490_ch3M.,](http://dx.doi.org/10.2166/9781789064490_ch3) [Müller,](http://dx.doi.org/10.2166/9781789064490_ch3) D.,. Steger, D., Charalampidis, A., Karellas, S., Karl, J., 2022.
Organic flash cycles in Rankine-based Carnot batteries with large storage temperature spreads. Energy Convers. Manage. 255, 115323. [http://dx.doi.org/10.1016/](http://dx.doi.org/10.1016/j.enconman.2022.115323)
[wwtmodels,j.enconman.2022.1153232025.](http://dx.doi.org/10.1016/j.enconman.2022.115323) Benchmark. simulation models. [https://github.com/wwtmodels/](https://github.com/wwtmodels/Benchmark-Simulation-Models)
[Benchmark-Simulation-Models](https://github.com/wwtmodels/Benchmark-Simulation-Models) (Accessed 29 March 2025).
for simulation and benchmarking of integrated urban wastewater systems. Environ.
Model. Softw. 93, 282–295. [http://dx.doi.org/10.1016/j.envsoft.2017.03.026.](http://dx.doi.org/10.1016/j.envsoft.2017.03.026)
섹션 본문
섹션 본문이 없습니다.
참고문헌 48건
- OPTIMIZING OPERATION OF WASTEWATER TREATMENT PLANTS BY OFFLINE AND ONLINE COMPUTER SIMULATION Water Science & Technology · Pergamon Press · 1994 10.2166/wst.1994.0040
- Benchmark Simulation Model no. 1 (BSM1) 2008
- Benchmarking of Control Strategies for Wastewater Treatment Plants IWA Publishing eBooks · UWA Publishing · 2014 10.2166/9781780401171
- A dynamic model of the clarification-thickening process Water Research · Elsevier BV · 1991 10.1016/0043-1354(91)90066-y
- An ASM/ADM model interface for dynamic plant-wide simulation Water Research · Elsevier BV · 2009 10.1016/j.watres.2009.01.012
- New framework for standardized notation in wastewater treatment modelling Water Science & Technology · Pergamon Press · 2010 10.2166/wst.2010.912
- Dissolved oxygen control of the activated sludge wastewater treatment process using stable adaptive fuzzy control Computers & Chemical Engineering · Elsevier BV · 2011 10.1016/j.compchemeng.2011.09.011
- One-dimensional modelling of the secondary clarifier-factors affecting simulation in the clarification zone and the assessment of the thickening flow dependence Water Research · Elsevier BV · 2007 10.1016/j.watres.2007.03.007
- Towards a benchmark simulation model for plant-wide control strategy performance evaluation of WWTPs Water Science & Technology · Pergamon Press · 2006 10.2166/wst.2006.031
- Model predictive control of dissolved oxygen concentration based on a self-organizing RBF neural network Control Engineering Practice · Elsevier BV · 2012 10.1016/j.conengprac.2012.01.001
- A general model for single-sludge wastewater treatment systems Water Research · Elsevier BV · 1987 10.1016/0043-1354(87)90058-3
- Benchmark simulation model no 2: general protocol and exploratory case studies Water Science & Technology · Pergamon Press · 2007 10.2166/wst.2007.604
- Applying variable dissolved oxygen set point in a two level hierarchical control structure to a wastewater treatment process Journal of Process Control · Elsevier BV · 2015 10.1016/j.jprocont.2015.02.005
- A consistent modelling methodology for secondary settling tanks: a reliable numerical method Water Science & Technology · Pergamon Press · 2013 10.2166/wst.2013.239
- Including greenhouse gas emissions during benchmarking of wastewater treatment plant control strategies Water Research · Elsevier BV · 2011 10.1016/j.watres.2011.04.040
- Including the effects of filamentous bulking sludge during the simulation of wastewater treatment plants using a risk assessment model Water Research · Elsevier BV · 2009 10.1016/j.watres.2009.07.033
- Activated sludge wastewater treatment plant modelling and simulation: state of the art Environmental Modelling & Software · Elsevier BV · 2003 10.1016/j.envsoft.2003.03.005
- The IWA Anaerobic Digestion Model No 1 (ADM1) Water Science & Technology · Pergamon Press · 2002 10.2166/wst.2002.0292
- Nonlinear Model Predictive Control Based on a Self-Organizing Recurrent Neural Network IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2015 10.1109/tnnls.2015.2465174
- Activated Sludge Modelling and Simulation Water Science & Technology · Pergamon Press · 1991 10.2166/wst.1991.0553
- Monitoring and diagnosis of energy consumption in wastewater treatment plants. A state of the art and proposals for improvement Applied Energy · Elsevier BV · 2016 10.1016/j.apenergy.2016.07.043
- Dynamic Models for Clarifiers of Activated Sludge Plants with Dry and Wet Weather Flows Water Science & Technology · Pergamon Press · 1992 10.2166/wst.1992.0582
- Performance Assessment of Wastewater Treatment Plants: Multi-Objective Analysis Using Plant-Wide Models 2016
- Thermo-environ-economic modeling and optimization of an integrated wastewater treatment plant with a combined heat and power generation system Energy Conversion and Management · Elsevier BV · 2017 10.1016/j.enconman.2017.03.060
- A model library for simulation and benchmarking of integrated urban wastewater systems Environmental Modelling & Software · Elsevier BV · 2017 10.1016/j.envsoft.2017.03.026
- Energy autarky of small scale wastewater treatment plants by enhanced carbon capture and codigestion – A quantitative analysis Energy Conversion and Management · Elsevier BV · 2019 10.1016/j.enconman.2019.111999
- Numerical simulation of trickle bed reactors for biological methanation Chemical Engineering Science · Elsevier BV · 2020 10.1016/j.ces.2020.115847
- Data-Driven Iterative Adaptive Critic Control Toward an Urban Wastewater Treatment Plant IEEE Transactions on Industrial Electronics · Institute of Electrical and Electronics Engineers · 2020 10.1109/tie.2020.3001840
- Evaluation of energy recovery potential in wastewater treatment based on codigestion and combined heat and power schemes Energy Conversion and Management · Elsevier BV · 2020 10.1016/j.enconman.2020.113147
- Demand response through reject water scheduling in water resource recovery facilities: A demonstration with BSM2 Water Research · Elsevier BV · 2020 10.1016/j.watres.2020.116516
- On the Use of Mathematical Models for Wastewater Treatment: A Review and Analysis of Activated Sludge Models ASM1 and ASM3 International Journal of Environment and Geoinformatics · IJEGEO · 2020 10.30897/ijegeo.794643
- Eco-Efficiency Assessment of Control Actions in Wastewater Treatment Plants Water · Multidisciplinary Digital Publishing Institute · 2021 10.3390/w13050612
- Codigestion and combined heat and power systems energize wastewater treatment plants – Analysis and case studies Renewable and Sustainable Energy Reviews · Elsevier BV · 2021 10.1016/j.rser.2021.110937
- The development in biological wastewater treatment over the last 50 years Water Science & Technology · Pergamon Press · 2021 10.2166/wst.2021.095
- Energy Flexibility Chances for the Wastewater Treatment Plant of the Benchmark Simulation Model 1 Processes · Multidisciplinary Digital Publishing Institute · 2021 10.3390/pr9101854
- Activated Sludge Model No.2d, ASM2D Water Science & Technology · Pergamon Press · 1999 10.2166/wst.1999.0036
- Organic flash cycles in Rankine-based Carnot batteries with large storage temperature spreads Energy Conversion and Management · Elsevier BV · 2022 10.1016/j.enconman.2022.115323
- Activated Sludge Model No. 3 Water Science & Technology · Pergamon Press · 1999 10.2166/wst.1999.0039
- Hybrid modelling of water resource recovery facilities: status and opportunities Water Science & Technology · Pergamon Press · 2022 10.2166/wst.2022.115
- The Activated Sludge Model No. 2: biological phosphorus removal Water Science & Technology · Pergamon Press · 1995 10.2166/wst.1995.0061
- Proceedings of the Second Workshop on the LLVM Compiler Infrastructure in HPC 2015 10.1145/2833157
- Techno-economic analysis and case study of combined heat and power systems in a wastewater treatment plant Energy · Elsevier BV · 2022 10.1016/j.energy.2022.125106
- Energy, exergy, economic and environmental analysis of a running integrated anaerobic digester-combined heat and power system in a municipal wastewater treatment plant Energy Reports · Elsevier BV · 2022 10.1016/j.egyr.2022.07.155
- Design and Implementation of an Additively Manufactured Reactor Concept for the Catalytic Methanation Applied Sciences · Multidisciplinary Digital Publishing Institute · 2022 10.3390/app12189393
- 2009 6th International Conference on the European Energy Market 2022 18th International Conference on the European Energy Market (EEM) · 2009 10.1109/eem14936.2009
- Techno-Economic Assessment of PEM Electrolysis for O2 Supply in Activated Sludge Systems—A Simulation Study Based on the BSM2 Wastewater Treatment Plant Processes · Multidisciplinary Digital Publishing Institute · 2023 10.3390/pr11061639
- Design of supervisory controllers to reduce energy consumption in plant-wide biological wastewater treatment plants with feedback signals from non-ideal sensors Chemical Engineering Communications · Taylor & Francis · 2023 10.1080/00986445.2023.2218290
- Environmental assessment of anaerobic digestion and biological methanation in power-to-methane systems Journal of Cleaner Production · Elsevier BV · 2023 10.1016/j.jclepro.2023.139509