Generates Simulations of a binary star system by numerically solving twelve first order equations of motion for two stars.
Here we will show some examples of different cases and types of orbits that were simulated using the binary star system script.
The mass of the stars is the same and the initial velocity vector of star one is V0 = (0 0.5 0). This results in a very circular orbit where both stars follow the same path.
When we look at y component of the velocity we can see that this type of orbit creates a sinusoidal shape which we like to call a sinusoidal orbit.
Now if we look at the magnitude of the two stars velocity we can see that they are identical they remain relatively stable. The sinusoid that appears in the graphs we suspect are more due to the inaccuracies in ode45 differentiation rather than and would not match experimental data.
Star One | Second Star |
---|---|
![]() |
![]() |
This second system demonstrates the effect of unbalanced masses on a binary system. The gif is a little fast but we can see how the smaller star M1 has a much larger orbit as it is "tossed around" by its bigger relative. One interesting characteristic of this binary specifically is that the orbits of the two stars actually cross each other far from the center of mass.
The y axis of the velocity vector now makes this interesting sawtooth shape. We can see the effects of the mass differences here quantitatively. It appears that the larger star moves at a fraction of the speed of the smaller star.
The velocity magnitude graphs for these two stars are interesting as they are identical in shape but are simply scaled due to the size difference of that stars.
Star One | Second Star |
---|---|
![]() |
![]() |
Thanks for checking out my little project! If you have any ideas or things that could improve on this script to make it better don't hesitate to fork the repo. I would love to see what people come up with!
Also just wanted to thank my professor Dr. Jason Fiege who gave the outline for this project.