SMS: Mathematical simulation of the origination and propagation of crown fires in averaged formulation