PyOpenGL/OpenGL Generating Cosmic NBodys

  • Thread starter Thread starter Tetrisit
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on generating cosmic structures in a Universe Simulator using PyOpenGL and OpenGL. The user is attempting to create dark matter webs by simulating particle attraction, specifically by implementing a force that draws particles towards each other. The particles are represented as solid spheres with a radius of 0.5. The user seeks code examples in C, C++, or Python to achieve this effect, emphasizing the need for physics calculations to facilitate the attraction between particles.

PREREQUISITES
  • Understanding of particle physics and gravitational attraction
  • Familiarity with PyOpenGL and OpenGL for rendering
  • Proficiency in C, C++, or Python programming languages
  • Knowledge of 3D graphics concepts and simulations
NEXT STEPS
  • Research particle attraction algorithms in physics simulations
  • Explore OpenGL techniques for rendering particle systems
  • Learn about force calculations and their implementation in C/C++/Python
  • Investigate existing cosmic simulation frameworks for inspiration
USEFUL FOR

Game developers, physicists, and programmers interested in simulating cosmic structures and particle interactions in 3D environments.

Tetrisit
Messages
1
Reaction score
0
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.
 
Technology news on Phys.org
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?
 

Similar threads

Replies
6
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K