Numerical simulation of reaction under high pressure conditions for thermal spallation drilling