Ideal gas piston cylinder