Scaling heat and mass flow through porous media during pyrolysis