Introduction to Petroleum Engineering

From source rock to fuel tank. Learn how oil and gas form (source, migration, reservoir, seal, trap), the upstream–midstream–downstream value chain, exploration (seismic, logging), the lifecycle of a field, oil and gas units (barrels, API gravity, scf, boe), the roles of drilling, reservoir and production engineers, offshore vs onshore development, and the energy-transition context (CCS, geothermal, hydrogen storage) — with Python for API gravity and unit conversions.

Petroleum engineering is the discipline of finding, developing and producing oil and natural gas safely and economically. Hydrocarbons still supply more than half of the world's primary energy and feedstock for plastics, fertilisers and chemicals.

Petroleum engineers work across the subsurface (reservoir), the well (drilling and completion) and the surface (production facilities). Their skills — subsurface flow, drilling, well engineering — are increasingly used for carbon storage and geothermal energy.

An analogy

An oil reservoir is not an underground lake — it is more like a sponge made of rock, with oil squeezed into tiny pores. The petroleum engineer's job is to drill a straw into that sponge and coax out as much as possible.

The petroleum system

Oil and gas accumulate only when all elements are present in the right order:

Value chain and field lifecycle

Upstream (exploration & production), midstream (pipelines, storage, LNG), downstream (refining, petrochemicals, marketing). A field goes through exploration (seismic, exploration wells), appraisal (delineation, well tests), development (FDP, facilities, development wells), production (plateau then decline, with waterflood/EOR) and decommissioning.

Engineering roles

Drilling engineers design wells, casing and mud programmes; completion engineers install tubing, packers and perforations; reservoir engineers estimate reserves, forecast production and plan recovery; production engineers optimise wells and artificial lift; facilities engineers design separators, compressors and pipelines; petrophysicists interpret logs.

Conventional, unconventional and transition

Unconventional resources (shale oil/gas, tight gas, coal-bed methane, oil sands) need horizontal wells and hydraulic fracturing. Deepwater developments use subsea wells and FPSOs. The same skills now serve carbon capture & storage (CO₂ injection into saline aquifers and depleted fields), geothermal wells, underground hydrogen storage and methane-emission reduction.

Formulas

Worked example: API gravity

Given: Crude SG 0.92

Find: °API and class.

Answer: 22.3°API — medium/heavy boundary

Worked example: Production volume

Given: 5000 bopd

Find: m³/day.

Answer: 795 m³/d

Worked example: Gas equivalent

Given: 60 MMscf/d of gas, 6 Mscf/boe

Find: boe/d.

Answer: 10 000 boe/d

Crude oil units

# Oil units and a field's value chain
bbl_m3 = 0.158987
api = 32.0
sg = 141.5 / (api + 131.5)
print(f"API {api:.0f} -> specific gravity {sg:.3f}, density {sg*999:.0f} kg/m3")
print(f"1 barrel = {bbl_m3*1000:.1f} litres = {bbl_m3*sg*999:.0f} kg of this crude")
rate = 20000                    # barrels of oil per day
print(f"{rate} bopd = {rate*bbl_m3:.0f} m3/day = {rate*365/1e6:.2f} million bbl/yr")
# Gas: 1 MMscf/d ~ energy
print(f"1 bbl oil ~ 5.8 MMBtu; 5.8 MMBtu of gas = {5.8e6/1037/1000:.2f} Mscf (1037 Btu/scf)")
# API 32 -> specific gravity 0.865, density 865 kg/m3
# 1 barrel = 159.0 litres = 137 kg of this crude
# 20000 bopd = 3180 m3/day = 7.30 million bbl/yr
# 1 bbl oil ~ 5.8 MMBtu; 5.8 MMBtu of gas = 5.59 Mscf (1037 Btu/scf)

A 32°API crude is a 'light-medium' oil (like Brent at ~38° or Mumbai High at ~38–39°). Higher API = lighter, more valuable (yields more petrol and diesel). About 7.3 barrels make one tonne of this crude.

Common mistakes

Applications

Key takeaways

Going further