Heat exchangers
In a heat exchanger two streams never mix, so the heat one stream gives up is the heat the other takes in, $\dot m_h\,(h_{h,in} - h_{h,out}) = \dot m_c\,(h_{c,out} - h_{c,in})$, which sets a flow rate or an outlet temperature.
From Thermodynamics.