Refineries Tame Volatile Wastewater With Big Tanks and Smarter Chemistry
Refinery wastewater doesn’t flow in neat, steady lines. Equalization tanks, online oil-in-water and pH sensors, and automated dosing now close the loop—buffering surges and adjusting treatment in real time.
Refinery wastewaters swing with refinery life—crude feed changes, turnarounds, washdowns. One plant’s diurnal profile ran at 4.3 million gallons per day (MGD) on average, with peaks ≈1.7× the average and lows ≈0.45× the average (nepis.epa.gov). The pollutants swing, too: biochemical oxygen demand (BOD, a measure of biodegradable organic load) saw peaks roughly 15× the minima in the same case (nepis.epa.gov).
An equalization (EQ) basin—simply, a large, mixed tank that blends and meters flow—“dampens the diurnal flow variation” and blends spikes into a nearly constant output (nepis.epa.gov). Design guidelines in practice land at roughly 10–20% of average daily flow; in the 4.3 MGD case, the EQ volume was ~17%—about 740,000 gallons (nepis.epa.gov).
Equalization design and diurnal buffering
The operating principle is straightforward: meter in high flows until the target flow is reached, let the basin absorb surges, and then discharge slowly—often overnight—once inflow ebbs (nepis.epa.gov). In the EPA’s illustrative diurnal curve, a 17% buffer filled from about 0800 to 1700 and emptied by 0800 the next day (nepis.epa.gov). Blending like this “results in a more uniform loading” of oil, BOD, total suspended solids (TSS), nutrients, and other constituents to downstream units (nepis.epa.gov).
Case studies show that full mixing in the EQ tank significantly flattens concentration swings (see Fig. 4), and that increasing the active volume further smooths peaks across parameters like nitrogen, phosphorus, and toxic constituents (nepis.epa.gov). That uniformity pays downstream: equalization “can significantly improve the performance of an existing treatment facility…and reduce the required size of downstream facilities” (nepis.epa.gov).
Retrofitting tanks and primary treatment impact
In practice, refineries have even converted a spent aeration tank to act as EQ, with mixers or aerators operating continuously to prevent solids deposition while handling recycled streams (nepis.epa.gov) (nepis.epa.gov). Stabilized flow makes upstream oil-water separation more predictable for API separators and primary systems, including oil skimming and screening. Many facilities pair equalization with compact primary equipment such as physical separation trains and dedicated oil removal systems before flotation and clarification stages.
Key metrics and downstream setpoints
Typical EQ basins are sized for several hours of flow; in the example above, ~17% of the 24-hour volume was sufficient to remove most peaks (nepis.epa.gov). With EQ smoothing, downstream effluent pH and load profiles became more uniform, targeting roughly pH 7–8 for biological treatment (www.yokogawa.com). That supports steady performance in clarifiers and biological systems. In many trains, a gravity clarifier precedes aerobic basins such as activated sludge or attached-growth reactors.
Online monitoring: oil and pH, continuously
Continuous sensors make the buffering active. Modern oil-in-water (OIW) analyzers—UV‑fluorescence or infrared (IR) absorption—detect oil at mg/L or parts-per-million (ppm) concentrations and stream data to control systems in real time (www.boquinstrument.com). UV-based probes “excite oil droplets” to fluoresce, enabling instant concentration readings (www.boquinstrument.com). Continuous monitoring eliminates grab-sample delays; one Gulf‑Coast refinery cut analysis time from hours to minutes and enabled immediate response to upsets after installing on‑line OIW monitors (www.boquinstrument.com).
pH probes serve as sentinels, especially at the API separator outlet, where a drift can signal flocculation problems or residual caustic carryover (www.yokogawa.com). For oily wastewater feeding anaerobic or aerobic biomass, neutral pH is ideal—about 6.5–8.5—with values below 6.5 often causing bulking or toxicity issues (www.yokogawa.com). Digital sensors (for example, Memosens) can be wired to PLC/SCADA—programmable logic controller/supervisory control and data acquisition—providing precise readings (±0.01 pH, milligrams per liter DO, turbidity, and more) and auto‑calibration alerts (www.pt.endress.com). End‑users report integrated panels can be set up “in as little as 15 minutes” and consolidate pH, conductivity, turbidity and other measurements in one place (www.pt.endress.com).
The immediate benefit is operational visibility: managers know “whether oil separation… and downstream treatment stages are working properly and whether the treated wastewater can be reused or discharged” (www.pt.endress.com). In flotation trains handling emulsified oil, dissolved air flotation units such as a compact DAF system benefit from stable OIW and pH setpoints established upstream.
Automated chemical dosing and closed-loop control
Linking sensors to actuators closes the loop. If the OIW reading jumps above a target—say, >10 mg/L—the PLC can trigger a demulsifier or coagulant injector immediately, while a pH slip below neutral can cue alkali dosage. In practice, common reagents include acids (H₂SO₄/HCl) to break emulsions and lower pH, caustics (NaOH, lime) to raise pH, and coagulants (ferric chloride, polymers) to aid solids settling. Yokogawa notes that at the API stage, emulsified oil often requires “chemical addition to lower the pH” or the use of demulsifiers (www.yokogawa.com). Automated metering with an accurate chemical dosing pump can deliver measured acid volumes based on real‑time pH, and a clarifier turbidity rise can be matched by proportional coagulant feed.
Adaptive dosing reduces chemical wastage and prevents shock loading of biotanks. Facilities standardize their treatment chemistries with coagulants, flocculants, and targeted demulsifiers, supported by wastewater ancillaries for mixing and instrumentation. Quantitatively, dynamic pH control has been shown in municipal studies (analogous to industrial flows) to maintain setpoints within ±0.05 pH units despite influent swings. Plant experience indicates automated dosing can cut baseline chemical use by ~10–30% and reduce effluent violations to near‑zero; in one refinery, on‑line OIW monitoring combined with automatic flocculant dosing held effluent oil consistently below 5 mg/L. Early flags help avoid upsets that otherwise spike BOD/COD. In advanced setups, predictive algorithms adjust dosing trends—e.g., increasing coagulant during morning surge hours—to prime the system.
Measured outcomes and compliance lift
The combined strategy—EQ buffering plus on‑line control—typically stabilizes effluent below regulatory limits. Plants report >90% reduction in violation events after installing equalization and continuous monitoring. Volumetrically, the 17% EQ buffer in the EPA example removed most peaks (nepis.epa.gov). In the cited sensor implementation, one client’s compliance jumped from ~60% to ~99% via instant corrective dosing (www.boquinstrument.com). This matters under stringent effluent standards, including Indonesian KLHK limits on oil and BOD, where these controls help ensure continuous compliance.
Source notes and design references
EPA design manuals detail equalization’s purpose and benefits—“dampens the diurnal flow variation,” “results in a more uniform loading,” and can “significantly improve the performance of an existing treatment facility…and reduce the required size of downstream facilities”—with example sizing at 10–20% of daily flow (~17% and ~740,000 gallons for 4.3 MGD in one case; filling ~0800–1700, empty by ~0800 next day) (nepis.epa.gov) (nepis.epa.gov) (nepis.epa.gov) (nepis.epa.gov) (nepis.epa.gov). Application notes from PT Yokogawa Indonesia explain API‑stage oil and grease removal, pH monitoring points, and neutral pH ranges (~6.5–8.5) for biomass, including the use of caustic, lime, or magnesium hydroxide to maintain setpoints (www.yokogawa.com) (www.yokogawa.com). Endress+Hauser resources document rapid setup (“in as little as 15 minutes”) and the “operational visibility” gained from integrated panels (www.pt.endress.com) (www.pt.endress.com). BOQU Instrument Co. outlines OIW analyzer principles—UV fluorescence/IR—and reports time and compliance gains from real‑time oil monitoring (www.boquinstrument.com) (www.boquinstrument.com) (www.boquinstrument.com).
Overall, buffering with an EQ basin sized to site flows—“react in real time to changing influent conditions” via OIW, pH, turbidity and related sensors—protects downstream flotation, clarifiers and bioreactors, and yields a consistent final effluent (nepis.epa.gov) (nepis.epa.gov) (www.boquinstrument.com).