Numerical Modeling of Granular Beds in Rotary Kilns