The fuel is what burns turning into combustion byproducts. Larger volume -> high pressure -> physics magic I don't feel like explaining -> shock wave. Burning pure AN is a waste, you're basically burning super lean. Add fuel and you get closer to stoic. More efficient reaction -> more output volume per input volume -> more bang.
It's like the difference between making a bunch of gas fuel (like propane or something) go up as a woosh vs a bang but with solid inputs instead of gasses.
Nothing to do with a transition to high explosive, although it will destroy an engine just the same.
Does that make any sense?
Or is diesel injected in to the cylinder in a way that more or less produces a controlled combustion?
Diesel engines avoid pre-ignition knocking by compressing only air. There is no compression of air/fuel mix. The fuel is injected into the hot, compressed air at the top of the compression stroke (at something like 3000+ PSI, IIRC).
The fuel does not have to be particularly volatile because of the high compression and the injector's atomization.
In theory, diesel engines can run on "anything". Diesel engines have been run on crude oil taken directly from the ground (of good purity), and on vegetable oil.
It mostly because the high pressure pump use the Diesel for lubrication so if you use something else the pump destroy itself sending tiny metal shards down the pipe and into the injectors.
That's why accidentally running a diesel car on gas turn expensive fast. The contrary is much cheaper as just have to flush the fuel lines and you're good to go.
30,000 to 40,000 PSI
https://www.buyautoparts.com/blog/4-common-diesel-fuel-injec...
"octane" is the ability of a fuel to "resist combustion" from compression. Diesel fuel is not rated in "octane" but the opposite: the ability for it to combust from compression. For some reason in the "old days", it was commonly thought by some that by adding some diesel to gasoline that it would help "lubricate" the motor (as diesel does have an oily feel). However mixing diesel with gasoline only lowers its octane rating.