# Would the temperature of a gas change when accelerated in a train?

I was thinking about a situation where some gas is enclosed inside a container and kept in a train at rest. The train accelerates, gains a maximum speed and then suddenly stops. Would the temperature of the gas change during this process?

I know that temperature is directly proportional to average kinetic energy of gas molecules but would the train during this process change the kinetic energy of the gas molecules inside the closed container?

Remember, temperature is related to the velocity distribution of the particles inside the gas. The key word here is $collision$.