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:

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

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.

Answer: 5.71 mg/L

Worked example: Residence time

Given: Tank 1200 m³, flow 100 m³/h

Find: τ.

Answer: 12 h

Worked example: ppm in air

Given: SO₂ 262 µg/m³ at 25 °C (M = 64)

Find: ppm.

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/L

A 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

Applications

Key takeaways

Going further