Gravity Simulation Java Program


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.


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



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


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

Skills: Algorithm, Engineering, Java, Matlab and Mathematica, Software Architecture

See more: queue model simulation java, java program simulate queue, different parts simple java program, parts simple java program, application runs java program, easy java program creator, java program can read emails, ocr java program example, java program parse log files create report, outsouce java program, java program web application, java program code window messenger, java program needed, java simulation queue program, write java program input pairs large numbersprogram read echo pair numbers compute report sum product process pair end input

About the Employer:
( 0 reviews ) Romania

Project ID: #17926266

9 freelancers are bidding on average $47 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

$25 USD in 1 day
(19 Reviews)

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

$100 USD in 2 days
(59 Reviews)

Hi, bro! I've read your requirement. I have rich experience with Java programming for simulating objects. I have finished many project like this. I'm confident in your project and I promise to do your project in More

$25 USD in 1 day
(73 Reviews)

Expert in Gravity Simulation Java Program, Matlab, Simulink, Power System, Signal Processing, Image Processing Artificial Intelligence. Excellent in Electrical Engg. Algorithms, Java

$20 USD in 2 days
(30 Reviews)

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

$25 USD in 1 day
(2 Reviews)

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

$88 USD in 1 day
(23 Reviews)

I have worked on a similar project of simulating the universe, but without the initial velocity for the particles, in MATLAB. If I can get a bit of info regarding the motion with initial velocity, I think this can be d More

$25 USD in 5 days
(4 Reviews)

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

$100 USD in 1 day
(3 Reviews)

I am good with Java programming and algorithms. I have developing games for last 6 years. Please consider my bid.

$15 USD in 2 days
(0 Reviews)