% Functions related to water vapor and its thermodynamic effects