A typical rotating drum desiccant dryer consists of air channels coated with desiccant material. The drum rotates through different air streams to dry a process stream and then be regenerated.

Schematic of a desiccant dryer channel with gas flow and desiccant coating.
The flow of a (humid) gas and the simultaneous adsorption of water through a channel can be described by transport equations for mass and heat. This process can be modeled using a homogeneous approach, where mass and heat transfer resistances between the gas and adsorbent are neglected. In this case, there is one PDE for humidity in both phases and one PDE for temperature:
In these equations, is the weight fraction of water in the air stream, and is the weight of adsorbed water per kilogram of desiccant (a fraction is used because there is also some inert solid material). The first equation expresses a mass balance where the accumulation of water in both the air and desiccant is balanced by the transport of water by the air stream. The superficial gas velocity is , and the length of a channel is .
In the enthalpy balance, the accumulation term has two contributions: one due to heat capacity and another due to the (lower) enthalpy of adsorbed water. Here, is the enthalpy of sorption, which causes heat to be generated when water is adsorbed. Enthalpy is transported along the channel by the gas flow.
The material properties are:
| Material | Densities () | Heat Capacities () | Volume Fractions |
|---|---|---|---|
| Air | |||
| Adsorbent |
Locally, the water in the air stream is assumed to be in equilibrium with the adsorbed amount of gas. The amount of adsorbed water is related to the relative humidity and is described by the following adsorption isotherm:
where:
Here, is the saturation pressure of water at temperature , and is the total pressure in the channel. In this case, . The heat of sorption per kilogram of desiccant is:
Questions:
Implement the model for the water weight fraction in air, , and temperature, , as functions of position and time . Suggested approach:
Use a coupled formulation where you solve and simultaneously as components 0 and 1 of a NumPy array.
Evaluate the convection term explicitly using first-order upwind (which can later be extended to, e.g., min-mod).
Treat the non-linear accumulation term using Newton-Raphson (using
newtonfrom thepymrmpackage). Compute the Jacobian of the accumulation term numerically (usingnumjac).
Model the adsorption of a humid stream with and .
Advanced (optional): Simulate up to a cyclic stationary state of drying and regeneration, as if a drum is rotating through both streams. For the regeneration stage, the stream enters from the other side. Both stages take 90 seconds, with the inlet conditions of the humid stream: and , and the regeneration air stream: and .