This paper analyzes the behavior of nitrogen inside a closed cylinder with a mobile piston actuated by a nonlinear spring, a viscous damper and a control force which compensates partially the effect of the high gas pressure. Two helical heating coils are The Melnikov method has been used to obtain sufficient conditions for chaotic behavior, which has also been investigated by means of the sensitive dependence, Lyapunov exponents and the power spectral density. The validity of the proposed model has been analyzed by using the compressibility chart for the nitrogen, and the analytical calculations have been verified through full numerical simulations.