Ok, it's true that the electron orbiting the nuclei produces the magnetic
field. It's also true that electron spin is producing magnetic field. However,
by doing so (in permanent magnet case) electrons produce real work. Is
this then the violation of conservation of energy?
To me, saying...