Mathematical analysis of deep bed drying