In mathematical terms, this can be written as:
\[ \dot{m}h_1 + \dot{Q} = \dot{m}h_2 \]
where $\dot{m}$ is the mass flow rate, $h_1$ and $h_2$ are the enthalpies at the inlet and outlet respectively, and $\dot{Q}$ is the rate of heat transfer.
Show more…