In formulating the energy balance equation for the open system, we must consider energy transfer involved with materials in transit.
The energy balance equation for the open system is thus summation of energy balance equation for the closed system and energy transfer accompanied with materials transferring across the system boundary. The energy involved with materials in transit is the enthalpy, by definition.