I was playing with the idea of entropy and an interesting thought came out. Imagine a physical cube with side $a$. Inside the cube is $N$ particles of an ideal gas at a temperature $T$. One particle of the gas has the mass of $m$.
It can be seen that each particle would be moving at a velocity of v, bouncing off the wall of the cube. Let's take a particle that starts moving at the center of a face of the cube and bouncing off the centers of other faces of the cube. Now if we replace the cube with a series of machine guns surrounding the what is now an imaginary cube, the guns are programmed so that whenever it sees a particle about to pass the "cube", it will fire an identical particle at speed v so that it will hit the particle in the "cube" at the exact moment and angle so that the inside particle is steered back inside the "cube" just like when there was a physical cube.
If this happens, the frequency of the gun getting shot will be the frequency of a particle going to the side of the imaginary cube. This is:
$$f = \frac{v\sqrt{2}}{a}$$ where $v$ is the velocity of a particle and $a$ is the side length of the cube
For each time a gun fires, in order to work, it must give its "bullet" a total of kinetic energy is: $$KE = \frac{1}{2} mv^2$$ So the power of the guns system would be: $$P = KE.f = \frac{v\sqrt{2}}{a} \frac{1}{2} mv^2 = \frac{mv^3}{a\sqrt{2}}$$
Since $$v = \sqrt{\frac{3kT}{m}}$$ so: $$P = \frac{m}{a\sqrt{2}} \biggl(\frac{3kT}{m}\biggl)^\frac{3}{2}$$ $$P = \frac{(3kT)^\frac{3}{2}}{a\sqrt{2m}}$$ If we imagine that all particles move like this (I think this will happen if we take the average of where each particles hit the "cube") and write the equation in term of $V$: $$P = \frac{N(3kT)^\frac{3}{2}}{V^\frac{1}{3}\sqrt{2m}}$$ So I concluded that this is the minimum power required to keep a collection of $N$ particles of ideal gas at temperature $T$ in a volume $V$ (without sqreading all over the place).
However, this seems really wrong, because the power required is incredibly large. There is not a lot of energy required if we can reuse the kinetic energy of bounced of "bullets", but the amount of power of the gun system is still very large.
For example, in order to keep 1 mol of Hydrogen gas in a 1m^3 space at a temperature of 273K, the amount of power needed is $1.2516 * 10^7 W$
Can someone tell me whether this is correct or not and can we really conclude that everything is constantly emitting energy and get them back constantly?
Thank you so much for your help.