spacevoyageMoon - from_future import division from visual...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
from __future__ import division from visual import * scene.width =1024 scene.height = 760 s #CONSTANTS G = 6.7e-11 mEarth = 6e24 mcraft = 15e3 mMoon = 0 distEM = 4e8 distSE = 6.4e7 rEarth = 6.4e6 rMoon = 1.75e6 deltat = 60 pscale = .4 fscale = 1e4 dpscale = 200 d #OBJECTS AND INITIAL VALUES Earth = sphere(pos=vector(0,0,0), radius=rEarth, color=color.cyan) Moon = sphere(pos=vector(distEM,0,0), radius=rMoon, color=color.white) scene.range=11*Earth.radius # Choose an exaggeratedly large radius for the # space craft so that you can see it! craft = sphere(pos=vector(-62720000,-2752000,0),radius=2e6, color=color.yellow) vcraft = vector(454,2786,0) pcraft = mcraft*vcraft parr = arrow(color=color.green) farr = arrow(color=color.cyan) dparr = arrow(color=color.red) Fnet_tangent_arrow = arrow(color=color.yellow) Fnet_perp_arrow = arrow(color=color.magenta) F trail = curve(color=craft.color) ## craft trail: starts with no points t = 0 scene.autoscale = 0 ## do not allow camera to zoom in or out s
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/12/2011 for the course PHYISCS 2211 taught by Professor Jarrio during the Spring '10 term at Georgia Tech.

Page1 / 2

spacevoyageMoon - from_future import division from visual...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online