First Law of Thermodynamics for Pumps and Throttling Valve