I am trying to figure out what do I need to know to properly simulate the creation of a solar system from a particle cloud with random distribution of hydrogen atoms.
Being more of a programming background than a physicist one, I find some difficulties trying to find all the forces in interaction.
As for now, I'm looking to simulate the accretion of matter in a random distribution of particles in a void space. I can successfully identify gravitational effects, and have included them as mutual interaction between every particle in my system. I am computing this by summing the effect of every other particle on each one iteratively, and applying the resulting acceleration to the said particle, and so on.
This approach is limited to small numbers of particles and it's fine for me now, because I don't go over 1000 particles per simulation. However, the trouble is that I also want to include other forces that may be playing a significant role in this process. I'm thinking specifically of electric interaction, as I am not yet in the step of simulating eventual nuclear interactions.
I'm not sure how to approach it and I'm fairly confused.
How electric force is involved in my scenario? How can I account for it in my calculations?
Specifically, in a cloud of hydrogen particles in space, what is happening?