Modeling gasification and percolation of ash-bearing porous carbon particles