A model of smoldering combustion applied to flexible polyurethane foams