Pressure generation during the drying of a porous half-space