https://github.com/victorvianna/particles-simulation
(Old college project) Multi-threaded simulation of n particles in space submitted to gravitational and electric forces.
https://github.com/victorvianna/particles-simulation
multithreading simulation
Last synced: 10 months ago
JSON representation
(Old college project) Multi-threaded simulation of n particles in space submitted to gravitational and electric forces.
- Host: GitHub
- URL: https://github.com/victorvianna/particles-simulation
- Owner: victorvianna
- Created: 2018-03-19T02:13:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-18T10:56:51.000Z (almost 8 years ago)
- Last Synced: 2025-02-06T08:32:09.724Z (over 1 year ago)
- Topics: multithreading, simulation
- Language: Java
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# N-particles-simulation
Multithreaded simulation of n particles in space. Gravitational and electric forces are implemented, but application may be easily scaled to consider other forces.

## Authors
Cauim de Souza Lima
Victor Hugo Vianna
## Requirements
Java 1.8
## Instructions
Open a shell and run
```
$ ./RUN.sh
```
You can either enter the particle data through the shell or pre-record it in a file input.txt. (If such a file exists, input will be read there!) Neutral particles are displayed in red, positive ones in blue and negative ones in green.
## Main algorithmic ideas
Use of an Executor who consumes tasks of type PositionUpdate and VelocityUpdate from a task queue