Article
Inside the modern refinery’s “water factory”: the art wastewater
Industry: Oil_and_Gas | Process: Refining
Water is the silent workhorse of oil refining, and it is getting a more exacting job description. Global studies put refinery water use at about 246–340 L per barrel of crude, with roughly 30–40% discharged as effluent (www.sciencepublishinggroup.com). In Indonesia, the Ministry of Environment Regulation No. 19/2010 sets refinery effluent standards at BOD₅ (five‑day biochemical oxygen demand) ≤80 mg/L, COD (chemical oxygen demand) ≤160 mg/L, oil & grease ≤20 mg/L, NH₃‑N (ammonia nitrogen) ≤8 mg/L, and phenol ≤0.8 mg/L (id.scribd.com). Developed‑country targets are usually similarly stringent. Oil is usually <10 mg/L.
That backdrop has pushed a clear, three‑step playbook: remove free and emulsified oil up front (primary). Then oxidize dissolved organics and nitrify ammonia (secondary). Then polish for discharge or reuse (tertiary). A 2024 review highlights how membrane systems, especially ultrafiltration–reverse osmosis (UF‑RO), are increasingly used to produce high‑grade reclaimed water (www.sciencepublishinggroup.com).
Primary oil and solids separation
The mission here is to strip free oil, grease, and coarse solids to protect what follows. Screening and gravity separation lead the way. Facilities usually start with front‑end screens. A continuous unit such as an automatic screen removes debris >1 mm without interrupting flow.
The API separator (American Petroleum Institute style gravity oil–water separator) is the workhorse. Designed per API RP 421—length‑to‑width ≥5:1, horizontal flow <3 ft/s, and depth‑to‑width ≈0.3–0.5 (docsbay.net)—it removes 60–99% of free oil (www.watertechnologies.com). Effluent oil typically lands ≤50–200 mg/L, with designs aiming for <200 mg/L and ≈50 mg/L often seen in practice (www.thewastewaterblog.com). Expect 10–50% TSS (total suspended solids) removal and a modest 5–30% COD drop (www.watertechnologies.com).
Design details matter. Multiple skimmer/scraper flights continuously remove floating oil and convey settled solids to a sludge hopper (docsbay.net). Skimmed oil can be 90–95% pure, suitable for recovery or incineration. Where footprint allows, sedimentation hardware such as a clarifier or coalescing plates (corrugated plate interceptors) helps enhance separation.
Flotation for emulsified oil
Emulsified and fine oil that gravity units do not capture usually goes to dissolved-air flotation, DAF (microbubble flotation), or IGF (induced gas flotation). With coagulation, for example alum or polyaluminum chloride at ~10 mg/L, DAF operated near pH≈5 and 300–500 kPa saturator pressure removes >80% of the remaining oil, organics, and TSS (www.researchgate.net). On API effluent, DAF usually removes ~70–85% of oil, ~80–85% of TSS, and 10–60% of COD/BOD (www.watertechnologies.com). In practice, DAF plus coagulant dosing usually brings oil & grease below 10 mg/L.
DAF float is a frothy concentrate of oil/grease and sludgy solids. It runs at about 4–6% solids and goes to sludge processing. Refiners that dose polyaluminum chloride usually use a DAF unit together with a PAC coagulant program and controlled addition through a dosing pump for stable performance.
Flow equalization and pH control
A surge/equalization tank buffers flow and load swings. It is important insurance against upsets, and it is a logical place to adjust pH (acidify to ~6–7) to make the coagulants work better and to protect the biology. Oil-water storage/settling tanks, or corrugated plate interceptors, can act as intermediate skimmers during large spills. When a central plant is sized later, an equalization capacity of at least 24–48 hours is recommended.
Overall, primary treatment should remove roughly 90–99% of free-floating oil and 30–70% of TSS before the bioreactor (www.watertechnologies.com). Veolia data show an API+DAF train removing ~85–95% of oil and cutting BOD/COD by ~20–70% (www.watertechnologies.com).
Secondary biological oxidation and nitrification
After primary treatment, expect FOG (fats, oils, grease) of about 20 mg/L or less, but BOD and COD will be higher. Biological treatment, either activated sludge or biofilm processes, does most of the work on dissolved organics and ammonia. Conventional activated sludge or MBBR (moving bed biofilm reactor) basins are usually sized for more than 8 h hydraulic retention, MLSS (mixed liquor suspended solids) of about 2–4 g/L, and DO (dissolved oxygen) of about 2 mg/L. Activated sludge removes about 85–95% of BOD and 50–95% of COD from primary effluent (www.watertechnologies.com). It usually brings effluent BOD down to single-digit mg/L, frequently below 20 mg/L.
Veolia reports that secondary ASP (activated sludge process) usually removes about 80–99% of residual oil and about 95–99% of phenol (www.watertechnologies.com). A plant built around an activated sludge aeration basin is still the default. Biofilm options such as MBBR make the process more stable when the load changes.
Many modern refineries use MBRs (membrane bioreactors) because they are compact and give high performance. Anoxic–aerobic MBR pilots have shown about 97% COD removal and about 96% oil removal (www.sciencepublishinggroup.com). Full-scale MBRs have shown NH₃‑N below 0.5 mg/L in the effluent (www.sciencepublishinggroup.com). A typical MBR runs at SRT (sludge retention time) above 20 days with 0.04–0.1 mm pore membranes, and the permeate turbidity stays below 0.2 NTU (nephelometric turbidity unit). Compact, integrated packages such as membrane bioreactors are therefore a route to reuse-grade effluent.
Nutrient removal pathway
Ammonia in crude-derived wastewater is usually 5–20 mg/L NH₃-N. The limit is 8 mg/L NH₃-N (id.scribd.com). To meet it, complete nitrification needs about 24–48 hours of aerated contact. If total nitrogen is a concern, many designs add an anoxic denitrification zone. A sequence of anoxic MBBR + aerobic MBBR has been shown to achieve near-complete nitrate removal as well (www.sciencepublishinggroup.com). Modular options such as nutrient removal packages can be integrated into the biological train.
Sludge production and handling
Biological treatment generates secondary sludge at ~0.5–0.7 kg dry solids per kg BOD removed (Veolia table, www.watertechnologies.com). Sludge is thickened to ~3–5% dry solids before disposal or incineration. Removing FOG in primary reduces oily sludge in the bioclarifier. Any oil that reaches the bioreactor can accumulate in sludge flocs. It may then need controlled wasting.
Tertiary filtration and adsorption
For discharge polish, rapid granular media filters remove the remaining suspended solids and oil droplets. From secondary clarifier effluent, granular media filtration gives about 75–95% TSS removal and about 65–95% oil removal (www.watertechnologies.com). In practice, turbidity can drop to <5 NTU and oil to <5 mg/L. BOD/COD usually falls a further 20–30%.
Media trains can be configured with sand/silica filtration to remove 5–10 micron particles. Multilayer beds usually incorporate anthracite media for depth filtration and low headloss.
Activated carbon is a classic adsorbent and it takes up the organics that are left. After sand filtration, GAC (granular activated carbon) can remove more than 90% of trace phenol and PAHs. Veolia cites 91–98% BOD and 86–94% COD removal after secondary treatment plus GAC polishing (www.watertechnologies.com). Carbon beds such as activated carbon can bring total phenols down to the low µg/L range if the bed life and the regeneration are maintained.
Membrane polishing for reuse
Where reuse is the goal, or discharge is very strict, membranes are the best option. UF (ultrafiltration) at 0.01–0.1 µm keeps out suspended matter and oil. NF (nanofiltration) and RO (reverse osmosis) then remove salts and small organics. A hybrid UF–RO train is named as one of the most promising routes for refinery reuse (www.sciencepublishinggroup.com). The permeate shows almost no oil, less than 10 mg/L COD and very low conductivity. One refinery reported UF‑RO reuse water meeting boiler/make‑up specs.
Pretreatment UF skids such as ultrafiltration protect the membranes downstream. For salt and organics removal, integrated RO/NF systems are typical. RO options for industrial effluent include brackish water RO where the TDS is within range, and specialty elements such as FilmTec membranes or Toray membranes depending on the specification.
Advanced oxidation and disinfection
If recalcitrant organics stay in the water, AOPs such as ozone or H₂O₂/UV can break down phenols or sulfides. They also disinfect. For pathogen control alone, UV or chlorination are options. However, a high chlorine residual can form organochlorines. Therefore UV is usually preferred for disinfection of sensitive environments. Compact UV reactors such as ultraviolet systems disinfect without chemicals. They kill 99.99% of pathogens at low operating cost.
Design outcomes and performance metrics
A well-designed refinery WWTP aims for effluent quality of ≤50 mg/L BOD₅, ≤100 mg/L COD, oil <10 mg/L (preferably <5 mg/L), and NH₃-N <2–5 mg/L before discharge (id.scribd.com). In pilots, anoxic–oxic MBR runs removed about 97% of COD (from about 1000 mg/L to about 25 mg/L) and 96.6% of the oil (www.sciencepublishinggroup.com). That is far below the Indonesian limits.
Removal efficiencies stack up: overall FOG removal is typically ~98–99%; overall BOD removal ~95%; ammonia removal ~90%. One case study showed >95% BOD removal with final effluent <3 mg/L (www.sciencepublishinggroup.com). Veolia table values suggest combined primary+secondary remove ≥90% of BOD and essentially all oil (www.watertechnologies.com) (www.watertechnologies.com).
Capacity, energy, and footprint planning
A “central” plant should be sized for peak wet-weather flow because refinery drainages can spike. A practical rule of thumb is about 0.5–1.0 m³/hour per barrel-per-day of capacity. For a 100,000 bbl/d refinery, that means about 5,000–10,000 m³/day of wastewater and a plant flow of about 200–400 m³/hr. Include at least 24–48 h of equalization to handle surges.
Aeration (secondary) and membranes (if used) use most of the energy. Advanced systems (MBR, RO) add OPEX but need less space. One tradeoff: MBR aeration uses about 30–50% more energy than ASP, but it avoids clarifier space. In the humid tropics, cooling deodorization or VOC capture from tanks may also be needed.
Industry adoption trends
The data show rising use of high-rate and membrane processes to save water. A 2024 review counted about 82 published studies on refinery effluent reuse (2002–2023), with Asia leading (Iran, Iraq, China, India) (www.sciencepublishinggroup.com). About half of the reviewed applications used membrane steps (UF, RO) (www.sciencepublishinggroup.com). This shows the pressure from regulations and from the need to use resources well. UF-RO reclaimed water can replace freshwater demand by supplying boilers or cooling systems.
Practical design checklist

Primary clarifier/API unit: install a 5:1 L:W oil separator with coalescing plates if space allows. Include automatic skimmers and sludge hoppers. Target residual oil <100 mg/L after API. Gravity separation hardware and oil skimming equipment such as oil removal systems can help capture free oil.
DAF polishing: use DAF with chemical feed after API and design for ~15–30 minutes retention. Expect ~80% removal of emulsified oil and organics (www.researchgate.net). Coagulants applied upstream can be sourced from programs like PAC/ACH.
Equalization basin: provide 1+ days of flow buffering with pH adjustment. Instrumentation and tanks in wastewater ancillaries help standardize chemical handling and mixing.
Secondary activated sludge: design for BOD loading ~1.0–1.5 kg/m³·d, MLSS ~2–3 g/L, DO 2–3 mg/L. Include nitrification (about 24 h contact). Aim for >90% BOD removal. Equipment packages such as activated sludge aeration systems give a familiar baseline.
Advanced aerobic process: consider MBBR or MBR to achieve >95% removal and a compact layout. Pilot tests have shown MBR effluents far exceeding standards (www.sciencepublishinggroup.com) (www.sciencepublishinggroup.com).
Tertiary polishing: add multimedia filtration (or cloth filters) followed by activated carbon. For reuse water, add UF + RO. Make sure final oil ≤5 mg/L and BOD/COD meet client targets (usually 10–20 mg/L). Media and carbon building blocks include sand/silica filters and activated carbon. Membrane pretreatment and desalting stages are built with UF and downstream nanofiltration or RO.
Monitoring: use continuous oil‑in‑water monitors, plus monthly lab tests for BOD, COD, NH₃, phenol, and more to prove compliance.
Sludge handling: thicken sludge from API and DAF. Dewater by centrifuge or filter press and incinerate or co‑process. Activated sludge excess can be stabilized (digested) if needed.
Compliance and calculation notes
Following these guidelines and current technologies, a refinery WWTP can reliably meet Indonesia’s standards (id.scribd.com). Specific removal data—API separator oil removal 60–99% (www.watertechnologies.com), DAF ≥80% oil/organic removal (www.researchgate.net), secondary BOD removal ~90% (www.watertechnologies.com), tertiary solids removal ~80–95% (www.watertechnologies.com)—should be used in design calculations to size units and predict effluent quality. Rigorous monitoring, smart primary separation, robust biology, and targeted polishing enable environmental compliance, cut freshwater intake, and improve long‑term operational efficiency.
Sources: a 2024 systematic review on refinery wastewater reuse (www.sciencepublishinggroup.com) (www.sciencepublishinggroup.com); industry design guidelines (www.watertechnologies.com) (docsbay.net); and Indonesian regulations (id.scribd.com). All numeric values and performance figures are drawn from these sources.