-
Download the files from the simpleParticleSimulator folder
-
HeapTester.java includes a unit test for the heap implementation using JUNIT JUPITER, which is included in the /lib folder.
-
Compile the file ParticleSimulator.java with the following command:
javac ParticleSimulator.java
-
Run the particle simulator using the following command:
java ParticleSimulator particlesInitial.txt
-
It is imperative to run ParticleSimulator.java with the argument particlesInitial.txt because this text file contains information regarding the time duration of the simulation, the particles' starting position, and the particles' initial x-velocities and y-velocities.
-
The particlesInitial.txt file should contain the particles' starting position and velocity information.
-
When run, a new window with the particle simulation should open.
-
If run with the txt file particlesInitial.txt, the particles at the end of the simulation should form a turkey.
- Nicholas Golparvar
- Charlie Engler