Mass in special relativity (including the kinetic energy of the gas) only when it is measured in the center of momentum frame. Just as is the case for single particles, the calculated "rest mass" of such a container of gas does not change when it is in motion, although its "relativistic mass" does change. The container may even be subjected to a force which gives it an overall velocity, or else (equivalently) it may be viewed from an inertial frame in which it has an overall velocity (that is, technically, a frame in which its center of mass has a velocity). In this case,
Escape velocity periapsis when the body is closest to the central body. However, the orbital speed of the body will also be at its highest at this point, and the change in velocity required will be at its lowest, as explained by the Oberth effect. Technically escape velocity can either be measured as a relative to the other, central body or relative to center of mass or barycenter of the system of bodies. Thus for systems of two bodies, the term "escape velocity" can be ambiguous, but it is usually intended to mean the barycentric escape velocity of the less massive body.