Simulation of counter-flow drying