Skip to main content

HaulPave

Open-source pavement structure and operating-cost analysis toolkit for mine haul roads.

CI PyPI Python 3.10+ License: MIT

What HaulPave Does

  • Computes traffic loading (CESA and design coverages) from a mining fleet composition.
  • Determines pavement layer thicknesses using USACE CBR and TRH 14 empirical methods.
  • Estimates comparative operating costs (tire, fuel, maintenance) across road surface scenarios.
  • Generates structured design summaries with full versioning metadata.

What HaulPave Does NOT Do

HaulPave is not a complete haul road engineering tool. It does not cover geometric design, drainage, berm design, intersection layout, grade control, or traffic operations. All outputs require review by a qualified engineer. See SCOPE.md.

Installation

pip install haulpave

Quick Start

from haulpave.vehicle_registry import list_all, find_by_id
from haulpave.models.traffic import FleetUnit, TrafficInput
from haulpave.traffic.cesa import compute_cesa
from haulpave.pavement import cbr_thickness_from_coverages
from haulpave.economics import compare_scenarios, RoadScenario
from haulpave.reporting import build_design_summary

# 1. Pick a vehicle from the built-in registry
cat797f = find_by_id("cat-797f")  # Caterpillar 797F, 6104 kN GVW

# 2. Compute CESA from fleet
traffic = TrafficInput(
    fleet=[FleetUnit(vehicle=cat797f.vehicle, trips_per_day=30)],
    design_life_years=10,
    working_days_per_year=250,
)
result = compute_cesa(traffic)
print(f"Design CESA: {result.total_cesa:.2e}")

# 3. CBR pavement thickness
thickness_mm = cbr_thickness_from_coverages(
    subgrade_cbr=8.0,
    design_coverages=result.total_cesa,
)
print(f"Required thickness: {thickness_mm:.0f} mm")

# 4. Compare surface scenarios
scenarios = [
    RoadScenario(name="Asphalt", surface="asphalt",
                 haul_distance_km=10, trips_per_day=30),
    RoadScenario(name="Gravel",  surface="gravel",
                 haul_distance_km=10, trips_per_day=30),
]
comparison = compare_scenarios(scenarios)
for s in comparison.scenarios:
    print(f"{s.name}: fuel ${s.fuel_cost_usd_per_year:,.0f}/yr")

# 5. Build a versioned summary
summary = build_design_summary(
    inputs={"subgrade_cbr": 8.0},
    results={"thickness_mm": thickness_mm},
)
print(summary.package_version, summary.generated_at)

API Overview

Module Key symbols
haulpave.vehicle_registry list_all(), find_by_id(id), VehicleEntry
haulpave.traffic.cesa compute_cesa(TrafficInput) → CesaResult
haulpave.traffic.coverages compute_coverages(TrafficInput) → CoveragesResult
haulpave.pavement cbr_thickness_from_coverages(), trh14_thickness_from_coverages(), design_pavement()
haulpave.economics compute_economics(), compare_scenarios([RoadScenario]) → ComparisonResult
haulpave.economics.export export_comparison_to_excel(ComparisonResult, path)
haulpave.reporting build_design_summary(), compute_input_hash() → DesignSummary
haulpave.analysis analyze_sensitivity(traffic, cbr, variable) → SensitivityResult
haulpave.utils.units 18 imperial↔SI conversion helpers (psi↔kPa, mph↔km/h, etc.)

CLI Commands

haulpave --help

Command Description
cesa Compute CESA from a traffic JSON file
coverages Compute design coverages (USACE TM 5-822-12)
design Run USACE CBR pavement design
compare Compare USACE vs TRH 14 methods
economics Compute operating cost from a scenario JSON
scenario Compare costs across road surface types (asphalt/gravel/concrete)
export Export scenario comparison to Excel (.xlsx)

Built-in Vehicle Registry

Four OEM mining trucks with GVW and 25/75 front/rear axle-load split (CAT Performance Handbook Ed. 47):

ID Model GVW (kN)
cat-797f Caterpillar 797F 6 104
kom-960e Komatsu 960E 5 925
cat-789d Caterpillar 789D 3 304
cat-785d Caterpillar 785D 2 641

Status

Phase Content Status
Phase 0 — Benchmark Foundation Benchmarks 01–05, Pydantic models, USACE CBR curves ✅ Done (v0.1.0)
Phase 1 — MVP CESA engine, coverages engine, CBR pavement design ✅ Done (v0.1.0)
Phase 2 — TRH 14 + comparison TRH 14 engine, USACE vs TRH 14 comparison ✅ Done (v0.2.0)
Phase 3 — Economics + registry Vehicle registry, rolling-resistance cost model, design summary ✅ Done (v0.3.0)
Phase 4 — Docs + community MkDocs site, case studies, sensitivity analysis, unit conversion, CLI commands ✅ Done (v0.4.0)

Design Principles

  • Benchmark-first: every calculation method is tested against hand-computed examples before engine code is written.
  • Confidence labeling: high / medium / low on all outputs (v0.4.0+).
  • Honest documentation: explicit assumptions, limitations, and method references.
  • SI units internally: mm, km, kN, kPa, tonnes — no implicit unit mixing.
  • Open-source hygiene: no proprietary data redistribution; OEM data requires source attribution.

License

MIT — see LICENSE.

Metadata

Release files for haulpave 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for haulpave 0.5.0
File Size Uploaded Provenance Actions
haulpave-0.5.0.tar.gz 96.2 kB Without provenance Details for haulpave-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for haulpave 0.5.0
File Interpreter ABI Platform Actions
haulpave-0.5.0-py3-none-any.whl Python 3 none any Details for haulpave-0.5.0-py3-none-any.whl

Total release size: 144.9 kB

Release files / haulpave-0.5.0.tar.gz

Download URL haulpave-0.5.0.tar.gz
Size 96.2 kB
Tags Source
SHA-256 checksum
How to use checksums
01ab0d9211153d9e1fc2d6611b21438eca2f6857a4afebbf1f043ee417cb4eb8
BLAKE2b-256 checksum
How to use checksums
deb912774b88b21662be5cab29555894aa886b901494ae841f80466c6dd2c066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / haulpave-0.5.0-py3-none-any.whl

Download URL haulpave-0.5.0-py3-none-any.whl
Size 48.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d79e06c79a4b7e34e4c399cde9bdf658d41c159199303f1a582107f5a61bfd29
BLAKE2b-256 checksum
How to use checksums
29c5b8af7526254e21e9f2eedc396df44b4a904d93c2e15435d08c814a3ecb62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for haulpave 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page