Towards an Energy Self-Sufficient Resource Recovery Facility by Improving Energy and Economic Balance of a Municipal WWTP with Chemically Enhanced Primary Treatment

: The recent trend of turning wastewater treatment plants (WWTPs) into energy self-sufficient resource recovery facilities has led to a constant search for solutions that fit into that concept. One of them is chemically enhanced primary treatment (CEPT), which provides an opportunity to increase biogas production and to significantly reduce the amount of sludge for final disposal. Laboratory, pilot, and full-scale trials were conducted for the coagulation and sedimentation of primary sludge (PS) with iron sulphate (PIX). Energy and economic balance calculations were conducted based on the obtained results. Experimental trials indicated that CEPT contributed to an increase in biogas production by 21% and to a decrease in sludge volume for final disposal by 12% weight. Furthermore, the application of CEPT may lead to a decreased energy demand for aeration by 8%. The removal of nitrogen in an autotrophic manner in the side stream leads to a further reduction in energy consumption in WWTP (up to 20%). In consequence, the modeling results showed that it would be possible to increase the energy self-sufficiency for WWTP up to 93% if CEPT is applied or even higher (up to 96%) if, additionally, nitrogen removal in the side stream is implemented. It was concluded that CEPT would reduce the operating cost by over 650,000 EUR/year for WWTP at 1,000,000 people equivalent, with a municipal wastewater input of 105,000 m 3 /d.


Introduction
One of the key goals of the European Union's (EU) energy policy is to promote renewable energy [1] while limiting energy use from nonrenewable, fossil resources and while reducing greenhouse gas emissions to prevent drastic climate change [2]. The waste management policy, including sewage sludge processing, is also high on the agenda of EU regulations [3].
Wastewater treatment plants (WWTPs) are highly energy-intensive facilities that produce significant amounts of sludge as a side product of the treatment process [4,5]. For many years, WWTPs have been focused on effective pollutant removal from wastewater. However, not much attention has been paid to energy use and operating cost optimization. In recent years, the view on WWTPs has changed fundamentally. WWTPs have begun to be perceived also as reservoirs of valuable resources (carbon, phosphorus, and nitrogen) [6]. The awareness of climate change has resulted in more attention on the energy efficiency of a WWTP. The concept of an energy self-sufficient WWTP has become a leading one, as it is connected to sustainable development and reduction in carbon footprints [7]. These concepts combine both the reduction in energy demand, on the one hand, and the internal increase in energy production, on the other.
The most straightforward way to increase energy production at a WWTP is to enhance biogas production. This can be conducted in a variety of ways, e.g., co-digestion with external substrates [8][9][10], sludge pretreatment [11,12], or pre-concentration of organic carbon through chemically enhanced primary treatment (CEPT). CEPT is one of the methods pointed out in recent literature leading to up-concentrations in organics at the primary step of a WWTP for subsequent methane production via anaerobic digestion (AD) [13][14][15][16][17]. Capturing organic matter in the sludge phase provides the possibility to improve energy recovery through AD and limits the usage of energy by a WWTP. CEPT is a process in which the chemicals (inorganic, e.g., FeCl2, Fe2(SO4)3, or AlCl3, or organic, e.g., polyamines) are added for treatment purposes. By dosing those chemicals, the wastewater particles aggregate and flocs settle faster and thus enhance the primary treatment efficiency, which is measured as the removal of suspended solids, organic matter, and nutrients from wastewater [15]. CEPT processes can achieve high removal rates of total suspended solids (TSS) and biochemical oxygen demand (BOD) at high overflow rates [18]. Hence, the primary treatment infrastructure can be smaller, which reduces capital costs [19]. Additionally, CEPT provides an opportunity for either reducing the size of subsequent treatment units or increasing the capacity of existing conventional treatment plants [20]. Furthermore, in CEPT processes, phosphorus can be reduced by the addition of Fe or Al compounds, either combined with other coagulants or used separately in the same sedimentation tank [16]. The CEPT concept has been widely studied in recent decades to decrease organic loading in the biological treatment step of wastewater treatment [21,22]. Over the last years, the interest in CEPT as a method of resource recovery has progressively increased, as it has been found to have a positive effect on energy use reduction [23,24]. This is mainly due to the lower energy need in the aerobic part of the WWTP as well as to the increased energy production during the AD process [15,19,25,26].
Carbon capture by CEPT consequently leads to a reduction in the C/N ratio and can make it difficult to reduce nitrogen using a conventional nitrification-denitrification process, where the requirements for organic carbon are significant. Therefore, reducing nitrogen, which arrives at the main stream by dewatering liquor treatment, in an autotrophic way could solve these difficulties. Combining partial nitrification with the anammox (PN/A) process has become a well-established technology for side-stream treatment of municipal wastewater. More than 100 full-scale anammox process plants have been installed and operated for treatment of NH4 + -rich wastewater, e.g., in The Netherlands (Apeldoorn, Amersfort), Germany (Ingolstadt), Denmark (Malmo), etc. [27]. In a PN/A process, ammonium is oxidized to nitrite by aerobic nitrifiers and, subsequently, anammox bacteria convert ammonium with the produced nitrite to nitrogen gas and trace amounts of nitrate. The autotrophic PN/A process provides the possibility to reduce the requirements for organic carbon as well as energy for aeration by 100% and 60% compared to the conventional process, respectively [27,28]. It was reported that the energy demand of PN/A side-stream treatment systems range from 0.8 kWh/kgN to 2 kWh/kgN [27] while removal efficiency could be maintained at more than 85% [29].
The general use of CEPT is well described in the literature; however, to the best of our knowledge, there is limited literature reporting full-scale studies dealing with the impact of coagulants on the WWTP and the economic evaluation in a holistic way. The application of CEPT not only provides an increase in biogas production but also leads to a reduction in sludge production, impacts sludge dewatering, and might have a positive effect on energy consumption. These aspects are extremely important when assessing the cost-effectiveness of a WWTP. Hence, full-scale implementation of technologies proposed in the literature should be preceded by a technoeconomic analysis to assess the benefits for a given facility [30].
The presented work combines laboratory, pilot, and full-scale trials, which gives a unique value to process evaluation and a comprehensive overview over the whole WWTP, which is scarce in literature. Full-scale trials allow us to observe long-term changes in the whole treatment process and thus to realistically assess energy-related and economic benefits of implementation of a CEPT at a municipal WWTP. The aim of this work was to develop a novel sustainable process concept that combines increased biogas production with enhanced nutrient removal at the WWTP while minimizing the cost of sludge handling. Based on the achieved results, the energy gains and savings were calculated and an economic evaluation was carried out.

Analytical Methods
Total chemical oxygen demand (TCOD) and soluble COD (SCOD), total phosphorus (TP), and phosphates (P-PO4) were measured according to standard methods [31]. Total nitrogen (TN) was measured according to Merck procedure No.

Laboratory and Pilot Plant Trials
Coagulation and sedimentation laboratory experiments were carried out with the widely used jar test method. Three different dosages of 20, 60, and 100 mg/L of PIX were added to each of the 4 beakers filled with wastewater, and a reference with no addition of iron (III) sulphate (PIX) was prepared as well. The batches were stirred (the first 30 s of rapid mixing at 350 rpm followed by 10 min of slow mixing at 40 rpm); afterwards, a settling time of 60 min was allowed while the settling of flocs was observed and time was recorded. Finally, after a given sedimentation time, the supernatant was siphoned out carefully to not disturb the settled sludge. The samples were tested for TCOD, BOD, TSS, TN, TP, N-NH4, and organic N. In subsequent trials, the pilot plant was used for CEPT. The pilot plant consisted of a primary clarifier with a diameter of 0.9 m, a biological reactor based on the Bardenpho process with a volume of 10 m 3 , and a secondary settling tank with a diameter 1.5 m. The pilot plant directly reflected the technological process in full scale at the WWTP in Kozieglowy (Poznan area, Poland). The pilot primary clarifier was operated at the same average hydraulic loading rate as the full-scale primary clarifiers at a typical operation regime. The pilot plant flow was equal to 6.8 m 3 /d, and the surface hydraulic loading rate in the primary settler was 0.5 m 3 /m 2 h. The dose of the coagulant was the same as that for the best results in the laboratory trials (60 g PIX/m 3 of sewage). The pilot-scale test was conducted for one week with PIX and for one week without PIX support. SS, TCOD, SCOD, TP, P-PO4, TN, N-NH4, alkalinity, and pH were measured on a daily basis according to the above described methods.

Full-Scale Trials
Full-scale trials were carried out at the Central WWTP in Kozieglowy (Poznan area, Poland), a WWTP using mechanical and biological nutrient removal (BNR) processes. The average sewage flow through the WWTP was 105,000 m 3 /d. The discharge limits of the WWTP included COD = 125 mg/L, BOD = 15 mg/L, SS = 35 mg/L, TN = 10 mg/L, and TP = 1 mg/L. After mechanical screening of raw sewage, the primary sludge (PS) was separated in settling tanks (4 tanks, D = 52 m) and, then, organic compounds and nutrients were removed in the activated sludge (BNR process). The total capacity of the 6 biological reactors was 6 × 21,974 m 3 ; the bioreactors were equipped with a fine bubble aeration system. Aeration intensity was controlled in relation to the ammonium level, while nitrate measurement provided the appropriate wastewater stream for denitrification. In the process, excessive, waste-activated sludge (WAS) was formed. PS was thickened gravitationally to an average of 4.8% TS; WAS was thickened mechanically by Bellmer belt thickeners to approximately 5.0% TS. The mixed sludge was transported to AD operating at mesophilic conditions (36 °C) for a hydraulic retention time of 21 days. Waste from the poultry industry (PW) in an amount of 30 ton/d was co-digested with sludge. The total volume of 6 digesters was equal to 29,400 m 3 , and the maximum organic loading was 2.0 kg VS/m 3 . The generated biogas was collected in a membrane storage tank, desulphurized, and used for heat and electricity production in combined heat and power (CHP) cogeneration units (3 × 1 MW). The methane content (CH4%) in the produced biogas was measured by a GA 5000 gas analyzer (Geotechnical Instruments Ltd.). The sludge after digestion was dewatered by GEA Westfalia centrifuges to an average of 21.5% TS and subjected to further sludge management. Digestate from another WWTP (Leftbank WWTP, Poznan, Poland) was dewatered at the Central WWTP, which provides additional loading for the mainstream line. CEPT full-scale trials with PIX dosing were conducted for 10 months. External carbon was not used during that trials. The coagulant was added to the inlet of primary settling tanks proportional to the sewage inflow. The dosage period was compared to the next 10 months period when PIX was not added. The aim of the fullscale trials was to determine the removal efficiency of TSS, TCOD, BOD, TN, and TP in real process conditions as well as to determine CEPT benefits in a full-scale AD. The outcome of the full-scale trials allowed us to calculate different scenarios for further process improvement, effectiveness, and stability as well as to define significant parameters that allow us to simulate benefits that the CEPT process could provide in different scenarios.

Mass Balance, Energy, and Economic Calculations
Based on the results from the full-scale trials in order to consider potential benefits from an additional methane production as well as potential disturbances caused by a lower C/N ratio, modeling was conducted to determine the most suitable CEPT application in full scale. All calculations were made for a flow of 105,000 m 3 /d for a 1,000,000 people equivalent (PE) WWTP. The following scenarios were analyzed: • W0-a WWTP without coagulation (base case); • W0A-a variant without coagulation, supplemented by anammox process in a sidestream; • W1-a variant taking into account the use of a coagulant (CEPT); • W1A-a variant with CEPT and anammox process in a side-stream.

BNR Process Calculation
Contaminants in the raw sewage were taken from the operational data of the abovementioned WWTP (Poznan, Poland) as the average amounts for a period of 1 year (2018), i.e., COD = 1300 mg/L, BOD = 520 mg/L, TSS = 720 mg/L, TN = 97 mg/L, and TP = 14 mg/L. Contaminants in the wastewater after standard sedimentation (W0) and supported by CEPT (W1) were determined based on the average removal efficiency obtained in the full-scale trials (Table 1). In the scenarios W0A and W1A, the same removal efficiency was adopted as in W0 and W1, respectively. For all the scenarios, calculations according to the Abwassertechnische Vereinigung (ATV) guidelines were carried out [32]. The calculations were made using Activated Sludge Expert-Software based on the standard method [32]. Detailed assumptions and calculation results according to the ATV guidelines are presented in Table S1 (Supplementary Materials). The following parameters were determined: (1) oxygen demand (O2 dem), (2) waste-activated sludge (WAS) production, and (3) demand for an external carbon source (ECS). WAS production depends mainly on the TSS/BOD ratio, sludge retention time, as well as process operating temperature. WAS production was assumed to be 0.93 kgTSS/kgBOD for W0 and WOA while, for W1 and W1A, 0.79 kgTSS/kgBOD and 0.75 kgTSS/kgBOD, respectively, based on the ATV guidelines [32].

Mass Balance for AD
The loadings of WAS for the AD process in each variant were directly transferred from the ATV calculations (Table S1), while the loading of PS was fixed according to the full-scale trials, i.e., 31.4 gTS/PE and 44.2 gTS/PE for W0 and W0A, and W1 and W1A, respectively. PW loading was included in the mass balance at the constant amount of 30 Mg/d, regardless of the scenario. TS and VS of PS, WAS, and PW were adopted from the WWTP full-scale test. The VS reduction (VSred) was taken directly from the full-scale trials and amounted to 43.6% and 50.6% for W0 and W0A, and W1 and W1A, respectively. The organic mass (VSload) directed to AD and reduced (VSload red) in the digesters were calculated.

Energy Consumption and Production
Energy consumption (EC) for BNR aeration in scenario W0 was calculated as 0.74 kWh/kg BOD according to a measurement made in the full scale during a period without CEPT. Energy consumptions in the other scenarios (W1, W0A, and W1A) were calculated proportionally to the oxygen demand according to the following Equations:  [27], i.e., energy consumption of 0.8 kWh per 1 kg TN removed assuming 90% nitrogen removal efficiency. The concentration of nitrogen after the dewatering process was assumed for 1600 kg N/d, based on the N content at the WWTP (including additional Leftbank WWTP digestate stream). The energy consumption of CEPT pumping was not included in the calculations as it was negligible.
The main effect of CEPT application is to increase energy production (EP) from the additional biogas generated from extra organic capture. It was assumed that all produced energy originated from the AD process. In each of the scenarios, the produced energy was calculated based on COD (13.88 kJ/g COD) in substrates directed to AD [33,34].
Based on the measured COD and VS in substrates, the COD-VS ratio was calculated, i.e., 1.64 kg COD/kg VS, 1.54 kg COD/kg VS, and 2.14 kg COD/kg VS for PS, WAS, and PW, respectively. In contrast, the COD-VS ratio for sludge after CEPT was assumed to be 1.75 kg COD/kg VS due to a 6.42% higher methane yield [35]. The different ratios for each substrate reflect the differences in generated energy. Finally, the energy production (EP) was calculated as follows Equation: P = VS load red × (Σ Energy in substrate)/(Σ VS load in substrate) × 1/3.6 × ηEE, in kWh/d, where VS load red is the VS reduced in AD in kg VS/d; Σ Energy in substrate is the sum of energy in PS, WAS, and PW in MJ/d; Σ VS load in substrate is the sum of PS, WAS, and PW organic loading in kg VS/d; ηEE is the electrical energy efficiency of CHP in %; and 3.6 is the conversion from MJ, where 1 kWh = 3.6 MJ.

Mass Balance for Dewatered Sludge and Anammox
Changes in TS of the dewatered sludge were calculated based on the concentration of VS in sludge (x) from the following Equation: This dependence was derived from 2-year operation data of the WWTP and became the basis for predicting the efficiency of sludge dewatering depending on the level of organic matter in the sludge after AD. The correlation between TS and VS is shown in Figure S1 (Supplementary Materials).
The sludge growth rate in the PN/A process was adopted from [27] and was 0.15 kgTS/kgN.
All of the assumptions for mass, energy balance, and economic calculations are presented in Table 1.

Laboratory and Pilot-Scale Tests
The evaluation of CEPT was first carried out in a laboratory scale. The addition of PIX to raw sewage caused enhanced wastewater clarification and suspended solid reduction, and as a consequence, parameters such as COD, BOD, TP, and TN were decreased at the same time (Table 2). The improvement in the quality of wastewater after sedimentation with the 60 mg/L PIX dose compared to the quality of wastewater after simple sedimentation was enhanced from 613 mg/L to 485 mg/L (i.e., by 21%) for COD, from 284 mg/L to 188 mg/L (i.e., by 34%) for BOD, from 142 mg/L to 91 mg/L (i.e., by 36%) for TSS, from 59.7 mg/L to 55.2 mg/L (i.e., by 8%) for TN, and from 9.58 mg/L to 6.09 mg/L (i.e., by 36%) for TP. It was found that a PIX dose higher than 60 mg/L did not significantly improve wastewater clarification any further. Despite a better COD reduction with a dose of 100 mg PIX/L, the effects for TSS and BOD were worse than that observed with 60 mg PIX/L. Overdose could worsen the effect of clarification; therefore, proper coagulant dose adjustment is crucial [13,26,36]. Zborowska et al. [26] noted a negative influence of Fe2(SO4)3 in a dose higher than 75 mg/L; similarly Aiyuk et al. [36] reported that the dosage should not be higher than 50mg/L for FeCl3 or Al2(SO4)3.
Next, pilot-scale trials were conducted as follow-up experiments. The results from the pilot plant are shown in Figure 1. A simple sedimentation process resulted in 61%, 47%, 27%, and 21% for TSS, COD, TP, and TN removal, respectively. The achieved results corresponded to the typical removal rate observed in municipal WWTPs [26]. PIX addition caused a noticeable increase in removal efficiency for parameters such as TSS (78%), COD (55%), TP (33%), and TN (22%). Again, similar trends were reported previously for coagulants containing Fe [26].

Removal Effectiveness
The addition of a coagulant strengthens organic matter capture and enhances sedimentation. TSS removal could increase from 80% to 90%, while COD removal could increase from 50% to 70% [37]. In our full-scale trials, a significant improvement in contaminant removal was noticed right after the coagulant dosage was initiated. The average contaminant reduction in the primary step during the simple sedimentation (without coagulation) equaled 63%, 40%, 36%, 14%, and 22% for TSS, TCOD, BOD, TN, and TP, respectively, whereas during the CEPT period, it was significantly higher and equaled 79%, 55%, 50%, 17%, and 45% for TSS, TCOD, BOD, TN, and TP, respectively. The results were comparable to the ones for the pilot-scale trials, but an additional beneficial change was observed for TP removal (Figure 2). Further intensification of the process could be achieved by including a second reagent. Apart from coagulant dosing, the addition of small doses of flocculants in the range of 1-10 mg/L might improve the effect as presented in previous works [26,36]; however, it requires additional installation and generates additional operating costs. Another alternative is microsieving to gain a higher removal of 70-80% COD [19].

AD Loading and Biogas Production
CEPT provides changes in proportion of PS and WAS in the WWTP and therefore impact the biogas yield from the AD process. The conducted CEPT full-scale trial led to an increased amount of PS directed to AD by 41% with regard to the TS loading (Table 3). On the other hand, WAS production in the dosing period showed a 42% decrease in relation to the TS loading (Table 3). An increased inflow of PS, which is easily fermentable compared to WAS, results in the enhancement of biogas production in the AD [8]. In consequence of CEPT, biogas production intensified as expected. It was noted that the volatile solids reduction (VSred) during AD was enhanced from 43.6% to 50.6% whereas the VS concentration in the digestate dropped from 63.6% to 57.2%. It needs to be highlighted that the addition of Fe 3+ directly impacts the AD performance [38]. The positive effect of CEPT on AD was reported in previous studies [14,35]. For example, the authors of [14] reported 58% VSred in AD after FeCl3 and ALCl3 application while the CEPT without CEPT authors of [35] obtained an increase in VSred from 37.8% to 43.5% with CEPT as well as an increase in biogas production by 6.42% compared to non-CEPT sludge. Moreover, the presence of iron from PIX affected not only the binding of phosphorus, as mentioned before, but also the capture of hydrogen sulfide, which was maintained at an average of 66.8 ppm and was lower by 40.1% compared to the period when PIX was not used (Figure 3). Similar results were reported by [14], e.g., a decrease in H2S from up to 13,250 to <200 ppm was also noted for FeCl3 application. H2S is an undesirable component of biogas due to its corrosion properties; hence, it is recommended to remove H2S prior to combined heat and power (CHP) below 150 ppm to minimize such a risk [39]. In practice, each CHP installation is equipped with a biogas purification step, which generates additional operational costs; therefore, decreasing H2S would have a positive impact on the overall costs of produced energy [39,40]. As stated, CEPT reduces H2S; hence it decreases not only the costs of biogas upgrading but also the cost of operation and maintenance of CHP units by reducing the frequency of inspections and oil changes. Furthermore, the application of CEPT results in a decrease in the phosphorus concentration in the digestate. On the one hand, it is beneficial because it reduces the amount of phosphorus contained in the dewatering liquors and decreases P loading, which recirculates to the main line. On the other hand, it unfortunately could limit the possibility of P recovery in the form of struvite [41]. The average amount of Pdissolved was 75.0 mg/L, which was lower by 52% compared to the non-CEPT period. A sharp decline of Pdissolved (from 160 mg/L to 10 mg/L) was observed during the first 4 months (Figure 4).   In the anaerobic conditions, Fe 3+ is reduced to Fe 2+ , which results in phosphorus binding in the form of Fe3(PO4)2. After 6 months of CEPT trials, Pdissolved started to increase slightly along with N-NH4, which was caused by a slightly lower PS removal in the primary settlers.

Sludge Dewatering
Enhanced VS reduction in AD was reflected in the dewatering improvement in digestate. The TS content in the dewatered digestate increased from 21.5% to 24.4%. The presence of bound water is one of the basic factors limiting digestate dewaterability [42], and it is particularly related to the digestion of WAS. According to Erdincler and Vesilind [43], conventional dewatering processes could remove free water and only a part of bound water. Through the application of CEPT, it was possible to decrease the formation of WAS and henceforth its amount added to AD. Changed ratio of WAS/PS led to an improved AD process and consequently better dewatering efficiency of digestate. Moreover, twoyear full-scale observations also confirmed the correlation between the organic matter content of the digestate and susceptibility to dewatering. The decrease in the content of VS caused a higher TS content in the dewatered sludge (Equation (3)). Skinner et al. [44] found a similar correlation between VS and average cake solids and pointed to the correlation as an appropriate method to determine the effect of dewatering. During the CEPT full-scale trials, the mass of dewatered digestate handed over to the final treatment decreased from 167 Mg/d to 148 Mg/d. The cost of treatment and disposal of sewage sludge can constitute up to 50% of operating expenditures of the municipal WWTP; therefore, it is of high importance to minimize its mass and volume [4]. Effective water removal plays a particularly essential part in minimizing those costs when using it in agriculture or directing it to thermal processing [45].
In addition, the quality of the dewatering liquors also improved, i.e., a lower amount of TSS in the effluent from centrifugation allowed for a reduction of the loading returned to the main stream of the WWTP (Table 4).  A higher removal effectiveness in the primary settlers resulted in a decrease in COD loading in the BNR process. CEPT application led to the coagulation of organic compounds, which was noticed in the decrease in the COD:N ratio from 9.4:1 to 7.2:1 on average, with a minimum of 6:1. This resulted in an increase in N-NO 3 concentration in treated sewage, which gained an average of 5.8 mg/L during the CEPT period compared to 3.5 mg/L in the period without dosing (Table S2 in the Supplementary Materials). The average TN maintained the discharge limits; however, the concentration of TN during the CEPT period was higher by 1 mg/L ( Table S3 in the Supplementary Materials). COD, BOD, SS, and TP were lower during the CEPT period compared to the non-dosing period ( Table  S3 in the Supplementary Materials). COD-N in the range of 6:1 and 10:1 COD/N is required to achieve effective nitrogen removal during the traditional denitrification process [46]. In order to maintain a stable denitrification process, an external carbon source (ECS) should be added to biological reactors in the case of carbon deficit. Preferably, it should be carbon-rich waste or wastewater instead of a commercial carbon source [47]. Alternatively, an additional process to remove or recover nitrogen from the dewatering liquors could be considered [48]. Much attention has been given to nitrogen stripping; however, at the moment, it has not been proven as an economically viable method [49]. A favorable alternative for full-scale application would be anammox as an autotrophic and energetically effective process [50].

Mass and Energy Balance and Economic Calculation
It could be seen from Figure 5 that the application of CEPT allows for an improvement in energy balance in a municipal WWTP through enhanced biogas production as well as lower energy demand for the aeration process. The decrease in electricity demand for aeration in W1 caused by the reduction in carbon and nitrogen loading provided for BNR by CEPT reached 8%. Zaborowska et al. [26] noted that CEPT enabled up to 36% energy savings in the aeration process; however, the scenario included autotrophic nitrogen removal from dewatering liquors. Gori et al. [51], on the other hand, calculated 4-11% of energy savings depending on the composition of the wastewater, which is in line with our results. As mentioned before, CEPT led to a decrease in the COD-N ratio, which makes it difficult to carry out effective denitrification. This obstacle could be overcome by applying a PN/A process in the side stream, and such a scenario was included in W1A. This scenario ensured targeted nitrogen levels in the WWTP outlet as well as helped to further reduce the energy demand by up to 20% (Table 5).   The greatest benefit of CEPT is the ability to increase biogas production. CEPT application caused changes in PS to WAS proportions directed to AD. As calculated, CEPT application decreased WAS production by 34% and enhanced PS recovery by 40% ( Figure  5). In addition, the biogas potential is higher for CEPT sludge [35]; hence, the energy from biogas in scenarios with CEPT (W1 and W1A) calculated according to Equation (2) increased by 21% ( Figure 5). The 43% of VS red in W0/W0A and 50% VSred in W1/W1A were adopted strictly from the full-scale tests. Enhanced reduction in VS in AD in the scenario with CEPT application resulted in a decrease in VS content in digested sludge from 63.1% (W0 and W0A) to 58.6% VS (W1 and W1A). VS concentration is crucial for dewatering abilities and could significantly change the amount of dewatered sludge. Calculated using Equation (3), the TS of sludge cake was equal to 22.3% an 23.7% for W0/W0A and W1/W1A, respectively, which could be translated into 11% lower amount of dewatered sludge for final disposal ( Figure 5). The calculations are presented in Table  S4 (Supplementary Materials).
Positive energy balance opens the possibility to increase the coverage of the energy demand at the municipal WWTP and improvement in its energy self-sufficiency. For example, in the case of the Central WWTP (Poznan, Poland), it could be increased from the current 75% to 93%. CEPT complemented with PN/A, which is crucial to ensure the required level of nitrogen in outflow, in the side stream could additionally increase the coverage of the energy demand up to 96%, making the WWTP almost self-sufficient in terms of energy needs (Table 6). CEPT fits in with the trend of striving for a zero-energy or positive-energy WWTP concept. Zaborowska et al. [26] stated that employing CEPT and dewatering liquor treatment revealed the potential for increased biogas production in AD by up to 56% and reduction in the electricity demand for aeration by up to 36% while still maintaining the required effluent standard, especially in terms of nitrogen.
Based on the mass and energy balance, an economic evaluation of each scenario was carried out. In Table 7, the increase in costs and savings for each variant in relation to scenario W0 (base case) is presented and compared. The application of CEPT could reduce the operating cost by over 650,000 EUR/year for a WWTP of 1,000,000 PE with a 105,000 m 3 /d wastewater inflow. In general, CEPT as a method has low investment costs and low energy consumption, but unfortunately, it requires high expenditure on coagulants. Savings in the final sludge management play an important part and determine the feasibility of a method (Table 7). Taboada-Santos et al. [23] pointed out that additional operational cost savings could be achieved by combining CEPT and thermal hydrolysis prior to AD. The payback time was calculated as 2 to 4 years for a 1,000,000-inhabitant WWTP [23].

Conclusions
A full-scale test allowed us to realistically assess the benefits of using CEPT. The follow-up calculations confirmed that CEPT perfectly fits in with the concept of an energy self-sufficient municipal WWTP. CEPT led to an increase in easily degradable organic matter in AD and, in consequence, enhanced the biogas production by over 20%. The energy savings on aeration were in the range of 8 and 20%, depending on the analyzed scenario. The greatest impact on the balance of costs and savings was the reduction in dewatered sludge production (11%). The energy balance indicated the possibility of significantly covering the energy demand for a municipal WWTP.