Introduction to Environmental Engineering & Mass Balances
What environmental engineers do and the single most important tool they use. Learn the field's scope (water, wastewater, air, solid waste, soil, climate), environmental systems and pollutant pathways, units (mg/L, ppm, µg/m³), the control-volume mass balance, mixing of streams, first-order reactions, completely mixed (CSTR) and plug-flow systems, residence time, and sustainability principles — with Python for river mixing and lake decay.
Environmental engineering protects people and ecosystems: supplying safe drinking water, treating sewage and industrial effluents, controlling air pollution, managing solid and hazardous waste, cleaning contaminated land, and — increasingly — reducing greenhouse-gas emissions and designing circular, sustainable systems.
Almost every environmental calculation starts with a mass balance: what goes in, what comes out, what reacts, what accumulates. Master it and rivers, lakes, treatment tanks, rooms and the atmosphere all become solvable problems.
An analogy
A mass balance is like tracking money in a bank account: deposits (inputs) minus withdrawals (outputs) plus interest or fees (reactions) equals the change in balance (accumulation). Pollutants can't appear or vanish without being accounted for.
Scope of the field
Environmental engineers work on:
- Water supply and treatment — safe drinking water
- Wastewater collection and treatment — protecting rivers and seas
- Air quality — emissions control, dispersion, indoor air
- Solid and hazardous waste — collection, recycling, landfills, incineration
- Contaminated land and groundwater — investigation and remediation
- Climate and sustainability — GHG accounting, LCA, circular economy
Control volumes and reactors
Draw a boundary, list flows in and out, add reactions. Two ideal reactor models describe most tanks, lakes and rivers: completely mixed (CSTR — lakes, aeration tanks) and plug flow (rivers, pipes, long channels). For the same residence time and first-order decay, plug flow achieves more removal; real systems lie in between and are modelled as tanks in series.
Pollutant pathways
Source → release → transport (advection, dispersion, diffusion) → transformation (degradation, sorption, volatilisation) → exposure (drinking, breathing, eating) → effect. Environmental engineering intervenes at every step: reduce at source, treat before release, contain transport, protect receptors.
Sustainability and regulation
Standards (WHO guidelines, CPCB/BIS in India, US EPA, EU directives) set limits for water, air and effluents. Environmental impact assessment (EIA) evaluates projects before construction. Sustainability extends the view to whole life cycles, resources and climate: prevention beats treatment (waste hierarchy), and engineering choices are judged on environmental, social and economic outcomes.
Formulas
- General mass balance:
Accumulation = In − Out ± Reaction - Mixing of two streams:
C_mix = (Q₁C₁ + Q₂C₂)/(Q₁ + Q₂) - First-order decay:
C = C₀·e^(−kt) - Steady CSTR with decay:
C = C_in / (1 + kτ) - Plug-flow reactor:
C = C_in·e^(−kτ) - Units:
1 mg/L = 1 g/m³ ≈ 1 ppm (water); ppm (air) = µg/m³ × 24.45/M (25 °C)
Worked example: Stream mixing
Given: River 10 m³/s at 2 mg/L; effluent 0.5 m³/s at 80 mg/L
Find: Downstream concentration.
- (20 + 40)/10.5
Answer: 5.71 mg/L
Worked example: Residence time
Given: Tank 1200 m³, flow 100 m³/h
Find: τ.
- 1200/100
Answer: 12 h
Worked example: ppm in air
Given: SO₂ 262 µg/m³ at 25 °C (M = 64)
Find: ppm.
- 262 × 24.45/64 = 100 ppb
Answer: 0.1 ppm
River mixing and lake decay
# Steady-state mass balance: a river receiving a wastewater discharge (complete mixing)
Qr, Cr = 10.0, 2.0 # river flow m3/s, upstream pollutant mg/L
Qw, Cw = 0.5, 80.0 # wastewater flow m3/s, concentration mg/L
Cmix = (Qr * Cr + Qw * Cw) / (Qr + Qw)
print(f"mixed concentration = {Cmix:.2f} mg/L")
# First-order decay in a lake (CSTR): C = C_in / (1 + k*tau)
V, Q, k = 2e6, 5.0, 0.1 / 86400 # m3, m3/s, 1/s (0.1 per day)
tau = V / Q
print(f"lake residence time {tau/86400:.1f} days, outflow = {Cmix/(1 + k*tau):.2f} mg/L")
# mixed concentration = 5.71 mg/L
# lake residence time 4.6 days, outflow = 3.91 mg/LA small, concentrated discharge nearly triples the river concentration. In the lake, decay during a 4.6-day residence time removes about a third. The same two equations size treatment tanks and check discharge permits.
Common mistakes
- Wrong: Mixing units (mg/L with kg/day without conversion). — Right: Load (kg/d) = Q (m³/s) × C (mg/L) × 86.4.
- Wrong: Assuming complete mixing in rivers immediately. — Right: Mixing zones can extend kilometres downstream.
- Wrong: Ignoring reactions in the balance. — Right: Include decay, settling, volatilisation.
Applications
- Discharge permits: Checking river standards after mixing.
- Treatment design: Sizing tanks from residence time and kinetics.
- Lake management: Nutrient and pollutant budgets.
- Indoor air: Ventilation rates to dilute pollutants.
Key takeaways
- Mass balance is the core tool.
- C_mix = ΣQC/ΣQ.
- CSTR: 1/(1 + kτ); PFR: e^(−kτ).
- Prevent, treat, contain along the pathway.
Going further
- Tanks-in-series model: Representing non-ideal mixing with N CSTRs.
- Unsteady mass balance: dC/dt = (Q/V)(C_in − C) − kC for spills.
- Dimensionless numbers: Péclet and Damköhler numbers in reactor design.