To build the project, it is necessary to have Maven +3.5.0, and Java SE 8 Release installed. Then, run:
$ mvn clean package
This will generate a *.jar in the target
folder. If you find any issues
with the building, remove the *.jar files from the Maven local
repository with:
$ rm -fr ~/.m2/repository/ar/edu/itba/ss/*
Or do it manually, if you prefer.
In the root folder (after build):
$ java -jar target/tp4-1.0-SNAPSHOT.jar <simulate | animate>
$ java -jar target/tp4-1.0-SNAPSHOT.jar help
Receives a JSON file with the following format (see example below):
{
"fps" : "100",
"deltat" : "100.0",
"integrator" : "Beeman",
"system" : "GravitationalField",
"output" : "resources/data/beeman.data",
"maxtime" : "157680000.0"
}
<x> <y> <r> <vx> <vy>
...
<N>
<t0>
<x> <y> <r> <v>
...
Where <v>
is the module of the speed.
- Jupiter:
- 3.9857e+00 AU
- 458.6806 days
- Saturn:
- 8.2487e+00 AU
- 521.412 days
- Jupiter
- 3.5735e+00 AU
- 283.3333 days
- Saturn
- 7.7907e+00 AU
- 380.9028 days
- Jupiter:
- 1.8653e-03 AU
- 545.8333 days
- Saturn:
- 6.5126e-04 AU
- 1166.088 days
- Jupiter:
- 3.9226e+00 AU
- 1825 days
- Saturn:
- 8.1816e+00 AU
- 74.537 days
- Jupiter:
- 4.2744e+00 AU
- 506.1343 days
- Saturn:
- 8.2790e+00 AU
- 0 days
This project has been built, designed and maintained by the following authors: