I am trying to clarify some of the concepts that I learned so far in my thermodynamic adventure.
For that purpose I will set up a salad with those concepts, so I can see not only their isolated definition but the practical relationship between them all.
SCENARIO:
Suppose I am in a room and I have a ball in my left hand.
Suppose the ball is my thermodynamic system because it's the thing I want to analyze. Hence the room is the environment.
Suppose I let the ball fall free.
THERMODYNAMIC PERSPECTIVE:
Potential energy is gravity pulling the ball downwards. All this potential energy is part of the internal energy of the system.
Part of it, because another part is made of the kinetic energy of the system's particles (be it a gas or be it a whatever).
It will hence swim down across the air, bounce on the ground, and swim back up...
...A few times, while losing its internal energy as heat flow that goes into the surroundings.
Is there any work flow while the ball is swimming down in contact with the air? - I say swim because it represents better that there is an opposition with the air, falling sounds too easy -
There is a positive work flow when the ball is touching the ground, because it is compressing its volume, and hence there is work being done on the system.
There is a negative work flow when the ball is bouncing back from the ground because it is expanding again, and hence the system is doing the work.
Being entropy the freedom of the system to have the possibility to set itself into "entropy" amount of different micro-states, where can I see this entropy?
While falling the room gets the heat flow, so the room increases its entropy while the ball itself is losing entropy?
But while "swimming up" against gravity, the ball gaining entropy again (not as much as the previous bounce because it doesn't get so high).
What if the room is very hot and the ball is very cold? If heat is not flowing out of the ball, is it still losing internal energy while falling? If the room was exaggeratedly hot in contrast to the ball, would that help the ball gain more energy and hence bounce higher than before?
In the end, the ball will have lost all its kinetic energy and will be in thermal balance with the room. It has lost all the entropy it could have lost, and that is the reason why it doesn't keep acting. If it had some entropy to lose, it would definitely keep doing something (everything happens because everything wants to provide entropy to the universe, and it cannot say no until it has completely been robbed of its entropy?).