The water stream is heated in a boiler, at some constant pressure. When entering the boiler, the water flow is in a saturated liquid state. After heating the outflow fluid has become saturated vapor. My question is if I want to calculate how much heating energy is needed, do I use $$Qb = Ug - Uf$$ or $$Qb = hg - hf$$
U is Internal Energy, h is enthalpy, and f and g refer to saturated liquid and saturated gas