Heat and mass transfer in hygroscopic porous media: algebraic relationships and MATLABĀ® script