scieee AI-readable full text Open interactive document viewer

Quantitative assessment of energy and resource recovery in wastewater treatment plants based on plant-wide simulations

Fernández Arévalo, Tamara,Lizarralde, Izaro,Fernández-Polanco Fernández de Moreda, Fernando,Pérez Elvira, Sara Isabel,Garrido, Juan Manuel,Puig, Sebastiá,Poch Espallargas, Manuel,Grau, P.,Ayesa, Eduardo

Abstract

Producción Científica

Full text

Quantitative assessment of energy and resource recovery in 1 evolutionary wastewater treatment plants based on Plant-Wide 2 simulations 3 4 T. Fernández-Arévalo (a), I. Lizarralde (a), S.I. Pérez-Elvira (b), J.M. Garrido (c), S. Puig (d), M. Poch (d), P. Grau (a) 5 and E. Ayesa (a) 6 7 (a) Ceit-IK4 and Tecnun (University of Navarra), 15 Paseo Manuel de Lardizabal, San Sebastián 20018, Spain 8 (E-mail: [email protected]; [email protected]; [email protected]; [email protected]) 9 10 (b) Department of Chemical Engineering and Environmental Technology, University of Valladolid, C/Dr. 11 Mergelina, s/n, 47011 Valladolid, Spain (E-mail: [email protected]) 12 13 (c) Department of Chemical Engineering, Institute of Technology, University of Santiago de 14 Compostela, 15782 Santiago de Compostela, Spain (E-mail: juanmanuel.g[email protected] ) 15 16 (d) LEQUIA, Institute of the Environment, University of Girona, Campus Montilivi, C/Maria Aurèlia 17 Capmany, 69, E-17003, Girona, Catalonia, Spain (E-mail: [email protected]; 18 [email protected]) 19 20 21 22 Abstract 23 The growing development of technologies and processes for resource treatment and recovery is offering 24 endless possibilities for creating new plant wide configurations or modifying existing ones. However, the 25 configurations’ complexity, the interrelation between technologies and the influent characteristics turned 26 decision-making in a complex or unobvious process. In this frame, the Plant-Wide Model library presented in 27 this paper allows a thorough, comprehensive and accurate analysis of different plant configurations that are 28 basic aspects in decision-making from an energy and resource recovery perspective. In order to demonstrate 29 the potential of the library and the need to run simulation analyses, this paper carries out a comparative 30 analysis of evolutionary WWTP, from a techno-economic point of view. The selected layouts were (1) a 31 conventional WWTP based on a modified version of the Benchmark Simulation Model No. 2, (2) an 32 upgraded or retrofitted WWTP, and (3) a new WRRF concept denominated as C/N/P decoupling WWTP. The 33 study was based on a preliminary analysis of the organic matter and nutrient energy use and recovery options, 34 a comprehensive mass and energy flux distribution analysis in each configuration in order to compare and 35 identify areas for improvement, and a cost analysis of these plants for different influent COD/TN/TP ratios. 36 The plant layouts proposed in this paper are just a sample of the possibilities offered by current technologies. 37 Even so, the library presented here is generic and can be used to construct any other plant layout, provided 38 that a model is available. 39 40 Keywords 41 Energy and Resource recovery; Global mass and energy balance; Model-based assessment; Plant-Wide simulations; 42 43 44 1. INTRODUCTION 45 The purpose of the design and upgrade of conventional waste(water) treatment plants (WWTPs) has 46 traditionally been to remove the residual organic compounds and nutrients contained in the water to 47 fulfil quality standards. Resource or energy recovery was focused exclusively on obtaining energy 48 from the biogas produced in anaerobic sludge digestion. This biogas production can supply from a 49 quarter to half of the energy requirements for a WWTP with activated sludge (AS) process 50 (Crawford et al., 2010; McCarty et al., 2011; Puchongkawarin et al., 2015), which needs between 51 0.3 and 0.6 kWh m-3treated water (Foley et al., 2010)to fulfil the energetic needs of the plant. 52 Nevertheless, this value is only one tenth of that associated to the heat of combustion of organic 53 compounds contained in the wastewater (McCarty et al., 2011; Shoener et al., 2014; Kokabian et al., 54 2015). Hence, if a greater proportion of this energy were recovered, treatment plants could become 55 self-sufficient and producers of energy (Logan, 2004; Guest et al., 2009). 56 57 Recent concerns about climate change or sustainability have led to an increasing awareness of the 58 importance of resource recovery, energy minimization and environmental impact assessment, which 59 in turn has resulted in tightening effluent standards. Under this changing context, a new paradigm 60 has emerged in which municipal wastewater (MWW), traditionally considered to be a pollution 61 problem and an energy- and chemical-intensive activity with excess sludge disposal issues (Gude, 62 2015), is starting to be thought of as a continuous and sustainable source of chemical energy and 63 resources (Frijns et al., 2013). As a result, WWTPs are now considered to be Wastewater Resource 64 Recovery Facilities (WRRF) from which valuable products like chemicals, nutrients (mainly 65 phosphorus, P), bioenergy (methane from anaerobic digestion) and bio-products can be obtained 66 (Keller, 2008, Guest et al., 2009). To make this change possible, the water sector is developing new 67 and innovative treatment technologies, such as energy-efficient nutrient removal or recovery 68 technologies with Anammox, struvite crystallisers, phototropic bacteria, high rate algae systems, 69 sludge pre-treatment processes, or systems for the production of microbial polymers. 70 71 The most immediate step for getting this goal is the updating of existing plants in order to reduce 72 overall operating costs and recover resources. Thanks to the incorporation of new technologies or 73 different plant layouts, energy self-sufficient WWTPs is a feasible goal (Jeppsson et al., 2007). 74 Proof of this comes from the Strass and Wolfgangsee-Ischl WWTPs in Vienna (Wett et al., 2007; 75 Nowak et al., 2011). As stated in the work of Batstone et al. (2015), currently there are two 76 extended philosophies to address the transition from WWTPs to WRRF’s. One is the low energy 77 mainline (LEM) configuration, which focuses on using low strength anaerobic digestion processes 78 for treating raw domestic sewage, followed by nutrient removal processes (McCarty et al., 2011). 79 The other is the Partition-Release-Recover (PRR) configuration, which focuses on a first stage of 80 COD and nutrient accumulation in the solids, a second stage of release through the digestion 81 process, and a final stage of digestate treatment (Verstraete et al., 2009). 82 83 In the literature there are numerous studies comparing different plant layouts and analysing the 84 energy consumption of conventional WWTPs (Nowak, 2003; Gude, 2015, Tchobanoglous et al., 85 2014, Mininni et al., 2015), and fewer studies analysing advanced WWTPs (Garrido et al., 2013; 86 Batstone et al., 2015; Khiewwijit et al., 2015), many of which use life cycle analysis (LCA) 87 methods and decision support system (DSS) tools (Foley et al., 2010; Garrido-Baserba et al., 2014; 88 Bisinella de Faria, et al., 2015; Castillo et al., 2016). Even so, virtually all these studies are based 89 on operating cost analysis and/or are largely dependent on the quality of the data used and their 90 specifications. However, one of the main problems found in these energy assessments is the limited 91 information availableto reproduce disturbances or unusual situations (Jenkins et al., 2014). It is 92 for this reason thatthe best tool for overcoming all these obstacles is to conduct mass balances for 93 COD, N and P for the whole plant (Spindler & Vanrolleghem, 2012; Jenkins et al., 2014). The 94 detailed analysis of each streamallows a better understanding of the process, identifying areas for 95 improvement and opportunity for resource and energy recovery. Among existing approaches in the 96 literature, the Plant-Wide Modelling (PWM) methodology proposed by Ceit-IK4 (Grau et al., 2007; 97 Fernández-Arévalo et al., 2014; Lizarralde et al., 2015) constitutes a very suitable tool for 98 rigorously and globally assessing the incorporation of new leading-edge technologies in 99 conventional plant layouts (Fernández-Arévalo et al., 2015) or selecting the most appropriate 100 operating strategies at existing full-scale facilities (Fernández-Arévalo et al., 2016). 101 102 The main objective of this paper is to conduct a comparative analysis of evolutionary WWTPs, 103 from a techno-economic point of view, analysing in turn organic matter and nutrient energy use and 104 recovery options. To do this, an upgraded plant and a newly designed plant have been analysed and 105 compared against a conventional plant (based on the BSM2 configuration; Jeppsson et al., 2007). In 106 the upgraded or retrofitted WWTP, thermal hydrolysis (TH) technology and a nitritation/Anammox 107 process have been incorporated into the reference plant, and the new plant is a C/N/P decoupling 108 WWTP, which is based on the PRR configuration proposed by Batstone et al., (2015). 109 110 2. MODELLING TOOL: Plant-Wide Model Library 111 The Plant-Wide Modelling (PWM) methodology (Grau et al., 2007; Fernández-Arévalo et al., 2014; 112 Lizarralde et al., 2015) allows the rigorous and systematic construction of compatible unit-process 113 models (UPM) in order to describe the dynamic behaviour of different processes and technologies 114 in the water and sludge lines in an integrated way. This PWM methodology is based on selecting, 115 from a global list, the set of process transformations required to describe all unit-processes 116 incorporated into each specific WWTP. Thus, the model will be constituted by a unique set of 117 transformations and components vector that will allow the description of all relevant processes 118 occurring in the plant. An accurate definition of the stoichiometry and the enthalpies of formation 119 ensures the elemental mass, charge and energy continuity through the whole plant (Fernández-120 Arévalo et al., 2014). This methodology allows the straightforward construction of different plant-121 wide models, which is especially suitable for the comparative assessment of any combination of 122 existing technologies and configurations or those that are under development. 123 124 Following the guidelines proposed by Grau et al. (2007), Fernández-Arévalo et al. (2014) and 125 Lizarralde et al. (2015) and with the goal of simplifying plant-wide models construction, this paper 126 presents a new model library (Figure 1). The users can construct their own plant wide models by 127 means the appropriate selection of the category, unit-process models and cost models depending on 128 the case under study (Fernández-Arévalo et al., 2017). 129 130 Figure 1. Schematic representation of the Ceit Plant-Wide Model library. 131 132 2.1. Category selection 133 Each category includes equations describing a set of biochemical, chemical and physico-chemical 134 transformations. Depending on the complexity of the WWTP and the goals and scope of the 135 modelling study users could select one category or another. The model categories have been 136 developed combining conventional biological processes described in ASM (Henze et al., 2000) and 137 ADM (Batstone et al., 2002) models with chemical and physico-chemical processes. All of them 138 are represented by means of the definition of a stoichiometric matrix and kinetics vector (Grau et 139 al., 2007; Lizarralde et al., 2015). The nomenclature used to define the categories is as follows: 140 “C”, “N” and “P” describe biological organic matter biodegradation, N biodegradation, and 141 biological and chemical P removal, respectively, all of them in aerobic and anoxic conditions at low 142 and high temperatures (TH reactions); “2N” specifies two-step N removal and Anammox reactions; 143 “chem” denotes chemical P but not biological P removal; “prec” includes precipitation reactions; 144 and finally, “AnD” describes anaerobic conditions at low and high temperatures (fermentation and 145 digestion). 146 147 The organized structure that the methodology presents enables the straightforward development of 148 categories, allowing the library to be continuously updated. 149 150 2.2. Unit-process model selection 151 The Ceit PWM library contains a set of unit-process models that describes the mass and energy 152 transport in each unit. According to the features of novel technologies and processes analysed in 153 advanced WWTPs, these models consider in most of the cases aqueous, gas and solid phases and 154 mass and energy exchange among them (Fernández-Arévalo et al., 2014; Lizarralde et al., 2015). 155 156 2.3. Cost model selection 157 Lastly, the library includes a set of actuator models, specific energy ratios and dosage cost models 158 in order to estimate in detail the costs of each element (see Table 1). All actuator models are 159 developed based on engineering expressions instead of directly using cost curves or fixed values. 160 The models are standardized, so they can be used interchangeably in any category. 161 162 Table 1. Description of cost models (Actuators, Specific Costs and Dosage Cost models) 163 Actuator Models Equations For maintaining solids in suspension Stirrer Engine Model For rapid mixing or flocculation Hydraulic pump model Blower and Compressor model Actuator Models Equations Turbine model Support Models Equations Detailed Model Water/Air Distribution model Approximation Electricity/cost conversion model Dosage Cost Models Equations Chemically Enhanced Primary Treatment (CEPT) Poly-electrolyte dosage costs (Camp and Stein, 1943; CEDEX, 2004; Tchobanoglous et al., 2014; Tik et al., 2013; Weisbach, 1845; Zaher et al., 2009; Zweitering, 164 1985) 165 166 3. DESCRIPTION OF THE SCENARIOS 167 The comparative analysis of the three configurations selected (conventional WWTP, upgraded 168 WWTP and C/N/P decoupling WWTP) has been based on PWM simulations. This section details 169 the description of these plant layouts and the steps followed to build the model. 170 171 3.1. Plant layouts definition 172 Conventional WWTP 173 The reference WWTP considered in the study is a biological nutrient removal plant based on the 174 Benchmark Simulation Model No. 2 (BSM2; Jeppsson et al., 2007). The plant layout (Figure 3) is 175 constituted by a primary clarifier for the pre-treatment step, an AS process for C and N removal 176 based on a Modified Ludzack-Ettinger configuration (2 anoxic and 3 aerobic tanks and a secondary 177 clarifier), a dissolved air flotation (DAF) unit, an anaerobic digestion process and a dewatering step. 178 A ferric chloride dosage is delivered to the output from the third aerobic tank for chemical P 179 removal. Besides adding the chemical agents for P removal, ferric chloride can also be added to 180 enhance the settling characteristics of the primary sludge for cases in which the production of 181 primary sludge needs to be maximized. Finally, two other chemical additions are required in 182 flotation and dewatering processes. 183 184 Upgraded WWTP 185 This second layout is based on the reference case (conventional WWTP), but with two advanced 186 technologies being incorporated in the sludge line: a TH reactor and a nitritation/Anammox process 187 for treating the rejected supernatants (Figure 4). 188 189 The aim of the TH process is to maximise biogas production by increasing the biodegradability of 190 the sludge. For this, pressurized steam must be fed to the reactor to maintain the chamber at 170 ºC 191 (Fernández-Polanco et al., 2008). In this scenario, part of the biogas produced in the anaerobic 192 digestion was diverted to a boiler to cause combustion and produce the required steam. The amount 193 of biogas required for the TH and consequently, the benefits in electricity generation will depend on 194 the incoming sludge temperature and concentration that will be crucial for the profitability of the 195 process. The increase in sludge biodegradability also involves an extra release of ammonium (NHX-196 N), which must be treated in situ. To remove this surplus of N and the NHX-N released in anaerobic 197 digestion, a nitritation/Anammox process is an interesting approach. In the Anammox process, 198 ammonium is oxidized with the nitrites formed in the previous nitritation process, without oxygen 199 and COD consumption, raising the stoichiometric aeration cost savings up to 63% (Volcke et al., 200 2006). 201 202 Primary Clarifier Anox. 1 Anox. 2 Aero. 1 Aero. 2 Aero. 3 Secondary Settler Air Flotation Unit Anaerobic digester CHP Dewatering Sludge Disposal Influent Blow. 1 Blow. 2 Blow. 3 Electricity Chemicals Boiler Heat Electricity Effluent Figure 3. Conventional wastewater treatment plant (based on BSM2 layout) 203 Primary Clarifier Anox. 1 Anox. 2 Aero. 1 Aero. 2 Aero. 3 Secondary Settler Anaerobic digester CHP Dewatering Sludge Disposal Influent Blow. 1 Blow. 2 Blow. 3 Electricity Chemicals Heat Electricity Effluent Exhaust gas boiler Thermal Hydrolysis PartialNitritation Blow. 4 Anammox Air Flotation Unit Figure 4. Upgraded wastewater treatment plant 204 New WRRF concept: C/N/P decoupling WWTP 205 The partition-release-recover (PRR) concept proposed by Batstone et al., (2015) was used as an 206 example of new WRRF concept. This configuration completely decouples COD and nutrient 207 treatments in order to seek greater process performance. For this, the water line reactors are 208 operated at very short sludge retention time or SRT (2-4 days, depending on the temperature) to 209 consume only the strictly necessary N for the growth of the microorganisms. The configuration 210 (Figure 5) consists of a Phoredox (A/O) process for the biological soluble COD and 211 orthophosphates (ortho-P) accumulation in the solids (heterotrophic organisms, polyphosphate 212 (polyP) accumulating organisms (PAO), polyhydroxyalkanoates (PHA) and polyP), a thermal 213 hydrolysis technology to increase the biodegradability and dewaterability of sludge, an anaerobic 214 sludge digestion process for the COD removal and P and N release, a crystalliser for P precipitation 215 as struvite (MgNH4PO4·6H2O), and a partial nitritation/Anammox process in the mainstream and 216 side stream to treat the N. 217 218 Primary Clarifier Anaer. 1 Aero. 1 Aero. 2 Secondary Settler Anaerobic digester CHP Dewatering Sludge Disposal Influent Blow. 1 Blow. 2 Electricity Chemicals Heat Electricity Effluent Exhaust gas boiler Thermal Hydrolysis Blow. 3 PartialNitritation Anammox Struvite Secondary Settler Crystalliser Air Flotation Unit Figure 5. New WRRF concept: C/N/P decoupling WWTP. 219 220 3.2. Plant-Wide Model construction 221 Based on the Ceit PWM library, the models describing the three scenarios abovementioned where 222 constructed and implemented in the WEST simulation platform (www.mikebydhi.com) following 223 the steps describe below. 224 225 3.2.1. Category selection and influent characterization 226 Given the characteristics of the three plant layouts, the CNPchem_AnD, the C2NPchem_AnD and 227 the C2NPprec_AnD categories from the Ceit PWM library were selected to reproduce the 228 behaviour of all plants. The biochemical reactions considered in the model were the ones that are 229 necessary to describe biological organic matter, P and two-step N removal under different 230 environmental conditions (aerobic, anoxic and anaerobic). The chemical transformations considered 231 in the model were the weak acid-base and complex ion-pairing equilibrium reactions between 232 volatile fatty acids (VFAs), inorganic carbon, N, P, calcium, magnesium and potassium. Finally, 233 two types of physico-chemical transformations were considered: (1) liquid-gas transfer, regulated 234 by gaseous partial pressure according to Henry’s law of dissolution, and (2) the precipitation-235 redissolution equilibrium. 236 237 Influent wastewater was simulated using the average flow-weighted influent concentrations 238 calculated for one year of influent defined in BSM2 (Gernaey et al., 2014), with some minor 239 modifications and additions. The SCOD/TCOD ratio was increased from 0.14 to 0.44 to allow the 240 complete denitrification and fermentation processes. The VFA concentration was set on 15% of the 241 soluble and colloidal COD (Henze et al., 2008). The colloidal fraction of the slowly biodegradable 242 matter remained at 25%, the TKN/TP ratio at 5 and the VSS/TSS at 0.76. 243 244 3.2.2. Unit-process and actuator model selection 245 In each configuration, the units were selected to describe the detailed layouts in the previous section 246 (Completely stirred open and closed tank reactors, primary and secondary clarifiers, thickener and 247 dewatering units, biofilm reactors, CHP units, boilers, heat exchangers and precipitation units). To 248 describe the major costs of the system the following models were selected: blowers, pumps, stirrer 249 engines, gas and water distribution systems, specific energy ratios, dosage costs and electricity/cost 250 conversion models. The dehydration process is described from specific energy ratios and dosage 251 costs, and in the case of flotation the process is described by specific energy ratios and pumping, 252 aeration and dosage costs. All these cost models were calibrated from standard engineering values. 253 254 4. SIMULATION ANALYSIS: ENERGY AND NUTRIENT MANAGEMENT 255 EXPLORATION 256 Once the models for the three scenarios proposed were constructed, (steady state) simulations were 257 carried out to analyse the potential use of the energy contained in the organic matter and nutrients 258 and/or its recovery. Furthermore, a cost analysis of these plants for different influent C/N/P ratios 259 was carried out. To avoid possible interferences from other factors that affect plant operation (plant 260 oversizing, unit-process efficiencies, environmental factors, etc.), reactor volumes and recycle flows 261 have been optimized for each plant layout and for each influent in order to fulfil a fixed effluent 262 quality of 10gN m-3, 1gP m-3, 125gCOD m-3 and 35gSS m-3, accordingly to the European Directive 263 91/271/EEC. 264 265 4.1. General considerations about the potential use of the energy contained in COD and 266 nutrient and/or its recovery options in WWT processes 267 In analysing the different conventional options of getting energy from COD removal, the most 268 effective and typical way is to transform the organic matter into CH4 (the ΔhrºCH4 is 13.91 kJ gCOD- 269 1 or 890 kJ mol-1) and use its combustion to produce thermal and electric energy. The anaerobic 270 COD biodegradation presents three advantages against aerobic or anoxic oxidation in AS: (1) the 271 heat of reaction is higher, 11.86-13.37 kJ gCODrem-1 against 4.07 kJ gCODrem-1-5.27 kJ gCODrem-1 272 for aerobic and 3.52 kJ gCODrem-1- 4.74 kJ gCODrem-1 for anoxic biodegradation (calculated from 273 Table 2), (2) the energy recovery from biogas combustion is more effective because of the heat 274 dissipated when oxidation occurs in the aqueous phase, and (3) aeration costs are reduced. Thus, the 275 clearest alternative to maximize the recovery or reuse of the COD energy potential is to minimize 276 the COD oxidation in AS processes. This can be obtained by producing more primary sludge and 277 working at lower SRT in the secondary biological treatment. 278 279 Table 2 – Specific heat yields (or energy content) estimated with the PWM methodology 280 Transformations † SSU SAA SFA SHVA SHBU SHPRO SHAC Aerobic COD removal heat (kJ gCOD rem. -1) -5.27 -4.41 -4.07 -4.14 -4.17 -4.19 -4.32 Aerobic COD removal heat (kJ mol rem. -1) -1011 -2997 -2997 -862 -667 -469 -276 Anoxic COD removal heat (kJ gCOD rem. -1) -4.74 -3.89 -3.55 -3.52 -3.64 -3.67 -3.79 Anoxic COD removal heat (kJ mol rem. -1) -910 -520 -2610 -753 -583 -410 -243 Anaerobic COD removal heat (kJ gCOD rem. -1)‡ -1.01 -0.17 0.14 0.08 0.04 0.00 -0.15 Anaerobic COD removal heat (kJ mol rem. -1)‡ -195 -22 101 17 9 1 -25 † CO2 stripping is not included in the specific heat yield estimations, but the COD used for biomass growth is included. 281 ‡ The estimation of the reaction heat includes the acidogenesis, acetogenesis and methanogenesis reactions. 282 283 Although, as it´s been abovementioned, the energy recover from compounds is more efficient when 284 they are in a gaseous phase. In the case of the ammonia, its solubility in water is very high, 285 necessitating stripping methods for transferring from water into gas phase. This, added to the fact 286 that ammonia requires a catalyst for its oxidation in gas phase (Jones et al., 1999), makes this 287 process economically unfeasible. Moreover, the nitrogen recovery techniques (ion exchange 288 methods or stripping processes) consume more energy than removal processes, with the exception 289 of struvite recovery technologies. Consequently, from an economic perspective, the destruction of 290 nitrogen compounds appears the most logical route (Matassa et al., 2016) and low-energy 291 alternatives can be proposed, such as the use of Anammox bacteria, anaerobic phototropic bacteria 292 or high-rate algae (Batstone and Virdis, 2014). Comparing the N oxidation reactions in the aqueous 293 This new treatment concept consists of treating each compound (organic matter, N and P) in the 425 most efficient way possible, promoting recovery and maximizing energy use: organic matter is 426 valorised as biogas, the P is recovered as struvite and the N is treated with energy-efficient 427 technologies. 428 429 By working at low solids retention time of 3 days (to avoid nitrification and an excessive 430 accumulation of inerts), the production of non-biodegradable organic matter, due to decay 431 processes, is lower (12% lower than in the conventional configuration), but the same amount of 432 CO2 is produced due to acidogenesis, PAO bacteria growth and polyP storage reactions. Therefore, 433 this plant layout should not be used with the goal of increasing biogas production. Once again, to 434 increase the biodegradability of the sludge, a thermal hydrolysis unit was introduced to the global 435 plant configuration, obtaining in this case a 21% increase in biogas production. If the objective had 436 been to only maximize the production of biogas, without paying attention to the removal and 437 recovery of P, the configuration could have been modified to a high load fully aerated configuration 438 (without anaerobic reactors to accumulate the P), and in that case, biogas production would have 439 increased up to 40% (about 20%-25% due to the thermal hydrolysis and another 15%-20% due to 440 the high-rate process). 441 442 In the anaerobic digestion process the ortho-P accumulated in PAO bacteria is released, along with 443 the ortho-P previously released into the TH process. Unlike a configuration without biological P 444 removal, in which the percentage of ortho-P at the outlet of digestion is 9-11% of the TP influent, in 445 a configuration with P accumulation this percentage can increase up to 54%. Thus, the dewatered 446 sludge will contain 72% less P, but a greater amount of ortho-P. The recovery of this ortho-P can be 447 accomplished by recovery in crystallization units. The percentage of P recovered depend on factors 448 such as the influent P and ions (uncontrolled precipitation problems) composition, the required 449 effluent quality, the P accumulation efficiency of AS processes, the need for chemical agents in the 450 water line (FeCl3) and the efficiency of VS removal in digestion, among other things, making it 451 possible to recover 43% of P as struvite. 452 453 Finally, a large proportion of the influent N (79%) will be treated with efficient technologies, since 454 N fluxes recovered as struvite and released by stripping into the AS process were minimal (in this 455 particular case by 4% and 6%, respectively). 456 457 The mass flow analysis allows tracking of components throughout the plant. In a WRRF concept, 458 these components are associated with a source of valuable products and bioenergy. So indirectly, it 459 is an analysis of the plant recovery potential, and consequently an analysis of the plant efficiency. In 460 this frame, the aim of the last section was the estimation of the treatment costs associated with these 461 streams and the quantification of the energy produced or recovered. 462 463 4.4. Analysis of the costs distributions in a conventional, upgraded and C/N/P decoupling 464 WWTP for different influent COD/N/P ratios 465 The most influential factors on WWTP operating costs are the plant layout and the composition of 466 the MWW influent. In order to analyse the effect of these factors, a global economic analysis of 467 each plant layout was carried out for different influent COD/TN ratios (Table 3), under stationary 468 conditions and for a temperature of 18°C. The ratio TN/TP has been maintained constant. Reactor 469 volumes and operational set-points have been optimized for each particular plant layout and for 470 each influent composition. 471 472 Table 3 – C/N ratios considered for the influent characterization 473 474 Low C Medium C High C 444 gCOD m-3 592 gCOD m-3 740 gCOD m-3 Low TN (LN) 43 gN m-3 COD/TN = 10.3 COD/TN = 13.8 COD/TN = 17.2 Medium TN (MN) 57 gN m-3 COD/TN = 7.8 COD/TN = 10.4 COD/TN = 13.0 High TN (HN) 71 gN m-3 COD/TN = 6.3 COD/TN = 8.3 COD/TN = 10.4 475 Figure 10 summarizes the results obtained in all these optimizations. The operating cost 476 distributions of each plant and for each influent are represented by the bars, the CHP electric energy 477 recovery has been included as a negative cost, while the net cost is represented by blue dots. A first 478 analysis of the cost distribution shows that positive operating costs are very similar for the 479 conventional and upgraded WWTP, while the C/N/P decoupling WWTP reduces the expenses 480 significantly. For all configurations, these operating costs are mainly associated with influent N 481 concentration and show a low dependence to the variations of influent C load. In the upgraded and 482 C/N/P decoupling plants, negative operational costs (energy recovery) are increased, due to a more 483 efficient use of the influent COD. Contrarily to the positive costs, energy recovery is mainly 484 associated with C load and exhibits a very low dependence with the N concentration in the influent 485 (except for the critical case of very low C/N ratio in the conventional plant). Finally, total costs are 486 clearly positive in a conventional plant, while the upgraded configurations could theoretically get a 487 neutral cost balance only for high C/N load ratios. However, the C/N/P decoupling plant has a real 488 potential for obtaining a negative cost balance for a broad range of influent characteristics. 489 490 Figure 10. Operating cost analysis in a conventional, upgraded and C/N/P decoupled WWTP for different COD/TN 491 ratios: Cost distribution in columns and net operating costs represented by the blue dots (€/d). 492 493 Figure 11 shows the effect of influent concentrations on the most representative costs (aeration and 494 dosage costs and electricity production) and on the plant self-sufficiency (%) for the three plant-495 layouts under study. 496 497 The aeration costs exhibits a logical growing trend in the three configurations for increasing N and 498 COD loads (Figure 11a). It is also remarkable the very limited influence of N load to the aeration 499 power in the C/N/P Decoupling WWTP, reflecting the high efficiency of this advanced 500 configuration for the removal of N. The Upgraded plant has incorporated a Nitritation/Anammox 501 process to treat rejected supernatants, reducing overall aeration costs around 6-15% without sludge 502 pre-treatment processes, and somewhat lower, at around 3-11%, when a thermal hydrolysis is 503 incorporated. For the C/N/P Decoupling plant layout, aeration savings of 16-29% are achieved for 504 low-medium COD loads and savings of 4-8% for higher concentrations. 505 506 Figure 11. (a) Aeration Power, (b) dosage costs, (c) electricity production, and (d) plant self-sufficiency in a 507 conventional, upgraded and C/N/P decoupled WWTP for different COD/TN ratios 508 509 In dosage costs, a similar trend has been also found in the three configurations. Ferric chloride 510 Conventional WWTP Upgraded WWTP C/N/P Decoupling WWTP a) b) c) d) dosage depends directly on the influent P content, but indirectly on the C/N ratio. In the first two 511 configurations dosage costs are similar, since in both configurations ferric chloride is used to 512 remove all the phosphorus. The third configuration in turn provides savings in chemical reagents, 513 78-80% for high C/N ratios and savings of 42-61% for low ratios. Phosphorus removal is performed 514 through biological reactions, and chemical agents are only used to adjust the water line effluent and 515 the rejected water (after recovering 85% of ortho-P as struvite) to effluent quality standards. In 516 addition to the significant reduction in operating costs this configuration provides a value-added 517 product such as the struvite. The analysis didn’t consider the costs of production of struvite, but 518 neither the profit after its sale. It was considered a neutral balance. Still, using the Sankey diagrams 519 such as those used in the previous section (Figure 9c), a struvite maximum production of 3.7 520 kgstruvite kgPinf-1 for virtually all influents was estimated. Thus, the third plant minimizes operating 521 costs by promoting the recovery of biological products and maximizing the use of energy. 522 523 Analysing Figure 11c, it can be seen, as expected, that the biogas production depends exclusively 524 on the influent COD concentration. The incorporation of the TH process has led to increased biogas 525 production by increasing the biodegradability of the sludge. For both configurations the increased 526 production is close to 20%. Being clear the COD dependence, it is possible to set a ratio to estimate 527 the electrical energy generated in CHP per unit of COD fed to the plant: 0.46 kWh kgCODinf-1 for 528 the conventional plant, 0.55 kWh kgCODinf-1 for the upgraded plant and 0.52 kWh kgCODinf-1 for 529 the C/N/P decoupling WWTP. 530 531 Finally, the Figure 11d shows a comparative picture of the self-sufficiency for the three plants. 532 Conventional WWTPs were designed based on traditional biological treatments under a “removal 533 philosophy”, being difficult to achieve the total energy self-sufficiency. As shown in Figure 11d, 534 the total self-sufficiency degree is closely linked to the C/N influent ratio, and this can vary in the 535 conventional plant from 12% for very low COD/TN ratios, up to 85% for very high ratios. 536 Consequently, the treatment plant layouts comparison with different influent ratios would not be 537 entirely correct, nor ensuring that a configuration is always self-sufficient without mentioning the 538 influent ratio of the analysed plant (Jenkins et al., 2014). The philosophy of the second 539 configuration is based primarily on increasing energy production in order to achieve a net overall 540 balance closer to self-sufficiency, in this case between 33% and 103%. In this second configuration 541 it is possible to achieve the self-sufficiency but only with high COD/TN ratios (Figure 11d). 542 Finally, the main objective of the third configuration (C/N/P decoupling WWTP) is the operational 543 costs minimization, by promoting the recovery of bio-products and maximizing the use of energy. 544 With this configuration it is possible to achieve the plant self-sufficiency for almost all COD/TN 545 influent ratios (58% for low COD/N ratios and up to 130% for high ratios). 546 547 5. DISCUSSION AND CONCLUSIONS 548 Plant-Wide simulations allows a thorough, comprehensive and accurate analysis of different plant 549 configurations from an energy and resource recovery perspective. To demonstrate the potential of 550 the tool and the need for simulation analysis, this paper compared three different plants: (1) a 551 conventional WWTP, (2) an upgraded or retrofitted WWTP, and (3) a new WRRF concept known 552 as a C/N/P decoupling WWTP. 553 554 Analysing the layouts from a standpoint of resources and energy utilization, a low utilization of the 555 energy content of the components could be observed in all configurations. The only resource that 556 can be recovered efficiently as energy is the organic matter transmitted to the gas phase. The 557 oxidation of the components in the aqueous medium (AS process and nitritation/Anammox 558 technology) releases a large amount of energy as heat that is transmitted to the atmosphere or 559 extracted by the effluent (in these simulations about 37%). This energy is difficult to recover or the 560 recovered energy has a low exergy. Therefore, oxidations in the aqueous medium should be 561 minimized and instead oxidations should be promoted in the gaseous phase. Another key to 562 maximizing the COD energy use is to incorporate technologies that increase sludge biodegradability 563 (XP→ XCH, XPR, XLI), such as the TH process incorporated in the second and third layouts. In the 564 conventional plant, the COD used to produce biogas was around 29%. The TH technology 565 increased this to 36% in the upgraded plant and 34% in the C/N/P decoupling WWTP. In turn, the 566 process reduced sludge production by 12% and by 22%, respectively, in these two plants. 567 568 Regarding resource recovery methods, N recovery techniques are really expensive (ion exchange 569 methods or stripping processes), or as in the case of the technique that could compete with the 570 removal processes, struvite precipitation, the N recovered is minimal (4% estimated by the C/N/P 571 decoupling WWTP simulation, Figure 8). In the case of P, the scarcity of natural P resources 572 converts the recovery of P in the first alternative. The conventional and the upgraded plants 573 removed P by FeCl3 precipitation and only the third configuration attempted to recover the P. The 574 maximum estimated struvite recovery was 43% (Figure 9) and the estimated maximum struvite 575 production was 3.7 kgstruvite kgPinf-1 for virtually all influents. 576 577 Analysing the costs obtained in the study, it can be seen that WWTP self-sufficiency is closely 578 linked to the influent COD/TN/TP ratio. In all plants the trend was similar, the highest degree of 579 self-sufficiency was obtained for the higher ratio values. Achieving self-sufficiency was not 580 possible in conventional plant, in the upgraded plant it depended on the influent ratio, and in the 581 C/N/P decoupling WWTP layout self-sufficiency was feasible for almost all influents (58% for low 582 COD/TN ratios and up to 130% for high ratios). Simulations for different influents showed that, as 583 expected, operating costs increased with the influent load. Assessing costs in detail, aeration was 584 the most significant cost in all configurations (36-48% in the conventional and upgraded plants and 585 41-65% in the C/N/P decoupling WWTP) followed by the chemical dosage, especially in the first 586 and second configurations (20-48% in the conventional and upgraded plants and 5-28% in the 587 C/N/P decoupling WWTP). Regarding plant qualities, the differentiating factor of the upgraded 588 WWTP layout was the increased biogas production. The thermal hydrolysis process increased the 589 biodegradability of the secondary sludge by 40% and electricity production by 19-21% for 590 medium/high COD concentrations and by 43-162% for low COD concentrations. The decrease in 591 aeration costs was not significant in this second configuration (3-11%) due to the NHX-N release in 592 the TH process (25% more NHX-N), although efficient nitritation/Anammox technologies had been 593 used to treat rejected water. The fundamental feature of the C/N/P decoupling WWTP was the 594 increase in electricity production (savings of 10-20% for high COD/TN ratios and 39-198% for low 595 ratios) and the decrease in FeCl3 requirements (78-80% for high COD/TN ratios and 42-61% for 596 low ratios) and aeration costs (16-29% for high COD/TN ratios and 4-8% for low ratios), three 597 qualities that enable the plant self-sufficiency. 598 599 Through simulation it has been found that each resource has its optimal way of being treated, and 600 thus the key to maximizing the recovery of resources and energy is the independent treatment of 601 nutrients and COD, valorising the organic matter, and recovering or treating the nutrients. 602 603 The plant layouts proposed in this paper are just a sample of the possibilities for upgrading or 604 designing innovative plants, but they have enabled an analysis of the current needs and challenges 605 that need to be addressed. Even so, the methodology presented here is generic and can be used for 606 any other plant. The use of plant-wide models is, in this context, very useful to ensuring that 607 complex plants featuring different technologies can be analysed reliably and that the model 608 faithfully reproduces the plant behaviour, also in terms of energy and chemical consumption. 609 610 NOMENCLATURE 611 Costactuator Actuator cost (€ d-1) CostChem Chemical agent specific cost (€ kg-1) Costdosage Dosage cost (€ d-1) Costpoly Polyelectrolyte specific cost (€ kg-1) dp Particle size (m) Dpipe Pipe diameter (m) Dstir Impeller diameter (m) fmoody Friction coefficient Foversize Oversize factor g Gravitational acceleration (m s-2) G Velocity gradient (s-1) Input enthalpy (kJ d-1) Output enthalpy (kJ d-1) HL Total head loss (m) HLf Friction head loss (m) HLl Minor losses (m) HLs Static head (m) kChem Dosage constant (gchem m-3) kpoly,i Polyelectrolite and Total solids concentration ratio for the sludge type i (gpoly kgTSS -1) Lpipe Pipe length (m) Inlet i phase mass flux (gE d-1) MU Monetary unit (€ d-1) MWi Molecular weight of i gaseous phase components nCEPT Chemically Enhanced Primary Treatment constant Njs Impeller rotational speed required to just suspend the particles (Hz, revolutions per sec.) NP Power number Pg,in Absolute gas pressure at the blower/compressor inlet Pg,out Absolute gas pressure at the blower/compressor outlet Qw Water flow rate (m3 d-1) R Ideal gas constant (kJ mol-1 K-1) S Impeller/tank geometry factor Submergence Submergence (m) i phase inflow temperature (K) i phase outflow temperature (K) TSSi Total suspended solids concentration in the phase i (gSS m-3) uw Average liquid velocity (m s-1) Vi Volume of the i phase (m3) Wactuator Electrical consumption of actuator (kJ d-1) Wblow Electrical consumption of blower or compressors (kJ d-1) Wpump Electrical consumption of pump (kJ d-1) Wstir Electrical consumption of stirring (kJ d-1) Wturbine Electrical consumption of turbine (kJ d-1) XTSS Weight percentage of solids in the suspension Greek Symbols γg,i Heat capacity ratio of the i gaseous phase components ηi Dynamic viscosity (kg m-1 s-1) ηblow Efficiency of blowers/compressors ηCEPT Chemically Enhanced Primary Treatment efficiency ηmax Chemically Enhanced Primary Treatment maximum efficiency ηmin Chemically Enhanced Primary Treatment minimum efficiency ηpump Efficiency of pumps ηstir Efficiency of agitation engines ηturb Efficiency of turbines Kinematic viscosity of the i phase (m2 s-1) φi Density (g m-3) Subscripts comp phase components g gaseous phase m No. of state variables in the off-gas phase s solid phase w Aqueous phase 612 ACKNOWLEDGEMENTS 613 The authors would like to acknowledge COST Action ES1202: Conceiving Wastewater Treatment 614 in 2020 – “Water2020” and RedNovedar (CTQ1914-51693-REDC). S. Puig and M. Poch would 615 like to thank the Spanish Ministry (CTQ2014-53718-R) and the University of Girona 616 (MPCUdG2016/137) for their financial support. LEQUIA has been recognised as a consolidated 617 research group by the Catalan Government (2014-SGR-1168). 618 619 References 620 Alekseikoa, L.N., Slesarenkob, V.V., Yudakovc, A.A., 2014. Combination of wastewater treatment 621 plants and heat pumps. Pacific Science Review, 16(1), 36–39. 622 Batstone, D.J., Hülsen, T., Mehta, C.M., Keller, J., 2015. Platforms for energy and nutrient recovery 623 from domestic wastewater: A review. Chemosphere, 140, 2-11. 624 Batstone, D.J., Virdis, B., 2014. The role of anaerobic digestion in the emerging energy economy. 625 Current opinion in Biotechnology, 27, 142-149. 626 Batstone D.J., Keller J., Angelidaki I., Kalyuzhnyi S.V., Pavlostathis S.G., Rozzi A., Sanders 627 W.T.M., Siegrist H., Vavilin V.A. 2002. Anaerobic Digestion Model No. 1. Scientific and 628 Technical Report No. 13. IWA Publishing, London. 629 Bisinella de Faria, A.B., Spérandio, M., Ahmadi, A., Tiruta-Barna, L., 2015. Evaluation of new 630 alternatives in wastewater treatment plants based on dynamic modelling and life cycle 631 assessment (DM-LCA). Water Research, 84, 99-111. 632 Camp, T.R., Stein, P.C., 1943. Velocity gradients and internal work in fluid motion. J. Boston Soc. 633 Of Civil Eng., 30(4), 219-237. 634 Cao, Y.S., 2011. Mass flow and energy efficiency of municipal wastewater treatment plants. IWA 635 publishing, London. 636 Castillo, A., Cheali, P., Gómez, V., Comas, J., Poch, M., Sin, G., 2016. An integrated knowledge-637 based and optimization tool for the sustainable selection of wastewater treatment process 638 concepts. Environmental Modelling & Software, 84, 177–192. 639 CEDEX, 2004. Curso sobre tratamiento de aguas residuales y explotación de estaciones 640 depuradoras. Madrid. Vol. I. (in Spanish) 641 Corbala-Robles, L., Volcke, E.I., Samijn, A., Ronsse, F., Pieters, J.G., 2016. Effect of foam on 642 temperature prediction and heat recovery potential from biological wastewater treatment. Water 643 Research, 95, 340-347. 644 Crawford, G., Sandino, J., 2010. Energy efficiency in wastewater treatment in North America: a 645 compendium of best practices and case studies of novel approaches. Report #OWSO4R07e, 646 Water Environmental Research Foundation and IWA Publishing. 647 Fernández-Arévalo, T., Grau, P., Jeppsson, U., Mauricio-Iglesias, M., Vrecko, D., Flores-Alsina, 648 X., Ayesa, E., 2017. Model-based comparative assessment of innovative processes. In Lema, 649 J.M., Suarez-Martinez, S. (Eds.), Innovative wastewater treatment & resource recovery 650 technologies. Impacts on energy, economy and environment, IWA Publishing. 651 Fernández-Arévalo, T., Lizarralde, I., Grau, P., Ayesa, E., 2016. Diagnostic and optimization of 652 WWTPs using the PWM library: Full-scale experiences. Accepted in Water Science and 653 Technology. 654 Fernández-Arévalo T., Lizarralde I., Pérez-Elvira S.I., Garrido J.M., Puig S., Poch M., Grau P., 655 Ayesa E., 2015. Conceptual design and comparative assessment of WWTP layouts based on 656 plant-wide model simulations. In: Proceedings of the 9th IWA Symposium on System Analysis 657 and Integrated Assessment (Watermatex15). Gold Coast, Australia, 11-14 June. 658 Fernández-Arévalo T., Lizarralde I., Grau P., Ayesa E., 2014. New systematic methodology for 659 incorporating dynamic heat transfer modelling in multi-phase biochemical reactors. Water 660 Research, 60, 141-155. 661 Fernández-Polanco, F., Velázques, R., Pérez-Elvira, S.I., Casas, C., Del Barrio, D., Cantero, F.J., 662 Fernández-Polanco, M., Rodríguez, P., Panizo, L., Serrat, J., Rouge, P., 2008. Continuous 663 thermal hydrolysis and energy integration in sludge anaerobic digestion plants. Water Sci. 664 Technol. 57(8), 1221-1226. 665 Foley, J., de Haas, D., Hartley, K., Lant, P., 2010. Comprehensive life cycle inventories of 666 alternative wastewater treatment systems. Water Res. 44, 1654–1666. 667 Frijns, J., Hofman, J., Nederlof, M., 2013. The potential of (waste)water as energy carrier. Energy 668 conversion and management, 65, 357-363. 669 Garrido, J.M., Fdz-Polanco, M., Fdz-Polanco, F., 2014. Working with energy and mass balances: a 670 conceptual framework to understand the limits of municipal wastewater treatment. Water 671 Science & Tecnology, 67(10), 2294-2301. 672 Garrido-Baserba, M., Hospido, A., Reif, R., Molinos-Senante, M., Comas, J., Poch, M., 2014. 673 Including the environmental criteria when selecting a wastewater treatment plant. 674 Environmental Modelling & Software, 56, 74-82. 675 Gernaey, K.V., Jeppsson, U., Vanrolleghem, P.A., Copp, J. (IWA Task Group on Benchmarking of 676 Control Strategies for Wastewater Treatment Plants), 2014. Benchmarking of Control Strategies 677 for Wastewater Treatment Plants. Scientific and technical report No. 23. IWA publishing, 678 London. 679 Grau, P., de Gracia, M., Vanrolleghem, P., Ayesa, E., 2007. A new Plant-Wide modelling 680 methodology for WWTPs. Water Research, 41(19), 4357-4372. 681 Gude, V.G., 2015. Energy and autarky of wastewater treatment and power generation systems. 682 Renewable and sutainable energy reviews, 45, 52-68. 683 Guest, J.S., Skerlos, S.J., Barnard, J.L., Beck, M.B., Daigger, G.T., Hilger, H., Jackson, S.J., 684 Karvazy, K., Kelly, L., MacPherson, L., Mihelcic, J.R., Pramanik, A., Raskin, L., van 685 Loosdrecht, M.C., Yeh, D., Love, N.G., 2009. A new planning and design paradigm to achieve 686 sustainable resource recovery from wastewater. Environ. Sci. Technol. 43, 6126–6130. 687 Henze M., Gujer W., Mino T., van Loosdrecht M.C.M. 2000. Activated Sludge Models ASM1, 688 ASM2, ASM2d and ASM3. Scientific and Technical Report Nº9, IWA Publishing, London. 689 Henze, M., Comeau, Y., 2008. Wastewater Characterization. Biological Wastewater treatment: 690 Principles, Modelling and Design. Edited by Henze, M., van Loosdrecht, M.C.M., Ekama, G.A., 691 Brdjanovic, D. IWA publishing, London, UK. 692 Hepbasli, A., Biyik, E., Ekren, O., Gunerhan, H., Araz, M., 2014. A key review of wastewater 693 source heat pump (WWSHP) systems. Energy conservation and management, 88, 700-722. 694 IWA Resource Recovery Cluster, 2015. State of the art compendium report on resource recovery 695 from water. IWA publishing, London. 696 Jenkins, D., Wanner, J., 2014. Activated sludge – 100 years and counting. IWA publishing, London. 697 Jeppsson U., Pons M.N., Nopens I., Alex J., Copp J.B., Gerneay K.V., Rosen C., Steyer J.P., 698 Vanrolleghem P.A., 2007. Benchmark simulation model No 2 – general protocol and 699 exploratory case studies. Wat. Sci. Tech., 53(8), 67-78. 700 Jones, A.V., Clemmet, M., Higton, A., Golding, E., 1999. Access to chemistry. Royal Society of 701 Chemistry. p. 250. ISBN 0-85404-564-3. 702 Keller, J., 2008. Paradigm shift from wastewater treatment to resource recovery system. Australian-703 German workshop on sustainable urban water management, Melbourne, Australia. 704 Khiewwijit, R., Temmink, H., Rijnaarts, H., Keesman, K.J., 2015. Energy and nutrient recovery for 705 municipal wastewater treatment: How to design a feasible plant layout? Environmental 706 Modelling & Software, 68, 156-165. 707 Kokabian, B., Gude, V.G., 2015. Role of membranes in bioelectrochemical systems. Membr. Water 708 Treat. 6(1), 53-75.Lizarralde I., Fernández-Arévalo T., Brouckaert C.J., Vanrolleghem P.A., 709 Ikumi D.S., Ekama G.A., Ayesa E., Grau P. 2015. A new general methodology for 710 incorporating physico-chemical transformations into multi-phase wastewater treatment process 711 models. Water Research, 74, 239-256. 712 Logan, B.E., 2004. Extracting hydrogen and electricity from renewable resources. Environ. Sci, 713 Technol. 38(9), 160-167. 714 Matassa, S., Batstone, D.J., Hulsen, T., Schnoor, J., Verstraete, W., 2015. Can Direct Conversion of 715 Used Nitrogen to New Feed and Protein Help Feed the World? Environmental Science & 716 Technology, 49, 5247-5254. 717 McCarty, P.L., Bae, J., Kim, J., 2011. Domestic wastewater treatment as a net energy producer-can 718 this be achieved? Environ Sci Technol, 45, 7100-7106. 719 Mininni, G., Laera, G., Bertanza, G., Canato, M., Sbrilli, A., 2015. Mass and energy balances of 720 sludge processing in reference and upgraded wastewater treatment plants. Environ Sci. Pollut 721 Res, 22, 7203-7215. 722 Nowak, O., 2003. Benchmarking for the energy demand of nutrient removal plants. Water science 723 and technology, 47(12), 125-132. 724 Nowak, O., Keil, S., Fimml., C., 2011. Water Science & Technology, 64(1), 1-6. 725 Pérez-Elvira, S.I., Nieto-Diez, P., Fdz-Polanco, F., 2006. Sludge minimization technologies. Rev. 726 Environ. Sci. Bio Technol., 5, 375-398. 727 Pagilla, K.R., Nouri, J., 2004. Energy Management in Wastewater Treatment Plants: Optimization 728 of Energy Production, Res. J. Chem. Environ., 8(2), 26-33. 729 Puchongkawarin, C., Gomez-Mont, C., Stuckey, D.C., Chachuat, B., 2015. Optimization-based 730 methodology for the development of wastewater facilities for energy and nutrient recovery. 731 Chemosphere, 140, 150-158. 732 Shoener, B.D., Bradley, I.M., Cusick, R.D., Guest, J.S., 2014. Energy positive domestic wastewater 733 treatment: the roles of anaerobic and phototropic technologies. Environ. Sci. Process Impacts, 734 16, 1204-1222. 735 Spindler, A., Vanrolleghem, P.A., 2012. Dynamic mass balancing for wastewater treatment data 736 quality control using CUSUM charts. Water Science & Technology, 65(12), 2148-2153. 737 Tchobanoglous, G., Stensel, H.D., Tsuchihashi, R., Burton, F., 2014. Wastewater Engineering: 738 Treatment and resource recovery, 5th Ed., McGraw-Hill, New York. 739 Tik, S., Langlois, S., Vanrolleghem, P.A., 2013. Establishment of control strategies for chemical 740 enhanced primary treatment based on online turbidity data. In: Proceedings 11th IWA 741 Conference on Instrumentation, Control and Automation (ICA2013), 18-20 September, 742 Narbonne, France. 743 Verstraete, W., Van de Caveye, P., Diamantis, V., 2009. Maximum use of resources present in 744 domestic “used water”. Bioresour. Technol. 100(23), 5537-5545. 745 Verstraete, W., Vlaeminck, S.E., 2011. ZeroWasteWater: short-cycling of wastewater resources for 746 sustainable cities of the future. International Journal of Sustainable Development & World 747 Ecology, 18(3), 253-264. 748 Volcke, E.I.P., Gernaey, K.V., Vrecko, D., Jeppsson, U., van Loosdrecht, M.C.M., Vanrolleghem, 749 P.A., 2006. Plant-wide (BSM2) evaluation of reject water treatment with SHARON-Anammox 750 process. Water Sci. Technol. 54(8), 93-100. 751 Wanner, O., Panagiotidis, V., Clavadetscher, P., Siegrist, H., 2005. Effect of heat recovery from 752 raw wastewater on nitrification and nitrogen removal in activated sludge plants. Water Research, 753 39, 4725-4734. 754 Weisbach, J., 1845. Lehrbuch der Ingenieur und Maschinen Mechanik, Vol. 1. Theoretische 755 Mechanik, Vieweg und Sohn, Braunschweig, Germany. 535 pages (in German). 756 Wett, B., Buchauer, K., Fimml, C., 2007. Energy self-sufficiency as a feasible concept for 757 wastewater treatment system. In: IWA Leading Edge Technology Conference. Asian Water, 758 Singapore, pp. 21-24. 759 Wilfert, P., Kumar, P.S., Korving, L., Witkamp, G.J., van Loosdrecht, M.C.M., 2015. The relevance 760 of phosphorus and iron chemistry to the recovery of phosphorus from wastewater: A review. 761 Environmental science and technology, 46(16), 9400-9414. 762 Zaher, U., Chen, S., Chenlin, L., Yu, L., Ewing, T., 2009. Producing Energy and Fertilizer from 763 Organic Municipal Solid Waste: Enhancing Hydrolysis and Bacterial Populations and Mixing 764 and Thermodynamic Modeling of New Solid Waste Treatment Technology. Ecology 765 Publication Number 09-07-064. 766 Zwietering, Th.N., 1985. Suspending of solid particles in liquid by agitators. Chemical engineering 767 science, 8, 244-253. 768