Recent content by jjb123
-
J
Solving Binary Star System Homework Problem
Cool, thanks! That really helped.- jjb123
- Post #12
- Forum: Introductory Physics Homework Help
-
J
Solving Binary Star System Homework Problem
Here is the assignment: "1. A binary star. A binary star consists of one star with a mass of 2×1030 kg and the other with a mass of 1×1030 kg. The orbital period (time to return to the same spot) of the stars is 15 days. Your task is to simulate the binary-star system numerically. Your code...- jjb123
- Post #10
- Forum: Introductory Physics Homework Help
-
J
Solving Binary Star System Homework Problem
The center of mass is right in the middle and it looks like they are orbiting it, but I think the initial velocity is too small.- jjb123
- Post #8
- Forum: Introductory Physics Homework Help
-
J
Solving Binary Star System Homework Problem
Thanks for the reply! I think I almost have it but something isn't quite right. Here is what I get when I try to run this: And here is the code: http://pastebin.com/JBxTjqmy Even if you don't know programming, you should be able to see what I'm doing. Let me know if needs any...- jjb123
- Post #7
- Forum: Introductory Physics Homework Help
-
J
Solving Binary Star System Homework Problem
Let's see, so I should calculate m=(m1*m2)/(m1+m2) and use that as my central mass, and then solve the the period expression for both of them, treating them each as a simple orbit around a stationary mass (m)? Then the r I would get out of each of the period expressions would be that objects...- jjb123
- Post #5
- Forum: Introductory Physics Homework Help
-
J
Solving Binary Star System Homework Problem
How do I work the period into it though? The equation for orbital period is T = (2pi)sqrt(r^2/(G(M+m))) Wouldn't that mean that I get the exact same distance from the center of mass for both bodies?- jjb123
- Post #3
- Forum: Introductory Physics Homework Help
-
J
Solving Binary Star System Homework Problem
Homework Statement I have to write a computer program to simulate a binary star system and I can not assume that the larger mass is stationary. I am given their respective masses, and the period of the system. I am just wondering how to find the write combination of initial velocity and...- jjb123
- Thread
- Binary Binary star Star System
- Replies: 11
- Forum: Introductory Physics Homework Help