Ditutup

Gravity Simulation Java Program

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

Keahlian: Algoritma, Teknik, Java, Matlab and Mathematica, Perancangan Perangkat Lunak

Lihat lebih lanjut: 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

Tentang Pemberi kerja:
( 0 ulasan ) Romania

ID Proyek: #17926266

10 freelancer menawar dengan rata-rata $45 untuk pekerjaan ini

ITPyramid85

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 Lebih banyak

$25 USD dalam 1 hari
(13 Ulasan)
6.8
sysdesigner13

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 Lebih banyak

$25 USD dalam 1 hari
(66 Ulasan)
5.7
schoudhary1553

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 Lebih banyak

$100 USD dalam 2 hari
(49 Ulasan)
5.9
WebGreenSoft

Hi, I Java developer and have rich experiences. I am very interested in this project. Hope to work with you. Best Regards

$25 USD dalam 1 hari
(37 Ulasan)
4.7
prefectworld

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

$20 USD dalam 2 hari
(24 Ulasan)
4.8
leviet

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 dalam 1 hari
(2 Ulasan)
3.4
mukesh30march

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 dalam 1 hari
(14 Ulasan)
3.4
tejasan

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 Lebih banyak

$25 USD dalam 5 hari
(2 Ulasan)
1.5
numberten1992

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 dalam 1 hari
(0 Ulasan)
0.0
anandkumar604

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

$15 USD dalam 2 hari
(0 Ulasan)
0.0