Density of diamond \(3515\,kgm^{-3}\), \(Z=6\),
\(v_{boom}=3.4354*\cfrac{3515}{6}=2012.57\,ms^{-1}\)
\(T_{boom}=2012.57^2*\cfrac{12*10^{-3}}{3*8.3144}=1948.64\,K\) or \(1675.49^oC\)
\(T_{p}=2012.57^2*\cfrac{12*10^{-3}}{2*8.3144}=2922.96\,K\) or \(2649.81^oC\)
Can we cook carbon in an inert environment first at \(T_{boom}=1675.49^oC\) and then at \(T_{p}=2649.81^oC\), and expect diamond. Carbon has a sublimation temperature of \(3917\,K\) or \(3642\,^oC\); both \(T_{boom}\) and \(T_{p}\) are below this temperature.
Pressure would be needed to compact the carbon mass as the crystals form.
Maybe...