Tunnel Load Simulator: electricity demand of road tunnels, Monte Carlo web app
In brief
- The Tunnel Load Simulator generates the electricity demand of a road tunnel from its geometry, traffic, lighting and ventilation, with random pollution episodes and accidents.
- One year at 10-minute resolution runs in about 150 ms; Monte Carlo runs (the same simulation repeated with different random draws) give medians and P10-P90 envelopes (the range between the 10th and 90th percentiles: 80 % of the simulated values fall inside) of energy (kWh), peak power (kW) and load factor (mean power divided by peak power, between 0 and 1, no unit).
- H. El-Houari and C. Voyant, SoftwareX 35, 102946 (2026), doi:10.1016/j.softx.2026.102946; a first-order generator, to calibrate on measurements before engineering use.
Cyril Voyant · Updated 2026-10-18 · Version française
Open the simulator
Free hosting: the app may take about a minute to wake up on first visit.
How much electricity does a road tunnel use, and how uncertain is it? The Tunnel Load Simulator generates realistic time series of power and energy demand from the tunnel's geometry, operating context, traffic-driven ventilation, lighting regime and random disturbances such as pollution episodes and accidents. It runs N independent Monte Carlo realizations and returns median, P10 and P90 values of the key indicators, with an uncertainty envelope on the time series.
Fast: the engine is fully vectorized. One year at 10-minute resolution simulates in about 150 ms; 20 Monte Carlo runs in about 0.6 s.
The theory
Simulation from what is known. No measurements of the tunnel exist, so the load is built from what is known about its geometry, traffic, lighting and ventilation, with explicit random disturbances. No data are needed, and none are faked: the model is simple, its parameters are visible, and its limits are stated.
The load, term by term
At each 10-minute step \(t\), the power is the sum of four terms with a multiplicative noise:
$$P(t)=\max\!\Big(0,\ \big[P_0+P_{\mathrm{light}}(t)+P_{\mathrm{vent}}(t)+P_{\mathrm{aux}}(t)\big]\big(1+\varepsilon_t\big)\Big),$$ $$\varepsilon_t\sim\mathcal N(0,\sigma^2).$$- Traffic \(q(t)\)
- night floor \(0.16+0.06\cos\frac{2\pi(\tau-3)}{24}\) plus Gaussian morning and evening peaks, normalised by a one-day reference, then multiplied by context (urban 1.20, peri-urban 1.00, rural 0.78), season (winter 1.12 … summer 0.92), day of week (weekdays 1.00, Saturday 0.86, Sunday 0.78), traffic level and a daily random factor; clipped to \([0,2]\)
- Lighting
- \(P_{\mathrm{light}}=p_\ell\,L_{\mathrm{km}}\,n_{\mathrm{lanes}}\,\min\!\big(1,\ f_{\min}+(1-f_{\min})(1-D(t))+c_q\,q(t)\big)\), with \(D(t)\) a smooth daylight indicator from seasonal sunrise and sunset, and \((p_\ell,c_q,f_{\min})\) per technology (LED adaptive: 16 kW/km/lane, 0.18, 0.20)
- Ventilation
- \(P_{\mathrm{vent}}=p_v\,L_{\mathrm{km}}\,n_{\mathrm{tubes}}\,\big(0.15+s\,q(t)\big)\,a\,g\,\big(1+s_p\,\mathbb 1_{\mathrm{pollution}}(t)+s_a\,\mathbb 1_{\mathrm{accident}}(t)\big)\), with \(p_v\) per system (longitudinal: 120 kW/km/tube), altitude factor \(a=1+\max(z-500,0)/6000\) and slope factor \(g=1+|i|/20\)
- Auxiliaries
- \(P_{\mathrm{aux}}=p_a\,L_{\mathrm{km}}\,n_{\mathrm{tubes}}\,(1+\min(z_{\max},800)/6000)\,(1+\eta_t)\), \(\eta_t\sim\mathcal N(0,0.025^2)\)
- Events
- pollution episodes and accidents drawn each day with given probabilities, start times and durations

Monte Carlo and indicators
\(R\) independent realizations (seeds \(42,43,\dots\)) give distributions of every indicator; the envelope reports the median and the P10–P90 band. P10 is the value below which 10% of the realizations fall, P90 the value below which 90% fall, and the median (P50) splits them into two halves: the P10–P90 band therefore holds the central 80%. Annual energy \(E=\sum_t P(t)\,\Delta t\); load factor \(\bar P/P_{\max}\); specific consumption \(E/\text{length}\).
Assumptions and validity
A first-order synthetic generator: the coefficients are engineering orders of magnitude, not measurements. Suitable for prototyping, teaching and pre-design sensitivity studies; calibrate against measured data before any engineering use.
Run it
The public example: a 1.5 km peri-urban tunnel, two tubes of two lanes, adaptive LED lighting, longitudinal ventilation, one year at 10 minutes, 20 realizations. The package lives in src/, hence PYTHONPATH=src. Executed on 22 October 2026 (Python 3.12).
git clone https://github.com/cyrilvoyant/tunnel-load-simulator.git
cd tunnel-load-simulator
pip install -r requirements.txt
PYTHONPATH=src python examples/monte_carlo_example.py # PowerShell: $env:PYTHONPATH="src"; python examples/monte_carlo_example.pyOutput:
=== Monte Carlo results (20 runs) ===
Annual energy (MWh):
Median : 3233.4
P10 : 3229.5
P90 : 3237.1
Peak power (kW):
Median : 873.4
P10 : 792.2
P90 : 922.2Other medians of the same run: mean power 369 kW, load factor 0.42, specific consumption 2,156 kWh per meter and year.

What you get
- Annual energy (MWh), peak and mean power (kW), load factor, specific consumption (kWh/m/year) and event counts, for each run and as distributions.
- Interactive charts and CSV export of the time series.
- A Python package usable without the interface (
run_monte_carlo(...)), with examples and tests.
Typical uses
- Pre-design sensitivity studies: lighting technology, ventilation type, traffic level.
- Synthetic load profiles for research on energy management and renewable integration in tunnels.
- Teaching Monte Carlo uncertainty on an engineering case.
Status: first-order synthetic generator, suited to prototyping, demonstrations and pre-design sensitivity studies. Calibrate against measured data before any engineering or publication use.
SmartTunnel project and citation
Developed in the SmartTunnel research collaboration between Haytham El-Houari (Université Sidi Mohamed Ben Abdellah, Fès, Morocco) and Cyril Voyant (Mines Paris – PSL, O.I.E.). Cite the article: H. El-Houari, C. Voyant, Tunnel Load Simulator: a Monte Carlo framework for synthetic electrical demand modeling of road tunnels, SoftwareX 35, 102946, 2026, doi:10.1016/j.softx.2026.102946 · BibTeX; and the software: Tunnel Load Simulator, doi:10.5281/zenodo.20080042 (all versions).
Source code (MIT) · Also usable in plain language through WebSemantic.
Need this method on your own data? Collaborate: a joint answer to a call for projects, a research contract with Mines Paris – PSL, or academic work with a clear valorization objective.
Links
| Publications |
|
|---|---|
| Code | github.com/cyrilvoyant/tunnel-load-simulator |
| Archive (all versions) | doi:10.5281/zenodo.20080042 (Zenodo) |
| Software Heritage | permanent archive of the repository |
| Authors | Haytham El-Houari (Université Sidi Mohamed Ben Abdellah, Fès) and Cyril Voyant (Mines Paris – PSL, O.I.E.), SmartTunnel project |
| Web app | Tunnel Load Simulator (free hosting: may take a minute to wake up) |
| The approach | Understand before you compute |
| Author | Cyril Voyant (Mines Paris – PSL, O.I.E.) · ORCID · www.cyrilvoyant.com |