New: Alpha Particle Edition! DESCRIPTION: Throw a proton, a helium nucleus, and two electrons into a sealed-off chamber, and you'll find that the helium is bent on getting those two electrons. And having twice as many protons as the hydrogen nucleus, it gets what it wants. OVERVIEW: This is a simulator of electromagnetism. There is a proton, two electrons, and an alpha particle (a helium nucleus). They interact by exchanging a particle called a virtual photon. When emitted and absorbed, it gives particles momentum in certain directions. And this is the electromagnetic "force" that is felt. The proton has a +1 charge and can usually only keep a single electron around itself, as another electron is repelled by the -1 electron. This means that it is easier to lose the electron and just be a proton than to fill up its outer (and only) electron shell. Helium is a different matter. Its nucleus has a 2+ charge and it wants two of those -1 electrons like crazy. In fact, it and the other noble gases already have their shells filled, and if somehow the electrons were removed, they would probably snatch them off anything nearby. It's nearly impossible to remove their electrons. In this simulator the particles have been set up so that you see the alpha particle pulling the two electrons towards itself, able to pull the electrons directly off the proton. Pretty cool, huh? It becomes a sort of massive tug-o'-war because the proton tries to regain its electron, but the pull of the α particle is too strong. Eventually (because in this project everything is extremely slowed down), the alpha particle will grab those electrons and they're there to stay. :) By the way, you might notice that the proton has moved over a long period of time. That's because even though it moves pretty slowly, it's naturally moving, and the electrons pull on it, and the alpha particle pushes on it. But how does electromagnetism work? Well, there is actually a fourth particle in action - the photon. You can press z or x to toggle seeing or not seeing these photons (This will not affect the interactions, don't worry). The photons are colour coded - purple photons come from the purple electron, pale yellow photons come from the yellow-orange electron, and orange photons come from the proton. All three particles will produce lots and lots of virtual photons. These carry energy and momentum. When they collide with a real particle (such as one of the three mentioned above), they get absorbed and their momentum is transferred to the particle that absorbed them. In the case of a proton and electron, the electron can absorb a photon, which gives them momentum, causing them to move towards the proton. The protons move towards the electrons, too, but the effects are less noticeable.
INSTRUCTIONS: MUST READ!!! ^ read the overview before you start the project c - switch the backdrop/background colour z - make virtual photons visible (shows interactions; cause & effect) x - make virtual photons invisible (shows effect) click and drag - do this to the proton to move it NOTES: Scales: Size and distance not to scale. Colours: The colours are not real - subatomic particles do not have colour Accuracy: It's not 100% accurate, but fairly accurate. One thing is that a photon only affects the receiver, but technically, the giver should also be affected. All that would do in this project is amplify the effect, though, and it seems to be enough already. CREDITS: all art by @CodeBit all code by @CodeBit everything by @CodeBit PERSONAL THOUGHTS: It's hard to code electromagnetism. I love science, so I wanted to make a project like this. It was quite difficult. Eventually though I got the basic movement working, then the attraction and repulsion, then finally some fun stuff to make it more interesting. If you liked this project, please leave a love or fave! If you really enjoyed it, you can suggest it to be curated or featured. You can also follow me to get updates when I share new projects. Related projects (can all be found under the tag #cbff) https://scratch.mit.edu/projects/269105985/