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:
- Source rock — organic-rich shale 'cooked' at 60–150 °C (the oil window) over millions of years
- Migration — hydrocarbons, lighter than water, move upward through permeable pathways
- Reservoir rock — porous, permeable sandstone or carbonate
- Seal (cap rock) — impermeable shale, salt or anhydrite
- Trap — anticline, fault, stratigraphic pinch-out or salt dome that stops migration
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
- API gravity:
°API = 141.5/SG − 131.5 ⇔ SG = 141.5/(°API + 131.5) - Barrel:
1 bbl = 42 US gal = 0.158987 m³ - Oil equivalent:
1 boe ≈ 5.8 MMBtu ≈ 5.6–6 Mscf gas - Classification:
light > 31.1°API; medium 22.3–31.1; heavy 10–22.3; extra-heavy < 10
Worked example: API gravity
Given: Crude SG 0.92
Find: °API and class.
- 141.5/0.92 − 131.5
Answer: 22.3°API — medium/heavy boundary
Worked example: Production volume
Given: 5000 bopd
Find: m³/day.
- 5000 × 0.159
Answer: 795 m³/d
Worked example: Gas equivalent
Given: 60 MMscf/d of gas, 6 Mscf/boe
Find: boe/d.
- 60 000/6
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
- Wrong: Thinking oil sits in underground lakes. — Right: It fills microscopic pores in rock.
- Wrong: Confusing resources with reserves. — Right: Reserves are commercially recoverable.
- Wrong: Mixing barrel and tonne. — Right: Conversion depends on density (~7.3 bbl/t for 32°API).
Applications
- National oil companies: ONGC, Oil India, Saudi Aramco.
- Service companies: Drilling, logging, completions (SLB, Halliburton, Baker Hughes).
- Carbon storage: CO₂ injection projects (Northern Lights, Sleipner).
- Geothermal: Drilling and reservoir skills applied to heat.
Key takeaways
- Source, migration, reservoir, seal, trap.
- Upstream → midstream → downstream.
- API = 141.5/SG − 131.5; 1 bbl = 159 L.
- Petroleum skills serve CCS and geothermal.
Going further
- Basin modelling: Simulating burial, maturation and migration.
- Seismic interpretation: 3D/4D seismic for traps and monitoring.
- Energy transition skills: CCS, geothermal, hydrogen storage.