Thermodynamics and Mass Transport in