The definition of enthalpy, H, permits us to use this thermodynamic potential to account for both internal energy and pV work in fluids for open systems: .
dU_\text{cv} = \delta Q + dH_\text{in} - dH_\text{out} - \delta W_\text{shaft}.