Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

PyOpenGL/OpenGL Generating Cosmic NBodys

  1. Jun 17, 2014 #1
    I am working on a Universe Simulator. I'm stuck on creating the dark matters webs of the universe that look like this: http://www.mpa-garching.mpg.de/galform/data_vis/sim3dnew-highres.png I am generating the particles as solid spheres with the radius of 0.5 . How can I make the particles slowly move toward each other as demonstrated in the picture above to form "webs" of these particles? If anyone has any ideas or might have some examples of how this can be done that would be great. Code in either c/c++/python would be great. (I have the first step of the picture done) Here is a picture of what I have done: http://i.imgur.com/uiTEa3j.png

    The physics I am in need of help with is: Creating a force emitted by each particle to attract other particles toward it to form a web of the particles as show in the picture above.
  2. jcsd
  3. Jul 17, 2014 #2
    I'm sorry you are not generating any responses at the moment. Is there any additional information you can share with us? Any new findings?
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Similar Threads for PyOpenGL OpenGL Generating
Web Scraping Py Script Generates Error for Old Norse Chars