Show HN: I simulated closing the Strait of Hormuz on real oil trade data
Posted by eliotho 1 day ago
OP here: I created this visualization tool as the byproduct of a supply chain class I taught at Columbia. The pedagogical exercise grew into a full blown visualization and paper about global oil trade.
The model: The mechanics are the same as the financial network Eisenberg-Noe: Instead of banks, every country consumes oil interconnected via bilateral trading. Shocks propagate throughout the network, depleting oil reserves when bottleneck nodes (such as the Strait of Hormuz) are blocked.
Insights: The interesting part is the mechanics of how the crisis unfolds: for example, France receives 0 oil from Hormuz directly, yet their reserves are depleted faster because other countries reactively increase their safety oil stock, increasing oil price, making stockouts more expensive for everyone.
The model also gives price dynamics which are interesting on their own: the price increase is not immediate, it follows sequentially as countries reserves deplete.
Some caveats: 1. For producer nodes, depletion means their export slack is reduced/exhausted. 2. No sanctioned trade (UN Comtrade data)
Technical Details: The visualization is 600 lines of flask plus js frontend (LLM assisted visualization with ground-truth matching the original numerical exercise of the paper)
Paper with proofs/theory: https://arxiv.org/abs/2607.17491
Comments
Comment by anigbrowl 21 minutes ago
As a result, almost all the draw from the SPR is of sour crude (currently ~5 million barrels/week). However, you can't just use up all the reserve because as levels get lower brine must be pumped into the storage chambers to retain pumping pressure, and the more brine that is pumped, the more the output quality declines.
The weekly reports indicate a total in the SPR of about 300mbb, of which ~100 are sweet and 200 sour. But for the reasons above, output becomes unusable one the sour levels fall to ~140-150mbb, at which point there is almost certainly a severe diesel supply shock. At current drawdown rates, that would be sometime around October/November, right in the middle of harvest season when demand for diesel is highest.
There's more complexity to this than I want to type out in a HN comment, but not that much more. Draw your own conclusions.
Comment by HarHarVeryFunny 1 day ago
What developments in pricing/other would indicate that your model is wrong or incomplete?
Nice website regardless, but I'm a bit skeptical that the dynamics of the global oil/energy market can be accurately predicted.
Comment by maxerickson 10 minutes ago
Comment by eliotho 1 day ago
Well, the model is less of a prediction and more of a stress testing tool. But under the hypothetical closure scenarios it shows the timing the oil reserves of distant countries exhaust, as well as the systemic effects on pricing (the France paradox).
>What developments in pricing/other would indicate that your model is wrong or incomplete? The model has a stylized way of incorporating pricing as a function of the total supply. In practice, when countries ration their oil that's beyond the scope of the model. That being said, the implied pricing trajectory is estimated and could be tested (the staircase graph showing prices constant while countries absorb the shock with their reserves and rebalanced whenever there is a reserve depletion).
>Nice website regardless, but I'm a bit skeptical that the dynamics of the global oil/energy market can be accurately predicted. Thank you! Indeed, but I think having at least a stylized testing tool might be useful for policymakers :$ (assuming decisions are ever data-driven lol)
Comment by bragr 1 hour ago
Does your model assume that demand is constant regardless of price? We're already seeing a reduction in demand over the last several months.
https://finance.yahoo.com/energy/articles/global-oil-demand-...
Comment by eliotho 1 hour ago
Comment by toomuchtodo 1 hour ago
Some global demand destruction is occurring, but that of China is them switching to large internal strategic reserves.
https://youtu.be/BkA0bkb6ZO0 (whole video is worth the watch)
Comment by eliotho 1 hour ago
Comment by toomuchtodo 1 hour ago
Comment by eliotho 43 minutes ago
Comment by firasd 3 hours ago
Comment by eliotho 2 hours ago
Comment by Normal_gaussian 1 hour ago
This feels wrong; but I'm inclined to think I'm missing something.
Comment by eliotho 1 hour ago
Comment by entropie 1 hour ago
Maybe you can make a playback speed option for the simulation/play button? I fail to follow up.
Comment by eliotho 1 hour ago
Comment by kingjimmy 2 hours ago
Comment by repeekad 2 hours ago
Comment by eliotho 2 hours ago
Comment by eliotho 2 hours ago
Comment by tamimio 2 hours ago
Comment by eliotho 2 hours ago
But with the tool, you can put your guess number and see that the game of chicken also has an expiration date for them
Comment by upcoming-sesame 2 hours ago
Comment by chairmansteve 1 hour ago
Comment by eliotho 2 hours ago
Comment by alephnerd 2 hours ago
Iran's political leadership is amenable to negotiating but their incumbent military leadership which now calls the shots aren't [0][1].
The current incumbents in the IRGC and Artesh are now vets who were deployed on the frontlines in Syria, Lebanon, Yemen, and Iraq and are deeply anti-Western as a result.
> or they (Iran) will lose all the parts and intelligence tech they (China) are providing to them...
This is why Iran has been leveraging Russia as well [2][3].
Russia is trying to link the Ukraine War with the Iran War ("stop giving Ukraine targeting capabilities and we'll stop giving it to Iran").
Iran's military leadership doesn't trust China because they undermined Iran's position on Hormuz by backing the UAE [4], and because hardliners still harbor negative views of China and Eastern culture as undermining the precepts of the Islamic Revolution [5][6][7] and still calling them "uncultured orientals" (شرق زدۀ بی فرهنگ)
[0] - https://quwa.org/pakistan-defence-news/pakistan-iran-mediati...
[1] - https://quwa.org/podcasts/pulse-check/the-islamabad-talks-ar...
[2] - https://www.reuters.com/world/middle-east/iran-strikes-cia-f...
[3] - https://mecouncil.org/wp-content/uploads/2025/06/IB-10_25-Ir...
[4] - https://www.straitstimes.com/asia/china-maintains-stance-on-...
[5] - http://www.imam-khomeini.ir/fa/c78_117016/%DA%A9%D8%AA%D8%A7...
[6] - https://ensani.ir/fa/article/93161/%D8%B4%D8%B1%D9%82-%D9%88...
Comment by sebzuddas 2 hours ago
Comment by eliotho 2 hours ago
Comment by runlaszlorun 2 hours ago
Comment by eliotho 1 hour ago
Comment by refulgentis 3 hours ago
EDIT: I’m not saying it doesn’t matter the strait is closed - it does! - it’s just, what are we to do with a model that generically tells us oil barrel prices is at $150 3 weeks in, when we are months in?
Comment by eliotho 3 hours ago