Produce the simulation of the orbits of the planets

Assignment Help Python Programming
Reference no: EM131926131

Python Programming Assignment -

Need to produce a code with object oriented programming using python, which will produce the simulation of the orbits of the planets around the sun and display the animation in 2D. Along with the code, need to produce a project report as well

Project task -

Your task is to produce a simulation of the orbit of the inner planets (Mercury, Venus, Earth, Mars), however, you should code the simulation in such a way that adding new planets does not involve changing the code. The simulation should read the planet details from a file and show the orbit of the planets as they move around the sun in a graphical display. Your code will implement the Beeman integration scheme to update the position and velocity of the planets at each time step. The program should calculate the orbital periods in Earth years, and these should match the actual ratios -so that a day on Mercury should be 4 times shorter than an Earth day. You should also regularly write out to a file the total energy of the system - the sum of kinetic and gravitational potential energy - to check that it is conserved.

Experiments -

Once you have a working code, you should work through some, or all, of the following experiments. Note that most of the marks for the project will be for:

  • producing a code that works
  • investigating at least two questions
  • producing a project report

Satellite to Mars

Two Earth years after the start of the simulation you wish to launch a satellite from Earth to perform a fly-past of Mars.

Question 1: Find initial velocities that will enable a satellite to get close to Mars. Does your satellite ever get back to Earth?

Once you have found a path that lets the satellite get to Mars you should check to see if your journey time is similar to that of NASA's Viking probe.

Care must be taken to start the satellite from just off Earth (so that there is no division by zero) and also to ensure that the starting velocities are realistic - a probe could get to Mars in a few days if it were fired fast enough but carrying that much fuel is prohibitive!

Question 2: Under what conditions is energy conserved (or not) during your simulation? Illustrate your results graphically.

Guidance on Writing the Project Report -

Structure, style and length - Your report should include the following sections:

1. Introduction. A short summary of your project, the experiments that you tackled and the aims of these.

2. Methods. A description of your program design and the algorithms that you implemented.

3. Results and Discussion. The key results from your experiments and a discussion of what they mean.

4. Conclusions. A short recap of the purpose of the project, whether the objectives of your experiments were met and suggestions for future work.

Your report should be a maximum of 3,000 words.

Attachment:- Assignment Files.rar

Reference no: EM131926131

Questions Cloud

Determine the least expensive sampling plan and total cost : A political polling organization is to conduct a poll of likely voters. Determine the least expensive sampling plan and the total cost to carry out the plan.
What is the difference between a code and a regulation : What is the difference between a code and a regulation? What type of offence is this and why? Identify the elements of this offence.
Which recommendations would you make to the client : Your client Holly Lynne has a 15% required rate of return. She is considering investing in XYZ, Inc., which paid an annual dividend of $0.75.
What should be the production and outsource plan : A gear manufacturer is planning next week's production run. What should be the production and/or outsource plan for the next week to maximize profit?
Produce the simulation of the orbits of the planets : Need to produce a code with object oriented programming using python, which will produce the simulation of the orbits of the planets around the sun
What were the goals of operation twist : The role of term structure theories in policy effectiveness: What were the goals of "Operation Twist"? How did the policy makers want to twist the yield curve?
How many wrenches of each type should be made in-house : How many wrenches of each type should be made in-house and how many should be outsourced? What will be the total cost to satisfy the order?
What is the current price of the bond : 3 years ago, Maxi Min Inc. issued 30 year to maturity zero-coupon bonds with a par value of $1,000. Now the bond has a yield to maturity of 9.21 percent.
Construct a resource folio containing materials suitable : All students will construct a resource folio containing materials suitable for teaching health and physical education (HPE) topics.

Reviews

len1926131

4/3/2018 5:12:47 AM

Subject: Python Programming. Detailed Question: I need to produce a code with object oriented programming using python, which will produce the simulation of the orbits of the planets around the sun and display the animation in 2D. Along with the code, I need to produce a project report as well. Please see the attachement below for more details. All the text in the body of the report, section titles, figure and table captions and any footnotes are included in the word count. The report title, author name, page numbers and any references, appendices etc. are not included. The format and style of your report should be broadly similar to those of an experimental lab report.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd