The nature of the damage is primarily a function of the total amount of fuel burned in the event ( total energy available ) , the maximum flame velocity that is achieved , and the manner in which the expansion of the combustion gases is contained . The potential damage is primarily a function of the total amount of fuel burned in the event ( total energy available ) , the maximum flame velocity that is achieved , and the manner in which the expansion of the combustion gases is contained .