Iraides Belandria said:
Under this circunstance reversibility requires that the temperature difference between the system and surroundings must be infinitesimal.
That is certainly the case during reversible processes in which heat flows between the system and the surroundings. But it is not the case, obviously, in processes where heat does not flow out of or into the system (adiabatic).
So if you combine the following steps:
1. connect a gas at pressure P and temperature T (P is higher than ambient pressure) to a hot reservoir at temp. T
2. let the gas expand to a volume at which further (adiabatic) expansion (unconnected to the hot reservoir) will bring it to the temperature of the cold reservoir
2. save the work done during the isothermal expansion (eg. a weight is lifted)
3. disconnect the hot reservoir
4. let the gas expand adiabatically until it reaches the temperature of the cold reservoir.
5. save the work done during the adiabatic expansion (eg. a weight is lifted further)
6. connect the gas to the cold reservoir
7. apply the saved energy (raised weight) to the expanded gas and compress it isothermally (heat flows out of the gas to the cold reservoir) to the point at which further (adiabatic) compression will bring it up to its original temperature and pressure
8. disconnect the cold reservoir.
9. compress gas further, adiabatically (using stored energy) so the gas will return to its original pressure at the temperature of the hot reservoir.
Now the final result is, of course, that net work has been done (the weight is higher than it was when the process started. And heat has flowed from the hot to the cold reservoir.
But it is reversible:
Use the remaining weight height (stored work) to run a Carnot refrigerator cycle on the hot compressed gas: Adiabatic expansion to temperature of cold reservoir, connect cold reservoir, Isothermal expansion at cold temp, followed by adiabatic compression to temperature of hot reservoir, followed by Isothermal compression connected to hot reservoir.
After running the Carnot cycle backward, all the heat that flowed to the cold reservoir in the heat engine cycle has flowed back from the cold to the hot reservoir using the work generated in the engine cycle.
Finally, you mention that the expansion work is equal to the compression work in a Carnot Cycle. This is not correct. They are different.
Quite right. I should have said: the work done in the forward cycle (heat flows from hot to cold) is equal to the work required to reverse the cycle (heat flows from cold to hot).
I still believe that you cannot assume that any heat exchange with the surroundings can be reversible. To attain such condition it is neccesary infinitesimal temperature differences between system and surroundings.
I agree with you that during the heat exchange process the two bodies exchanging heat must do so at the same temperature (infinitesimal temp differences). But if the system temperature changes (during adiabatic expansion/compression) heat can be made to flow from the hot to cold reservoir reversibly (as I have shown above).
AM