This is a simulation of subatomic particles using mostly classical physics equations. click to add particles. click and drag to move particles. Here is a different sim I made with just electrons and protons https://codepen.io/lilgreenland/pen/xprGvr
My attempt at modeling subatomic particles. I used Coulomb's law and universal gravitation. For the approximation of the nuclear forces protons and neutrons are attracted under a 1/r4 law, but repulsive at a large distance. You can adjust the max force allowed with the instability constant. Velocity is multiplied by friction each cycle. Velocity, position are forced into integers by the quantization constant. I just added in a beta decay check that turns a neutron into a proton and electron if you have too many neutrons in a nucleus.