Dynamic process control for partial nitritation in wastewater treatment with autotrophic nitrogen removal

11505482 · 2022-11-22

    Inventors

    Cpc classification

    International classification

    Abstract

    Mainstream partial nitritation was studied at 10° C. in a moving bed biofilm reactor treating synthetic wastewater containing both nitrogen (≈40 mg L-1) and organic carbon at COD/N ratio ranging from 1.3 to 2.2. Three different control strategies were investigated to achieve partial nitritation. Initially, biofilm age was controlled by incorporating a media replacement strategy. Next, separately from the media replacement, oxygen limited conditions were investigated and finally pH control was incorporated together with oxygen limitation. Successful partial nitritation was achieved only by combining oxygen limitation with pH control. The average NH4-N concentration was equal to 16.0±1.6 mg L-1 and average NO2-N concentration was equal to 15.7±2.4 mg L-1 during steady state partial nitritation. The average residual NO3-N concentration was equal to 2.6±2.2 mg L-1. The results obtained from this study prove for the first time that partial nitritation can be successfully controlled in a biofilm reactor treating wastewater with low nitrogen concentration, relatively high COD/N ratio and at low temperature. An algorithm for dynamic process control of partial nitritation has been also developed.

    Claims

    1. A method of treating wastewater comprising: providing a biological reactor for receiving wastewater therein; using an aerator to intermittently aerate the wastewater in the reactor; using a plurality of condition sensors to generate condition signals from which a plurality of wastewater characteristics can be derived including a pH level, a dissolved oxygen level, an ammonium level, and a temperature of the wastewater in the reactor; providing a controller including a prescribed primary threshold and a prescribed second threshold stored on the controller, the prescribed primary threshold comprising a free ammonium level threshold, and the prescribed second threshold comprising a ratio of dissolved oxygen to a total ammonium concentration threshold; using the controller to calculate a ratio of dissolved oxygen to a total ammonium concentration based upon the wastewater characteristics derived from the condition sensors; using the controller to control the aerator so as to maintain the ratio of dissolved oxygen to a total ammonium concentration below the prescribed second threshold; using the controller to calculate a level of free ammonia based upon the wastewater characteristics derived from the condition sensors; and using the controller to dispense a controlled dosage of an alkaline control solution into the reactor in response to the calculated level of free ammonia being below the prescribed primary threshold simultaneously with control of the aeration of the reactor based on the prescribed second threshold to effect partial nitritation of the wastewater in the reactor.

    2. The method according to claim 1 wherein the reactor comprises a moving bed biofilm reactor.

    3. The method according to claim 1 wherein the reactor comprises an integrated fixed film activated sludge reactor.

    4. The method according to claim 1 including ceasing dispensing of the alkaline control solution into the reactor in response to the pH level exceeding a pH threshold.

    5. The method according to claim 1 including the controller dynamically adjusting the prescribed primary threshold stored on the controller dependent upon the wastewater characteristics derived from the condition sensors.

    6. The method according to claim 5 including adjusting the prescribed primary threshold dependent upon the wastewater characteristics derived from the condition sensors including the temperature of the wastewater.

    7. The method according to claim 1 including the controller dynamically adjusting the prescribed second threshold dependent upon the wastewater characteristics derived from the condition sensors.

    8. The method according to claim 1 further comprising: using the controller to generate a notification if the level of free ammonia has not increased over a prescribed time interval.

    9. The method according to claim 7 including adjusting the prescribed second threshold dependent upon the wastewater characteristics derived from the condition sensors including the temperature of the wastewater.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    (1) One embodiment of the invention will now be described in conjunction with the accompanying drawings in which:

    (2) FIG. 1 shows in the top image effluent nitrogen species fractionation during start-up period including fNH4—ammonium fraction, fNO2—nitrite fraction and fNO3—nitrate fraction as well as surface nitrogen loading rate (SNLR; g N m-2 d-1) and surface organic loading rate (SOLR; g COD m-2 d-1), and shows in the bottom image effluent ammonium, nitrite and nitrate concentration as well as influent ammonium concentration during start-up period.

    (3) FIG. 2 shows in the top image effluent nitrogen species fractionation during media replacement and aeration control period including fNH4—ammonium fraction. fNO2—nitrite fraction and fNO3—nitrate fraction as well as surface nitrogen loading rate (SNLR; g N m-2 d-1) and surface organic loading rate (SOLR; g COD m-2 d-1), and shows in the bottom image effluent ammonium, nitrite and nitrate concentration as welt as influent ammonium concentration.

    (4) FIG. 3 shows in the top image effluent nitrogen species fractionation during pH control period: fNH4—ammonium fraction. fNO2—nitrite fraction and fNO3—nitrate fraction as well as surface nitrogen loading rate (SNLR; g N m-2 d-1) and surface organic loading rate (SOLR; g COD m-2 d-1) and shows in the bottom image effluent ammonium, nitrite and nitrate concentration as well as influent ammonium concentration during pH control period.

    (5) FIG. 4 illustrates inorganic nitrogen fractions in the effluent from the MBBR during different control strategies at 10° C.

    (6) FIG. 5 is a schematic diagram of the proposed mainstream process configuration with two-stage partial nitritation-anammox integrated into the treatment train.

    (7) FIG. 6 is a flow chart representing the process control algorithm for partial-nitritation.

    (8) In the drawings like characters of reference indicate corresponding parts in the different figures.

    DETAILED DESCRIPTION

    (9) The following abbreviations are referred to in this document: AFR—airflow rate anammox—anaerobic ammonium oxidation AnAOB—anaerobic ammonium oxidizing bacteria AOB—ammonium oxidizing bacteria BNR—biological nutrient removal CEPT—chemically enhanced primary treatment COD—chemical oxygen demand DAF—dissolved air flotation DO—dissolved oxygen EBPR—enhanced biological phosphorus removal FA—free ammonia fNH4—ammonium fraction of TIN in the effluent fNO2—nitrite fraction of TIN in the effluent fNO3—nitrate fraction of TIN in the effluent HRT—hydraulic retention time MBBR—moving bed biofilm reactor NOB—nitrite oxidizing bacteria OLR—organic loading rate PAOs—phosphorus accumulating organisms PN—partial nitritation RAS—returned activated sludge SNLR—surface nitrogen loading rate SOLR—surface organic loading rate RT—sludge retention time TAN—total ammonium nitrogen TIN—total inorganic nitrogen TN—total nitrogen TSS—total suspended solids UASB—upflow anaerobic sludge blanket VSS—volatile suspended solids

    (10) Referring to the accompanying figure there is illustrated a wastewater treatment system generally indicated by reference numeral 100. The system 100 generally includes a biological reactor 10 comprising a containment vessel to receive material to be treated therein, a plurality of condition sensors 12 in communication with the material in the vessel for sensing various parameters relating to the contents within the reactor vessel, a dispenser 14 including a pump arranged to pump an alkaline control solution from a supply reservoir into the reactor vessel in a controlled amount, an aerator 16 including a pump for pumping air into the reactor vessel through an array of nozzles supported across a bottom of the reactor vessel for aerating the wastewater in the reactor vessel, and a controller 18 arranged to received sensed characteristics communicated from the sensors 12 and to operate the dispenser and the aerator. The condition sensors 12 generate respective condition signals from which a plurality of wastewater characteristics can be derived including a pH level of the wastewater in the reactor. The reactor 10 may be a moving bed biofilm reactor or an integrated fixed film activated sludge reactor.

    (11) The controller 18 is a computer controller including a memory storing programming instructions thereon and a processor arranged to execute the programming instructions so as to perform the various functions of the system 100 described herein. More particularly, the controller compares one of the wastewater characteristics derived from the condition sensors to a prescribed primary threshold stored on the controller so as to control the dispenser to dispense a controlled dosage of the alkaline control solution into the reactor in response to the wastewater characteristic being below the prescribed primary threshold. The controller is arranged to cease the dispensing of the alkaline control solution into the reactor in response to the pH level exceeding a pH threshold.

    (12) When the condition sensors include sensors for measuring the pH level, a dissolved oxygen level, an ammonium level, and a temperature in the reactor and the prescribed primary threshold is a free ammonia threshold, the controller is arranged to (i) calculate a level of free ammonia based upon the wastewater characteristics derived from the condition sensors, and (ii) control the dispenser such that the alkaline control solution is dispensed only if a level of free ammonia in the wastewater is below the prescribed primary threshold. The prescribed primary threshold is stored on the controller so as to be controllably adjustable.

    (13) When the condition sensors include sensors for measuring the pH level, a dissolved oxygen level, an ammonium level, and a temperature in the reactor, a prescribed second threshold may be stored on the controller which comprises a ratio of dissolved oxygen to a total ammonium concentration threshold. In this instance, the controller is arranged to (i) calculate a ratio of dissolved oxygen to a total ammonium concentration based upon the wastewater characteristics derived from the condition sensors, and (ii) control the aerator so as to maintain the ratio of dissolved oxygen to a total ammonium concentration below the prescribed second threshold. The prescribed second threshold is stored on the controller so as to be controllably adjustable.

    (14) Materials and Methods

    (15) Experimental Set-Up

    (16) Partial nitritation was conducted in a plexiglas circular reactor with 5 L working volume. The reactor was filled to 40% with HeadworksBio 450 type media (protected surface area of 402 m2/m3). The reactor was then seeded with return activated sludge (RAS) from a full-scale biological nutrient removal (BNR) plant in Winnipeg (Manitoba, Canada). The reactor was constantly aerated at the air flowrate of 0.1-5 L/min and fed with synthetically prepared medium. The medium contained ammonium chloride (NH4Cl), yeast extract (as source of COD) and sodium bicarbonate (NaHCO3). Micronutrients solution was also added according to (Lashkarizadeh et al., 2015). The reactor was kept in an environmental chamber (Conviron, USA) at 10±1° C. throughout the experimental period. HRT of the reactor was controlled with a peristaltic pump (Masterflex L/S. Cole-Parmer) at 6-12 h. pH was monitored with a general-purpose pH probe (Oakton®, USA) but online measurements were not recorded. Prior to the installation of pH control (Oakton pH/ORP controller, USA), the pH oscillated between 6.5 and 7.5 with a single event when the pH dropped to 5.5. On day 202 pH control was installed and the pH was maintained at 8.6±0.1. DO was measured with an optical probe (Orion RDO, Thermo Scientific, USA) and portable DO meter (Orion 3 Star, Thermo Scientific, USA). Biomass washing out of the reactor was not returned to the reactor after seeding.

    (17) Table 1 summarizes experimental conditions throughout the different periods of the study.

    (18) TABLE-US-00001 Period of the study Start-up and full Media Aeration pH nitrification replacement Control Control Days 0-17 18-33 34-115 116-146 147-199 200-250 NH4-N in 38 41 37 38 39 38 feed, mg L-1 St. dev. 3 2 2 5 3 4 Surface 0.94 0.51 0.46 0.5 0.49 0.46 NLR, g N m-2 d-1 St. dev. 0.08 0.02 0.03 0.6 0.05 0.03 COD in 79 52 58 86 82 feed, mg L-1 St. dev.  2 25 28 33 23 Surface 1.95 1 0.6 0.6 1.1 0.8 OLR, g COD m-2 d-1 St. dev. 0.04 — 0.3 0.2 0.4 0.4 HRT, h 6 12 AFR, L 5 5-0.1 0.1 min-1

    (19) Analytical Methods

    (20) The performance of the MBBR reactor was monitored by observing the fractionation of inorganic nitrogen species in the effluent. The ammonium fractions (fNH4) were expressed with the following equation (1):

    (21) f NH 4 = ( NH 4 - N R ) ( TIN ) . ( 1 )

    (22) Nitrite and nitrate fractions (fNO2, fNO3) which describe how much of the oxidized ammonium was converted to either of the two were calculated according to equation (2) and (3):

    (23) f NO 2 = ( NO 2 - N R ) ( TIN ) ( 2 ) f NO 3 = ( NO 3 - N R ) ( TIN ) , ( 3 )

    (24) where: NH4-NR—ammonium nitrogen concentration in the reactor, NO2-NR—nitrite nitrogen concentration in the reactor, NO3-NR—nitrate nitrogen concentration in the reactor. TIN—total inorganic nitrogen concentration in the reactor.

    (25) It was assumed that total inorganic nitrogen (TIN) in the effluent was made up of only NH4, NO2 and NO3 and so the sum of fNH4, fNO2 and fNO3 equals to 1. Organic nitrogen was not analyzed in the study due to negligible concentration.

    (26) Average surface nitrogen loading rate (SNLR), as well as surface organic loading rate (SOLR) were also calculated for each period of the study. Nitrite, nitrate and ammonium concentrations in the influent and effluent were measured three times a week by a flow injection analyser (Lachat QuikChem 8500, HACH, CA). TIN was calculated as the sum of nitrite, nitrate and ammonium nitrogen.

    (27) Free ammonia (FA) concentration was calculated using the following equation according to (Anthonisen, 1977):

    (28) FA ( mg NH 3 - NL - 1 ) = TAN R * 10 pH e 6344 ( 273 + T ) + 10 pH , ( 4 )

    (29) where: TANR—total ammonium nitrogen concentration in the reactor, T—temperature.

    (30) Chemical oxygen demand (COD), volatile suspended solids (VSS) and total suspended solids (TSS) were measured according to Standard Methods (APHA, 2005). Biofilm solids on the plastic carriers were measured after scarping the biomass off with a cotton swab and de-ionized water. Pictures of the biofilm were taken using a stereoscopic microscope (Zeiss Stereo Discovery.V6, USA) with magnification that varied from 0.315× to 1.5×. Biofilm thickness was measured using CMEIAS(c), an open-source image analysis software. All samples that required filtration were run through medium porosity Q5 filter paper (Fisher 178 Scientific. CA).

    (31) Results and Discussion

    (32) Reactor Start-Up

    (33) The MBBR was seeded with BNR sludge. The initial concertation of biomass in the reactor of approximately 1.7 g VSS L-1. After seeding, the biomass was left to naturally wash out from the reactor. The initial SNLR and SOLR were equal to 0.94±0.08 g N m-2 d-1 and 1.95±0.04 g COD m-2 d-1, however, no nitrification was observed during the first 17 days. The media were microscopically inspected, and a layer of biofilm had already been formed on the surface of the media. The thickness was measured to be equal to 166±61 μm. Since no nitrification was observed, the loading rates were lowered to 0.51±0.02 g N m-2 d-1 and 1 g COD m-2 d-1 by increasing the HRT of the reactor from 6 to 12 h. On day 34, the biofilm thickness was equal to 159±38 μm. To accelerate nitrification the SOLR was further decreased to 0.65±0.31 1 g COD m-2 d-1 during the rest of the start-up period. After decreasing the SOLR, a quick start-up of nitrification was observed. On day 64, the pH in the reactor dropped to 5.5 due to alkalinity deficiency and ammonium oxidation dropped from 62% to 32% on day 71. Nitrification recovered quickly (10 days) and 96% ammonium removal was reached on day 83 with subsequent stable operation throughout the rest of this phase. The biofilm thickness was measured on day 113 and was equal to 147±44 μm. FIG. 1 shows the performance of the reactor during the whole start-up period.

    (34) The aim of the start-up phase was to establish full nitrification and consequently focus on controlling partial nitritation. Some build-up of nitrite was observed during start-up. Maximum nitrite concentration reached 6 mg L-1 on day 54 but then quickly subsided to lower than 1 mg L-1. No nitrite accumulation was also observed during the pH upset.

    (35) Media Replacement

    (36) The first strategy to control partial nitritation was based on a concept of sludge retention time (SRT). NOB have higher maximum growth rates than AOB at temperatures lower than 27° C. which gives them a significant kinetic advantage and consequently nitrite is consumed by NOB as soon as it becomes available (Wett et al., 2011). This makes it necessary to selectively control the population of NOB over AOB. However, under transient conditions (e.g. during nitrification start up), nitrite can accumulate to significant concentrations since NOB growth cannot occur until AOB produce nitrite. To simulate these conditions a strategy based on replacing media at a certain rate was implemented. AOB would grow on a surface of a new media before NOB and produce nitrite before getting replaced with a virgin media hence maintaining a form of a constant start-up in the reactor. As a side-effect of this control strategy an average thickness of the biofilm was expected to decrease, and thin biofilms were previously shown to contribute to more efficient nitritation (Piculell et al., 2016).

    (37) Starting from day 116, 10 media/day were replaced (10 carriers were manually withdrawn from the reactor and 10 virgin carriers were put back in) producing a theoretical SRT of about 17 d. From day 113 to 132 ammonium oxidation dropped only slightly from 0.95 to 0.90 and no nitrite production was observed. Rapid decrease in nitrification was observed after day 136 when ammonium oxidation dropped to 0.53 but still no nitrite production was observed with fNO2 and fNO3 of 0.04 and 0.43, respectively. The average biofilm thickness in the reactor decreased significantly and was equal to 111±29 μm on day 146. These results stand contrary to the observations made by Piculell et al. (2016, 2015) who reported increased nitrite production in thin biofilms. Under conditions studied in this paper, however, thickness of the biofilm had no impact on nitrite production.

    (38) Oxygen Limitation

    (39) On day 146 media replacement was stopped as the approach was deemed unsuccessful and in order to prevent total loss of nitrification. Immediate recovery of nitrification occurred and on day 160 the ammonium oxidation reached 87%. Biofilm thickness was measured on day 162 and was equal to 300±110 μm. From that point air flow rate to the reactor was adjusted stepwise in order to control ammonium oxidation at about 0.6 which is required for anammox. As the air flow rate was decreased to 0.1 L min-1 the mixing in the reactor became insufficient and an additional nitrogen sparging was installed to mix the reactor. Nitrogen flow rate to the reactor was set to 5.5 L min-1.

    (40) During this period of the study the reactor was submitted to significant oxygen limitation. Oxygen limitation was assessed based on R value, which represents a ratio of DO to TAN concentration in the reactor. When the R value is lower than 3.94 the conditions are assumed to be oxygen limited for full nitrification. Application of this ratio as a control strategy for partial nitritation was used by Bian et al. (2017) who reported successful partial nitritation at R values lower than 0.17. Contrary to the observations made by Bian et al. (2017) even though the reactor operated at oxygen-limited conditions while nitrifying approximately 60% of influent ammonium still no nitrite accumulation was observed. At these conditions R value in the reactor oscillated at around 0.1 but still no nitritation was observed. The authors believe that the apparent discrepancy between the observations may arise from the difference in influent characteristics. While Bian et al. (2017) used synthetic wastewater with no organic carbon, this study treated carbon-rich wastewater with COD/N ratio of approximately 2.2 (average from the period between days 146 and 199). On day 197 the media were microscopically inspected, and the biofilm thickness was equal to 320±91 μm.

    (41) pH Control Strategy

    (42) Starting from day 200, the pH in the reactor was controlled at 8.6±0.1 by dosing 0.125 M aqueous solution of sodium hydroxide (NaOH). The air flow rate to the reactor was kept constant at 0.1 L min-1 and none of the other operational parameters were changed. Following the increase in pH, a significant increase in fNO2 and simultaneous decrease in fNO3 was observed during the next two weeks (FIG. 3—top). On day 214 the fractions of NH4-N NO2-N and NO3-N in the reactor were equal to 0.40, 0.48 and 0.12, respectively with NO2-N/NH4-N ratio of 1.2. The average SNLR during this period was equal to 0.46±0.02 g N m-2 d-1 and average SOLR was equal to 0.83±0.42 g COD m-2 d-1. FIG. 3 (bottom) shows the respective nitrogen species concentrations. The average NH4-N concentration was equal to 16.0±1.6 mg L-1 and average nitrite concentration equaled to 15.7±2.4 mg L-1 during the period of stable partial nitritation with the NO2-N/NH4-N ratio of 0.98. The average residual nitrate concentration during steady state partial nitritation was equal to 2.6±2.2 mg L-1. Biofilm thickness was equal to 248±29 μm on day 250.

    (43) Free Ammonia Inhibition of NOB Activity

    (44) The concentration of free ammonia is directly affected by pH of the solution and increases at higher pH (Tenno et al., 2018). Free ammonia concentration had significantly increased after the pH set point was changed to 8.6 with average concentration of 1.1±0.2 mg NH3-N L-1. This concentration of FA did not negatively affect ammonia oxidation which is in agreement with Anthonisen (1977) who reported AOB inhibition at 7 mg NH3-N L-1. NOB activity was, however, successfully supressed at these conditions. These results agree with the observations that nitrite oxidizers are more susceptible to FA toxicity than AOB with inhibition reported at concentrations as low as 0.1 to 1.0 mg NH3-N L-1 (Turk and Mavinic, 1986). Other studies reported, however, NOB sensitivity comparable with AOB at 6.6 to 8.9 mg NH3-N L-1 (Mauret et al., 1996). Wong-Chong and Loehr (1975) reported, for a system of high ammonia of 100 to 1000 mg N/L, that acclimated culture of NOB could tolerate FA concentrations as high as 40 mg NH3-N L-1. In this study, however, NOB did not acclimate even to relatively low FA concentrations and during the 40 d of steady state operation effective inhibition was maintained.

    (45) In regard to Piculell et al. (2016), the authors believe that better nitritation was observed in thinner biofilms because of FA diffusion through the biofilm. The depth of FA penetration into the biofilm is directly proportional to the concentration in bulk and in thin biofilms FA can penetrate the whole depth of the biofilm hence successfully inhibiting NOB metabolism. In thicker biofilms, NOB communities in inner layers would be protected from exposition to FA.

    (46) FIG. 4 shows an overview of inorganic nitrogen fractionation obtained in the reactor with no process control, oxygen limitation (DO/NH4-N ratio control) and a combination of oxygen limitation and pH control (all at 10° C). Employing DO/NH4-N ratio control resulted in successful limitation of ammonium oxidation to approximately 60% (partial nitrification), however ammonium was still oxidized to nitrate, and no nitrite production was observed. Mainstream partial nitritation was only achieved by combining DO/NH4-N ratio control and pH control at 8.6. Nitritation was obtained by the inhibition of NOB metabolism by elevated concertation of FA at high pH.

    (47) Integration to Mainstream and Process Control

    (48) The results obtained from this study prove that two-stage MBBR approach for incorporating anammox process into mainstream is a viable option. FIG. 5 shows a schematic diagram of the proposed mainstream process configuration. Chemically enhanced primary treatment (CEPT) is proposed to remove phosphorus and capture a significant portion of organic carbon. Arguably, CEPT could be replaced with conventional primary clarification and subsequent enhanced biological phosphorus removal (EBPR) in anaerobic-toxic process (A/O). CEPT or EBPR is followed by a two-stage partial nitritation-anammox process and the treatment is finished with solids separation (DAF) and disinfection (UV).

    (49) The proposed configuration could arguably be more efficient than one-stage approach where partial nitritation and anammox occur in one reactor. The main reason for this is that with the presented control strategy it is relatively easy to control partial nitritation and solve the biggest problem in one-stage systems which is nitrate overproduction due to proliferation of NOB. This is especially true for temperatures below 15° C. and very low nitrogen concentrations. While one-stage systems are advantageous in side-stream applications (Lackner et al., 2014), the authors believe that separation of partial nitritation and anammox is a better solution for mainstream processes.

    (50) Dynamic process control algorithm for mainstream partial nitritation is presented in FIG. 6. The process is controlled by simultaneously maintaining two user-specified control setpoints. Firstly DO/NH4-N ratio is controlled at a certain setpoint (setpoint 1 in FIG. 6) to obtain TAN oxidation at 50% by monitoring NH4-N concentration in the reactor and controlling DO concentration. And secondly, FA concentration is controlled at a certain setpoint (setpoint 2 in FIG. 6) to obtain nitritation by inhibiting NOB activity. FA concentration is governed by temperature, pH and TAN concentration in bulk but only pH can be externally controlled. Hence, a base dosing system is used to increase the pH to obtain the specified FA concentration.

    (51) The exact values for both setpoints are dictated by the wastewater characteristics and temperature. Primarily by the concentration of biodegradable COD since both setpoints must be increased the higher the organic loading rate (OLR) gets. The biofilm will grow thicker at higher OLRs hence the FA setpoint has to be increased in order to enhance the FA penetration depth into the biofilm and successfully inhibit NOB. The setpoint for DO/NH4-N ratio also must be increased at higher OLRs as more oxygen is needed to oxidize the additional organic carbon. For the conditions and synthetic wastewater studied in this paper the setpoints were defined through the course of the experiment to be 0.06 for DO/NH4-N ration and 1.1 mg NH3-N L-1 for FA.

    (52) Cost of Nitrogen Removal from Wastewater

    (53) The chemical requirement needed to artificially increase pH is an additional operating cost associated with the proposed control strategy. Sodium hydroxide was chosen as the source of basicity due to it's ease of handling, ability to make 50% solutions and it has been a proven chemical of choice used in full-scale applications for sidestream phosphorus recovery. The average consumption of NaOH was estimated at 0.2 kg/m3 of wastewater. The cost of industrial grade NaOH varies greatly depending on the purity, however, assuming the average price of 200 $/tonne gives approximately 0.04 $/m3 of additional chemical cost. It is not easy to precisely estimate the operational costs of BNR plants as they vary greatly depending on process design, scale, energy costs, location etc. According to (Gratziou and Chrisochoidou, 2011) the total annual operating cost of an activated sludge process with pre-denitrification zone was 1.541 $/m3. Molinos-Senante et al. (2010) reported much lower operating costs estimated at 0.2651 $/m3. Similarly, Zessner et al. (2010) who showed that the cost of operating BNR plants in Austria ranges from 0.154 to 0.2251 $/m3. Rodriguez-Garcia et al. (2011) reported moderately higher range of 0.271-0.3201 $/m3. 373. The prices noted above are in USD and the inflation from the year of original publication was taken into account.

    (54) Integration of anammox into mainstream process is associated with potentially significant savings in operating costs. Energy requirement for aeration could be reduced by 50% compared to conventional nitrification-denitrification. External carbon requirement could be completely removed, and sludge production would be reduced at least by 50%. Assuming that energy and sludge disposal (including chemical costs and maintenance) make up around 60% of total operational costs of the treatment plant (Molinos-Senante et al., 2010), the authors believe that the additional chemical costs could be easily offset by the gained savings.

    (55) Conclusions

    (56) Partial nitritation at 10° C., low nitrogen concentration and high COD/N ratio (>2) has been shown to be feasible. Mainstream partial nitritation was achieved by combining two control strategies. The target level of ammonium oxidation was achieved by controlling DO/TAN ratio and nitritation was obtained by FA inhibition at high pH. Long term stability was successfully obtained at DO/TAN ratio of 0.06 and at FA concentration of 1.1±0.2 mg NH3-N L-1. NOB did not acclimate to FA during 40 days of steady state operation and were effectively inhibited. An algorithm for dynamic process control of partial nitritation has been also developed.

    (57) As described herein, partial nitritation is achieved by combining two control strategies. The target level of ammonium oxidation (50-55%) is achieved by controlling a ratio of dissolved oxygen concentration to a total ammonium concentration (DO/NH.sub.4-N ratio) and nitritation is obtained by controlling pH at a high set-point by dosing highly alkaline solution (e.g. but not limited to NaOH) which increases the concentration of free ammonia (FA) in the biological reactor and inhibits and suppresses NOB activity.

    (58) FIG. 4 shows an overview of inorganic nitrogen fractionation obtained in the reactor with no process control, and a combination DO/NH.sub.4-N ratio and pH control (all at 10° C.). Employing DO/NH.sub.4-N ratio control resulted in successful limitation of ammonium oxidation to approximately 60% (partial nitrification), and nitritation was obtained by the inhibition of NOB metabolism by elevated concertation of FA at high pH.

    (59) A dynamic process control algorithm for mainstream partial nitritation is presented in FIG. 6. The process is controlled by simultaneously maintaining two user-specified control setpoints. Firstly, DO/NH.sub.4-N ratio is controlled at a certain setpoint (setpoint 1 in FIG. 6) to obtain ammonium oxidation at 50% by monitoring NH.sub.4-N concentration in the reactor and controlling DO concentration. And secondly, FA concentration is controlled at a certain setpoint (setpoint 2 in FIG. 6) to obtain nitritation by inhibiting NOB activity. FA concentration is governed by temperature, pH and TAN concentration in bulk but only pH can be externally controlled. Hence, a base dosing system is used to increase the pH to obtain the specified FA concentration.

    (60) The exact values for both setpoints are dictated by the wastewater characteristics and temperature. Primarily by the concentration of biodegradable COD since both setpoints must be increased the higher the organic loading rate (OLR) gets. The biofilm will grow thicker at higher OLRs hence the FA setpoint has to be increased in order to enhance the FA penetration depth into the biofilm and successfully inhibit NOB. The setpoint for DO/NH.sub.4-N ratio also must be increased at higher OLRs as more oxygen is needed to oxidize the additional organic carbon.

    (61) There are two main features of the invention that are believed to be novel. First, the principle of combining both DO/NH.sub.4 ratio and FA inhibition by adjusting pH to control partial nitritation process in a biological reactor. And second, the process control algorithm that allows for stable partial nitritation at variable flows and loads. The algorithm allows for dynamic changes in control setpoints to achieve target levels of ammonium oxidations and nitritation.

    (62) The proposed method has several advantages over existing solutions. More stable and precise control of nitritation can be achieved. Moreover, this method can be used in any kind of biological reactor and is not limited to only certain configurations. This method is also compatible with any kind of biocarriers and not only a certain type. What's more the method allows for high concentration of dissolved oxygen in reactor as it does not depend on microaerophilic conditions to achieve nitritation. In turn nitritation rates are high which reduces the required volume of the reactor.

    (63) The most unique aspect of the invention is its versatility as it can be incorporated into most reactor configurations whether biofilm or suspended growth reactors or one or two stage systems. Moreover, the proposed control method is remarkably flexible thanks to the process algorithm allowing to adjust control set-points for variability in wastewater flows and loads as well as seasonal temperature changes.

    (64) The invention was developed for two-stage partial nitritation—anammox systems. Which means that the two process are separated between two reactors. Nevertheless, the invention could be also used in one-stage systems where both partial nitritation and anammox occur in the sane reactor.

    (65) The invention has been shown to be successful at controlling partial nitritation in a moving bed biofilm reactor, however, it is not limited to it. It is expected to be also a viable solution for conventional activated sludge reactors as well granular sludge reactors or integrated fixed film activated sludge reactors.

    (66) The proposed invention can be used in the treatment of municipal wastewater but is not limited to it. It can also be used to treat reject waters from dewatering of digested sludge as well as in industrial wastewater treatment.

    (67) It is expected that the invention will result in the development of online process monitoring and control system (apparatus with integrated process control algorithm).

    (68) Since various modifications can be made in my invention as herein above described, and many apparently widely different embodiments of same made, it is intended that all matter contained in the accompanying specification shall be interpreted as illustrative only and not in a limiting sense.