Physics and Chemistry Animations in After Effects
There are a number of physics engines and related scripts available in the Physics Simulation category at AEScripts.

However, without a more specific question about what kind of animation you're looking for (that is to say, I don't know how the electrons in an atom are supposed to move), it's hard to point you to a specific answer.