Question
can I get some help please... Your task is to write a Python program that uses numerical methods to simulate the motion of a 1-kg
can I get some help please...
Your task is to write a Python program that uses numerical methods to simulate the motion of a 1-kg sphere that is in motion about the Sun. Assume that there are no other objects (like planets or comets) to interfere with your simulation. The mass of the Sun is 2.0 1030 kg. The universal gravitational constant, G, is equal to 6.67 10-11 m3 kg-1 s-2. One A.U. is equal to 150 million km. For this assignment your program will do the following . . .
Task 1 1. It will prompt the user for the initial distance from the Sun (in A.U.) Assuming that a right-handed xy-coordinate system will be used in the solution of this problem, the initial position of the sphere will always be along the x-axis (yo = 0). [Keep in mind that all your calculations will be in MKS units!!!] 2. It will prompt the user for the initial velocity of the sphere (in km/s). Assuming that a right-handed xy-coordinate system will be used in the solution of this problem, the initial velocity of the sphere will always be in the positive y-direction (vxo = 0). [Keep in mind that all your calculations will be in MKS units!!!] 3. It will plot the trajectory of the sphere about the Sun on an xy-plot. The units on these axes will be A.U. Make sure that you integrate long enough to complete at least one full orbit for the non-hyperbolic trajectories. 4. You will create 3 plots. The first will be a recreation of the Earths (circular) orbit, the second will be an orbit that is unmistakably elliptical, and third will be an orbit that is hyperbolic.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started