Hi, I read that heat is the oscillation of atoms. Is it only the nuclei that vibrate or also the electrons? If so, how can they rotate and vibrate? How do electrons react to heat, anyway? If a beam of electrons is rotating in a magnetic field and we heat up the container/the room, how dos that affect them?