Prediction of transient temperature distribution in gas—solid reactions