Paper presents the results of numerical modelling of a rectangular tube filled with a mixture of air and CO2 by means of the induced standing wave. Assumed frequency inducing the acoustic waves corresponds to the frequency of the thermoacoustic engine. In order to reduce the computational time the engine has been replaced by the mechanical system consisting of a piston. This paper includes the results of model studies of an acoustic tube filled with a mixture of air and CO2 in which a standing wave was induced.