- #1
physxfreak
- 2
- 0
Hello everyone,
I'm new here so let me introduce myself first:
I'm a games engineering student and my main field is programming
Right now I'm struggeling with the N-Body Problem, well I think actually solved parts of it:
I've implemented the basic equations with a leapfrog algorithm and they seem to be working correctly
Now I have 2 questions:
1.)
When I place a star at a certain position, I want to calculate the ideal velocity in order to produce an orbit. How is this achieved?
2.)
How can I calculate the Angular Velocity for an NBody-Problem?
----------------------------------
My current setup (as reference):
sun (position=0,0,0; mass=333, velocity=0,0,0)
earth(position=-50,0,0, mass=1, velocity=0,0,2)
This is producing a stable circular orbit
It is also possible to add more Earth's/planets with stable orbits
I know that the mass ratio is not quite right, but i want to achieve a "compressed universe"
----------------------------------------
I would appreciate your help on this.
I'm new here so let me introduce myself first:
I'm a games engineering student and my main field is programming
Right now I'm struggeling with the N-Body Problem, well I think actually solved parts of it:
I've implemented the basic equations with a leapfrog algorithm and they seem to be working correctly
Now I have 2 questions:
1.)
When I place a star at a certain position, I want to calculate the ideal velocity in order to produce an orbit. How is this achieved?
2.)
How can I calculate the Angular Velocity for an NBody-Problem?
----------------------------------
My current setup (as reference):
sun (position=0,0,0; mass=333, velocity=0,0,0)
earth(position=-50,0,0, mass=1, velocity=0,0,2)
This is producing a stable circular orbit
It is also possible to add more Earth's/planets with stable orbits
I know that the mass ratio is not quite right, but i want to achieve a "compressed universe"
----------------------------------------
I would appreciate your help on this.