Recent content by xzbobzx
-
X
I'm trying to simulate moon orbit around earth, my moon is broken.
Ah well, no worries! Thanks anyway :D I toyed around with my moon and set the initial position and speed to the moon's perigee and max velocity: http://nssdc.gsfc.nasa.gov/planetary/factsheet/moonfact.html Ran it like that and I got a very neat eclipse orbit with it's apogee nearly exactly...- xzbobzx
- Post #31
- Forum: Introductory Physics Homework Help
-
X
I'm trying to simulate moon orbit around earth, my moon is broken.
Hurray! The moon works! Public moon_px As Double 'Position.x (m) Public moon_py As Double 'Position.y Public moon_pm As Double 'Position Magnitude Public moon_vx As Double 'Velocity.x (m/s) Public moon_vy As Double 'Velocity.y Public moon_vm As Double...- xzbobzx
- Post #27
- Forum: Introductory Physics Homework Help
-
X
I'm trying to simulate moon orbit around earth, my moon is broken.
I don't know what to think anymore. I'll try it out tomorrow and come back with results!- xzbobzx
- Post #19
- Forum: Introductory Physics Homework Help
-
X
I'm trying to simulate moon orbit around earth, my moon is broken.
I'll have to look into the leapfrog integration. I know Euler is really unstable but it was the only solution I had at hand. As for the circular orbit. Well yes, I could do that and have my moon perfectly rotate around the earth, but I'm not trying to achieve a perfect round orbit. I'm just...- xzbobzx
- Post #17
- Forum: Introductory Physics Homework Help
-
X
I'm trying to simulate moon orbit around earth, my moon is broken.
That's a very good rule to follow, I had no idea. Thank you! Hahaha yeah, I've been shot in the foot by trig functions in programming before. And I didn't know about atan2, that's going to be very useful!- xzbobzx
- Post #13
- Forum: Introductory Physics Homework Help
-
X
I'm trying to simulate moon orbit around earth, my moon is broken.
Now you mention the radians things: that might actually be a problem. I'll have to look into that at school tomorrow. And for the moon's orbit, meh :D, I don't really care that the moon isn't flying a perfect circular orbit, I just want a body that adheres to gravitational acceleration...- xzbobzx
- Post #10
- Forum: Introductory Physics Homework Help
-
X
I'm trying to simulate moon orbit around earth, my moon is broken.
I've tried ramping the Interations up to a million, and even though it took 10 minutes to get it all calculated I could scroll down aaaallll the way to the bottom. In fact I just checked...- xzbobzx
- Post #7
- Forum: Introductory Physics Homework Help
-
X
I'm trying to simulate moon orbit around earth, my moon is broken.
Ah okay, that kind of makes sense. But now I think about it, my timestep is already 1. (I forgot to add this to the main post, doing so now) I don't think that another multiply by 1 is going to solve this. Is the concept behind what I'm doing (from what you can tell) correct, by the way? I've...- xzbobzx
- Post #5
- Forum: Introductory Physics Homework Help
-
X
I'm trying to simulate moon orbit around earth, my moon is broken.
I placed it in my acceleration calculation as that seemed the most logical place to put it: moon_ax = Sin(angle) * ((gravity * earth) / (moon_pm ^ 2)) * -1 * Timestep Do I need a second timestep at the position?- xzbobzx
- Post #3
- Forum: Introductory Physics Homework Help
-
X
I'm trying to simulate moon orbit around earth, my moon is broken.
Homework Statement Alright, this is probably going to be a long one. For a school project I am trying to simulate (in 2D) our moon's orbit around the earth, to eventually simulate a spaceship doing a hohmann transfer between LEO and LLO whilst being affected by both the Earth's gravity and...- xzbobzx
- Thread
- Broken Earth Moon Orbit
- Replies: 33
- Forum: Introductory Physics Homework Help