Gravity Simulation Java Program
$10-30 USD
Paid on delivery
Objective
I need a JAVA program that simulates the motion of N objects affected by gravitational
forces and animates the results. The techniques are used throughout natural sciences, especially in
areas of physics like semiconductors and cosmology to analyze complex systems. The same methods
are also applied into other physical forces which depend on the distance between the objects.
Background
In his Principia, Isaac Newton formulated the principles governing the motion of two objects under
the gravitational attraction. But he was not able to find a solution to the problem with three particles.
In general, solutions to complex systems of three or more objects must be approximated via numerical
simulations.
Requirements
Write a program [login to view URL] that has the following specifications:
1. It takes two double command-line arguments - the duration of the simulation (totalT) and the
simulation time increment (deltaT)
2. It reads in the details of the universe to be simulated from standard input using StdIn, using
several arrays to store the data
3. It simulates the universe, starting at time t = 0.0, and continuing in deltaT increments as long
as t < totalT, using the leapfrog scheme (described in the following pages)
4. It animates the results to standard drawing using StdDraw
5. It prints the state of the universe at the end of the simulation (in the same format as the input
file) to standard output using StdOut
Input
The input is a text file that contains the information for a given universe:
• The first value is an integer n which represents the number of objects
• The second value is a real number radius which represents the radius of the universe; it is
used to determine the scaling of the drawing window (which displays particles with x- and y-
coordinates between −radius and +radius)
• Next, there are n lines (one for each object), with each line containing 6 values. The first two
values are the x- and y-coordinates of the initial position; the next pair of values are the x-
and y-components of the initial velocity; the fifth value is the mass; the last value is a String
that is the name of an image file used to display the particle
Project ID: #17926266
About the project
8 freelancers are bidding on average $50 for this job
hello,how are you.i read your bid carefully. i am java/javafx expert and have full experience for 12 years. java/javafx is my top skill and passision. i can provide most quality and high speed. if you want to succe More
This is Vibrant Webtech and I was glad to see that you're looking for help for project Gravity Simulation Java Program. I've delivered more than 400 + projects in the last 5 years and this makes me very confident wit More
Expert in Gravity Simulation Java Program, Matlab, Simulink, Power System, Signal Processing, Image Processing Artificial Intelligence. Excellent in Electrical Engg. Algorithms, Java
Hi, I can help you. I'm java expert, contact with me so we'll talk more about your work. Thanks and Have a good day
hello i read instruction that is given in this project please provide more detail for the project i have done number of project in java i will provide 5 star rating work thanks
Hello I have vast knowledge on the topic which can help me get the work done perfectly and on time. i am looking forward to working with you. Regards, Evans
I am good with Java programming and algorithms. I have developing games for last 6 years. Please consider my bid.