# Which temperature does $T$ in Clausius inequality ($\oint \frac{\delta Q}T\le 0$) refer to?

I got a little confused about the temperature in Clausius inequality. As you can see in this answer of Luboš Motl, it seems that temperature is the temperature of the system.

But in some answers of Chester Miller e.g. this and this, he has apparently mentioned that,

$T$ is the temperature at the boundary interface (with the surroundings) at which heat transfer is occurring.

I think $T$ in $\oint \frac{\delta Q}T\le 0$ is the temperature of the system, because $\mathrm dS=\frac{\delta Q_{\textrm{rev}}}T$, and $S$ is a property of the system. So, it should be related to a property of whole of system not a property of system boundary.

On the other hand, Clausius inequality is valid for all cases either reversible or irreversible. And for some irreversible (e.g. non-quasi-static) processes, we cannot define a temperature for system.

May someone please explain clearly what is the temperature in Clausius inequality?

The temperature appearing the the Clausius inequality is definitely the temperature of the "boundary interface (with the surroundings)", or simply the temperature of the sources. One of the best places I have seen this discussion is in Fermi's book, chapter 5, section 11. He is explicit about it. To see this you have to recapitulate the steps in obtaining the Clausius inequality. You start with a cycle and suppose each infinitesimal part of this cycle is exchanging heat $\Delta Q_i$ with a (external) source at a temperature $T_i$. Then you sum all contributions $\Delta Q_i/T_i$ and in the limiting case it gives the Clausius inequality.

This is in fact a point underestimated in many books. However it is crucial. For instance a way to find out whether a process is reversible or not is just to calculate the Clausius integral (using the temperatures of the source) and compare it with the entropy change (using the temperature of the system). Then one finds $$\Delta S=\int\frac{dQ}{T_{sys}}\geq\int\frac{dQ}{T_{sour}}.$$ The equal sign meaning it is reversible and the greater sign meaning it is irreversible.

It is worth to mention that the temperature in the expression for the entropy is then the temperature of the system. The process chosen to calculate $\Delta S$ is reversible which means the temperature of the system always equals the temperature of the source.

• Thanks! it makes sense. But, if it is the surrounding temperature, then it can always get out the integral. Because the surroundings temperature is constant. – lucas Jul 22 '16 at 16:04
• In the general case, the surrounding temperatures are not constant. Of course in the case they are constant they can be get out of the integral. – Diracology Jul 22 '16 at 16:07
• Unfortunately Clausius himself was quite explicit that the temperature in the "Clausius inequality" was the temperature of the system. See The Mechanical Theory of Heat pp 141-142, esp. the description of T on page 141 and the extended footnote at the bottom. books.google.com/books?id=8LIEAAAAYAAJ&pg=PA141 – ratsalad Feb 21 at 19:49

This is how I think of it;

We are talking about a reversible process here, when the relation is an equailty: $$S_2-S_1=\int_1^2 \left( \frac{\delta Q}{T} \right)_\text{rev.}$$ it is valid only when the heat transfer (and the process itself, actually) is reversible. For this heat transfer to be reversible, it must be a quasi-equilibrium process. That means that if the reservoir temperature is $$T_L$$, the system temperature (or the component if it is a flow process) should be $$T_L \pm \delta T$$ at every instant, where $$\delta T$$ is an infinitesimal value. Hence, I consider the temperature of the system, surroundings or the boundary approximately the same; $$T_\text{sys.} \approx T_\text{boundary} \approx T_\text{surr.} \approx T$$

The whole confusion originates from picturing something like $$T_\text{sys.}=400K$$ and $$T_\text{surr.}=300K$$ (including me). However, that is not a reversible process by definition; there is a finite temperature difference. And indeed, that is when the formula turns into an inequality, because a net positive entropy generation occurs due to the irreversibility. Depending on the heat transfer direction and the temperature value, you get the following if you do the math: $$S_2-S_1>\int_1^2 \left( \frac{\delta Q}{T} \right)_\text{irrev.}$$ or $$S_2-S_1=\int_1^2 \left( \frac{\delta Q}{T} \right)_\text{irrev.}+\Delta S_\text{gen.}$$

where $$\Delta S_\text{gen.}$$ is strictly greater than zero. The formula does not explicitly tell you "just put that temperature into the integral as this function of $$\delta Q$$ and you will get the entropy difference" in case of an irreversible process. You can not integrate $$\delta Q=TdS$$ and find the heat transfer $$Q$$ when the process is irreversible, this is why reversible processes are drawn with a solid line and irreversible processes are drawn with dashed lines.

The formula is often given as $$S_2-S_1\ge\int_1^2 \frac{\delta Q}{T}$$ which I think is very vague without putting some thought into it.
{"ft_lang_label":"__label__en","ft_lang_prob":0.84514254,"math_prob":0.9932348,"size":1989,"snap":"2020-24-2020-29","text_gpt3_token_len":525,"char_repetition_ratio":0.13702771,"word_repetition_ratio":0.006756757,"special_character_ratio":0.26244345,"punctuation_ratio":0.09549072,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.999011,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-07-03T20:09:35Z\",\"WARC-Record-ID\":\"<urn:uuid:2a878cbe-5604-4f61-9f93-4c23b9fc23f4>\",\"Content-Length\":\"160918\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3113447c-9a11-439f-a0f3-011406182543>\",\"WARC-Concurrent-To\":\"<urn:uuid:4b349eea-1381-4a91-bc8a-9bed198ea834>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://physics.stackexchange.com/questions/269403/which-temperature-does-t-in-clausius-inequality-oint-frac-delta-qt-le-0\",\"WARC-Payload-Digest\":\"sha1:VO4MGZRCNG4BSFROIINIHKPGURF57F4F\",\"WARC-Block-Digest\":\"sha1:AT7NPIFUJQWA2QMRELHZ45BMTNKGDYWO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-29/CC-MAIN-2020-29_segments_1593655882934.6_warc_CC-MAIN-20200703184459-20200703214459-00446.warc.gz\"}"}