I'm currently reading Herbert B. Callen's Thermodynamics and an Introduction to Thermostatics, II ed, and I don't quite understand the last few propositions made on page 105 (a scan attached below).
Consider a subsystem connected to a Reversible Heat Source (RHS) and a Reversible Work Source (RWS). The subsystem's internal energy changes by $\mathrm{d}U$ in some process, and $\mathrm{d}U<0$. The released energy goes, in the form of heat $\text{đ}Q_{\text{RHS}}>0$, to the RHS, and, in the form of work $\text{đ}W_{\text{RWS}}>0$, to the RWS. So by the conservation of energy $$ -\mathrm{d}U = \text{đ}W_{\text{RWS}} + \text{đ}Q_{\text{RHS}}. $$
Denote by $\mathrm{d}S$ the change of entropy of the subsystem, and by $T_{\text{RHS}}$ the temperature of the RHS. Maximum work theorem suggests that $\text{đ}W_{\text{RWS}}$ is maximal when the process is reversible and the total entropy of the system doesn't change: $$ \frac{\text{đ}Q_{\text{RHS}}}{T_{\text{RHS}}} = -\mathrm{d}S. $$
Then Callen attempts to "calculate the maximum delivered work" and gives the following equation 4.9 $$ \max \text{đ}W_{\text{RWS}} = \frac{T_{\text{RHS}}}{T} \text{đ}Q - \mathrm{d}U = \left(1 - \frac{T_{\text{RHS}}}{T}\right) (- \text{đ}Q) - \mathrm{d}W $$ Here he used $\mathrm{d}U=\text{đ}Q+\text{đ}W$ without clarifying the notation explicitly.
Question: why is $-\text{đ}Q\neq \text{đ}Q_{\text{RHS}}$ and $-\text{đ}W\neq\text{đ}W_{\text{RWS}}$ here? I thought that when the subsystem is connected to the RWS, all the work done by the subsystem is done upon the RWS. Same applies to RHS: where does the subsystem's heat go, if not exactly to RHS? RWS can't exchange heat and RHS can do no work, so the setup doesn't seem to permit any conversion of work into heat and vice versa.
What I noticed so far in my attempts to understand it, is:
- $-(\text{đ}Q + \text{đ}W) = \text{đ}Q_{\text{RHS}} + \text{đ}W_{\text{RWS}}$ (this follows from equating different expressions for $\mathrm{d}U$)
- $\text{đ}Q$ cannot be equal to $\text{đ}Q_{\text{RHS}}=\frac{T_{\text{RHS}}}{T} \text{đ}Q$ because we equated the entropy changes and $T_{\text{RHS}}$ doesn't equal the subsystem's temperature $T$. That doesn't answer my question, though: how exactly did the heat get converted into work (or vice versa) here, why didn't it all go to the RHS?
- If we substitute $T_{\text{RHS}}=T$ into eq4.9 we get $-\text{đ}W=\max\text{đ}W_{\text{RWS}}$, as I would expect.