hi. say we have a pneumatic cylinder with a piston and seals that cause a lot of friction, and the whole system is well isolated, so we could assume expansion is isentropic. friction causes loss of energy, so the cylinder warms up. since we add heat to expanding air, the expansion goes polytropic, and with that kind of expansion we get more work from gas. if i'm right, where do the losses come from?