To build the project, it is necessary to haveMaven +3.5.0 , andJava SE 8 Release installed. Then, run:
This will generate a*.jar in thetarget
folder. If you find any issueswith the building, remove the*.jar files from theMaven localrepository 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" } <N><t0><x> <y> <r> <v>...
Where<v>
is the module of the speed.
Video of the simulation
Simulaciones para otras fechas Jupiter:3.9857e+00 AU 458.6806 days Saturn:8.2487e+00 AU 521.412 days Jupiter3.5735e+00 AU 283.3333 days Saturn7.7907e+00 AU 380.9028 days Jupiter:1.8653e-03 AU 545.8333 days Saturn:6.5126e-04 AU 1166.088 days Jupiter:4.2744e+00 AU 506.1343 days Saturn: This project has been built, designed and maintained by the following authors: