I was reading the chapter "The Kinetic Theory of Gases " from the Feynman Lectures on Physics, where Feynman gives the intuition for why temperature is defined the way it is and what happens when you slowly compress a gas using a piston.
My understanding is, when we "push" on the piston, assuming that there is no loss of energy in the form of "heat" (I still don't know what heat is...in an intuitive sense), we transfer some energy to the atoms/molecules hitting the piston, thereby increasing the average kinetic energy of the atoms/molecules and hence increasing the temperature. (Temperature as I know is defined to be linearly proportional to the average kinetic energy of the atoms/molecules)
My question is, what would happen if we "pull" the piston....in this case..we certainly are not delivering any energy to the atoms/molecules...so it looks like the temperature should not change..
This also seems to be the case when we consider the formula $P=nm\frac{<v^2>}{3}$. Here $n$ is the number of atoms per unit volume, $m$ is the mass of each atom and $v$ is the velocity of an atom which is averaged over all the molecules. So when we "pull" the piston, we are decreasing $n$ and hence decreasing $P$, but we are not doing anything to the average kinetic energy..so the temperature should not change..
But, I also know the formula that $TV^{\gamma-1}=C$ for an adiabatic process, where $C$ is a constant...now this formula says that $T$ changes as $V$ changes...
Where am I going wrong??
Thanks for any answers!!
EDIT: The setup is a can filled with some gas with a piston fitted at one of its ends