What is the difference between entropy generation and entropy transfer? When I want to calculate the entropy change of a system with two bodies with finite difference in temperature in an isolated system in thermal contact, do I calculate the whole difference in entropy as change in entropy generation or as change of entropy transfer or both?
 A: This is for @Alecksy Druggist
Suppose that the objects are perfect cubes of side S.  We will focus on the left cube which is the hot one, and which is insulated on its left side, x = 0, and is in contact with the cold cube on its right side x = S at constant temperature $T_S$.  The transient temperature variation within the cube is described by the transient heat conduction equation:
$$\rho C\frac{\partial T}{\partial t}=k\frac{\partial^2 T}{\partial x^2}$$
If we divide this equation by the absolute temperature T, we obtain:  $$\rho C\frac{\partial \ln{T}}{\partial t}=\frac{k}{T}\frac{\partial^2 T}{\partial x^2}=\frac{\partial}{\partial x}\left(\frac{k}{T}\frac{\partial T}{\partial x}\right)+\frac{k}{T^2}\left(\frac{\partial T}{\partial x}\right)^2$$The first term on the right hand side represents the rate of entropy transport per unit volume and the 2nd term, which is positive definite, represents the rate of entropy generation per unit volume at location x. If we integrate this equation over the volume of the cube, we obtain:
$$\frac{d[\int_0^S{\rho CS^2 \ln(T/T_{init})dx}]}{ dt}=\left(S^2\frac{k}{T}\frac{\partial T}{\partial x}\right)_{x=S}+\int_0^S{\frac{kS^2}{T^2}\left(\frac{\partial T}{\partial x}\right)^2dx}$$
The left hand side of the equation represents the rate of change of entropy of the cube; note that, by the end of the process, term in brackets is mathematically equal to the entropy change calculated from step 4 of my procedure.  The first term on the right hand side represents the rate of entropy transfer from the cold cube to the hot cube at their boundary, and the 2nd term on the right hand side represents the overall rate of entropy generation within the cube.  So, at final equilibrium, the change in entropy as calculated from step 4 in my procedure is equal to the total entropy transferred from the cold cube to the hot cube at their boundary (a negative number in this specific instance) plus the total amount of entropy generated within the cube during the equilibration.
A: You are determining the combination of both.  If the two bodies are identical, then, at the contact surface between them, the temperature will be the arithmetic average of the original temperatures throughout the equilibration.  In this case, it is easy to resolve the separate contributions of generation and transfer, because the entropy transfer is just equal to the heat transferred divided by the (constant) contact surface temperature.
This is for @Chemomechanics
What our discussion has shown is that, although the changes in entropy of our two blocks between the initial and final thermodynamics states is totally process path-independent, the spatial distribution of the entropy generation and the amounts of entropy transferred to and from our two blocks is highly process-dependent.
Another example to consider is a situation where we have an insulating medium of very low thermal conductivity present between our two blocks.  In this case, the heat transfer rate through the medium will be extremely slow, and, as a result, the two blocks themselves will each experience a quasi-static (reversible) change, featuring essentially no entropy generation.  All the entropy generation for this process will take place within the insulating medium.
The entire entropy decrease from the hot block will be transferred to the insulating medium at its interface with the hot block.  And the entire entropy increase for the cold block will be transferred from the insulating medium at its interface with the cold block.   And, since all the entropy generation for the process takes place within the insulating medium, the entropy transferred to the cold block will be greater than the entropy received from the hot block by an amount equal to the entropy generated within the medium.
A: This is for @Chemomechanics
What our discussion has shown is that, although the changes in entropy of our two blocks between the initial and final thermodynamics states is totally process path-independent, the spatial distribution of the entropy generation and the amounts of entropy transferred to and from our two blocks is highly process-dependent.
Another example to consider is a situation where we have an insulating medium of very low thermal conductivity present between our two blocks.  In this case, the heat transfer rate through the medium will be extremely slow, and, as a result, the two blocks themselves will each experience a quasi-static (reversible) change, featuring essentially no entropy generation.  All the entropy generation for this process will take place within the insulating medium.
The entire entropy decrease from the hot block will be transferred to the insulating medium at its interface with the hot block.  And the entire entropy increase for the cold block will be transferred from the insulating medium at its interface with the cold block.   And, since all the entropy generation for the process takes place within the insulating medium, the entropy transferred to the cold block will be greater than the entropy received from the hot block by an amount equal to the entropy generated within the medium.
A: Thank you for your answer. Does this mean that in an reversible heat transfer the entropy lost from the slightly hotter object is the same as the increase of entropy of the slightly colder object and when there is a finite temperature there is an additional entropy increase due to the irreversibility of the process.
