# Is this thought experiment violating the the Second Law of Thermodynamics?

There is an adiabatic box, with a board in the middle, which is adiabatic too.The board separates the box into two parts and there is a small hole in it, which is close to a coil and the hole has a little door, designed to be opened when the current in the coil reaches a certain value.

Now, if I put some magnetized gas in the box, through the right side, the gaseous molecule, which has the larger velocity, when it passes through the coil there will be current produced in the coil, so the door will open, so then the molecule can pass through the hole to the other side.

After some time, the faster molecules will come to the left side and the slower molecules will be left on the right side so the entropy in this isolated system increases spontaneously. Does this violate the second law of thermodynamics? Of course not, but what was the problem?

-
Did magnetised gas increased energy on RHS initially or my 'Given' is correct? – Anubhav Goel Mar 21 at 16:43
yes................... – alst Mar 21 at 16:46
I'd remove strange from the title. It is a opinion. It adds nothing besides a click bait. – Mindwin Mar 21 at 19:26
Also, check this related answer of Daniel; it's definitely worthy to read it. – MAFIA36790 Mar 22 at 2:57
Is it even possible for a gas to be magnetized? – David Richerby Mar 22 at 8:04

This ratchet-like Maxwell's demon has the same problem as all of the other ones: the door/coil mechanism itself will heat up, and become useless.

Before thinking about this one, think about the simpler scenario where there's just a door, that opens if a fast particle hits it hard enough. Since particles have energy on the order of $kT$, the door must require around that much energy to open. But by the equipartition theorem, once the door itself is at temperature $T$, it will have $kT$ of thermal energy! So after a while the door will be wildly swinging open and shut on its own, and become totally useless.

This machine adds a second stage: now, your particle's $kT$ of kinetic energy goes into making a current in the coil, and the current in the coil opens the door. However, thermal noise applies to circuits, too; after a while, your coil will reach temperature $T$ and have $kT$ of Johnson noise, giving a randomly fluctuating current. As in the previous case, this will make your door randomly open and close, making the device fail.

-
I think I understand now,thank you very much. – alst Mar 21 at 16:58
a small question...even the door has kT of thermal energy,why will it be wildly swing open?my house's door is also at a certain temperature ,but it doesn't act like this? – alst Mar 21 at 17:27
@alst Your door also doesn't open for any individual particle hitting it, does it? :) – Luaan Mar 21 at 17:30
If you want a single particle to be able to open your door, it has to be a really flimsy door. You can use a strong door, but then nothing would ever get past it. – knzhou Mar 21 at 17:31
"Bang, bang!! Maxwell's silver demon came down on her head." – Hot Licks Mar 21 at 20:42

Given: The speed of gas on two side is equal initially. Gas in RHS is magnetised.

As current will be induced in coil, this would be due to expense of Kinetic energy of magnetised gas. So, actual velocity of magnetised gas will decrease while passing.

This makes velocity on LHS less.

Now, to answer what if velocities on left is still lower. It changed entropy?

To answer this We need to look at gate now. Yes you opened door, but how did you close it. You can not close it without bringing magnetised gas particle back.

Each particle you transfer, you increase Pressure Energy on RHS.

So, you actually cannot transfer many particles on LHS, as it would increase pressure on RHS and more gas particle will be forced back towards right.

Now, yes you can change entropy of system, but energy of that is supplied by various other forms.

Second Law of Thermodynamics : In any cyclic process the entropy will either increase or remain the same.

Hence, second law of thermodynamic allows entropy increase.

-
but the expense of Kinetic energy of magnetized gas is from the reduced kinetic energy of the passing molecule,so does this means when a magnetized molecule passing through a coil,its reduced kinetic energy will always be larger than that it is left? – alst Mar 21 at 15:38
you said that the kinetic energy of magnetized gas will increase,but how do you know the growth amount will be larger than the molecule takes from the right side? – alst Mar 21 at 15:48
sorry...I misread the word...thought you said ' expanse'...I mean since the velocity of magnetized gas will decrease,and the faster molecules passing through the coil,then after some time,the left side has more faster molecules,the higher temperature,so the entropy is decreasing? – alst Mar 21 at 15:59
but even the velocity of gas passing the hole decreases ,when it passes,what if its kinetic energy still lager than the left gas of right side?then the temperature of right still become higher? – alst Mar 21 at 16:23
I can use gravity to make the door closed. – alst Mar 21 at 16:57

It is true, "the second law of thermodynamics" is **not violated*. In order to see this clearly, I am providing the following scenario:

Given:
1 - Each side starts with the same number of "molecules" (100). Ten (10) will be fast (F), and 90 will be normal (N) speed.
2 - Each normal molecule has one unit of energy and the fast molecule has two.
3 - It takes one unit of energy to magnetize a molecule.
4 - It takes one unit of energy to open the "door."

So, at the start, the left side has (10F x 2 + 90N x 1 =) 110 units of energy. The right side is the same, but since the 10F molecules are also magnetized (M), it has (10MF x 3 + 90N x 1 = ) 120 unit of energy. Ten extra units of energy (from outside the system) are given to the right side.

When a fast magnetized molecule passes through the loop, it uses up one unit of energy and becomes a magnetized normal molecule (MF -> ) MN that goes to the left side. The next time this happens, a fast molecule (F) from the left side moves to the right side and the MN molecule stays in the right side.
This repeats until there are no more MF molecules.
At the end, there are 90N + 5MN + 5F molecules on the left side (110 unit of energy) and 90N + 5MN + 5F molecules on the right side (110 unit of energy). The extra 10 unit of energy the right side had, were used up in opening the door, which is heat going back outside the system.

-