Thermodynamic potentials: Maxwell relations, stability criteria. Barometric formula: applications to clouds, solar chimney, etc. Phase mixtures: chemical potential, osmosis, phase equilibrium, Gibbs phase rule, phase diagrams, fugacity and activity. Reacting mixtures: law of mass action and applications, enthalpy and entropy constants, heat of reaction, combustion, flames, adiabatic flame temperature, reaction rates. Thermodynamics of fuel cells: efficiency, causes of losses, comparison with heat engines.