This repository was archived by the owner on Aug 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructured code so that the eucl method falls under util and is now…
… accessed using %index. Now include sorting in that so that pl arrays are always sorted prior to indexing, rather than remembering to do it each time.
- Loading branch information
Showing
31 changed files
with
1,627 additions
and
1,585 deletions.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
examples/rmvs_swifter_comparison/8pl_16tp_encounters/param.swifter.in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
examples/rmvs_swifter_comparison/8pl_16tp_encounters/param.swiftest.in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 65 additions & 19 deletions
84
examples/rmvs_swifter_comparison/8pl_16tp_encounters/swiftest_rmvs_vs_swifter_rmvs.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| savestate/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| ! | ||
| ! Parameter file for Chambers 2013 in units of Msun, AU, year | ||
| ! | ||
| T0 0.0e0 | ||
| TSTOP 1e8 ! simulation length in years | ||
| DT 0.016 ! stepsize in years | ||
| CB_IN sun_MsunAUYR.in | ||
| PL_IN pl_chambers_2013.in | ||
| TP_IN tp.in | ||
| IN_TYPE ASCII | ||
| ISTEP_OUT 625 ! output cadence | ||
| ISTEP_DUMP 625 ! system dump cadence | ||
| BIN_OUT bin.dat | ||
| PARTICLE_OUT particle.dat | ||
| OUT_TYPE REAL8 ! double precision real output | ||
| OUT_FORM EL ! osculating element output | ||
| OUT_STAT REPLACE | ||
| CHK_CLOSE yes ! check for planetary close encounters | ||
| CHK_RMAX 100000.0 ! discard outside of | ||
| EXTRA_FORCE no ! no extra user-defined forces | ||
| BIG_DISCARD no ! output all planets if anything discarded | ||
| RHILL_PRESENT yes ! Hill's sphere radii in input file | ||
| MU2KG 1.98847e30 ! (M_sun-> kg) | ||
| DU2M 1.495979e11 ! distance unit to meters (AU --> m) | ||
| TU2S 3.15569259747e7 ! time unit to seconds (years --> seconds) | ||
| GMTINY 1e-10 | ||
| ENERGY yes | ||
| ENERGY_OUT energy.dat | ||
| ROTATION yes | ||
| FRAGMENTATION yes | ||
| DISCARD_OUT discard.out | ||
| SEED 8 12261555 871132 92734722 21132443 36344777 4334443 219291656 3848566 |
937 changes: 937 additions & 0 deletions
937
examples/symba_chambers_2013/savestate2/pl_chambers_2013.in
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| 0 ! id | ||
| 39.476926408897626 ! G*Mass | ||
| 0.004650467260962157 ! Radius | ||
| 0.0 !4.7535806948127355e-12 ! J2 | ||
| 0.0 !-2.2473967953572827e-18 ! J4 | ||
| 0.0 0.0 0.07 ! Principle axes moments of inertia | ||
| 11.2093063 -38.75937204 82.25088158 ! Rotation vector (rad/TU) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 0 |
1,440 changes: 3 additions & 1,437 deletions
1,440
examples/symba_swifter_comparison/1pl_1pl_encounter/swiftest_vs_swifter.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 11 additions & 21 deletions
32
examples/symba_swifter_comparison/8pl_16tp_encounters/swiftest_symba_vs_swifter_symba.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| T0 0.0 | ||
| TSTOP 3000.0 | ||
| TSTOP 4200.0 | ||
| DT 600.0 | ||
| PL_IN pl.swifter.in | ||
| TP_IN tp.in | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
451 changes: 418 additions & 33 deletions
451
examples/symba_swifter_comparison/mars_disk/swiftest_vs_swifter.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| submodule(helio_classes) s_helio_eucl | ||
| use swiftest | ||
| contains | ||
|
|
||
| module subroutine helio_util_index_eucl_plpl(self, param) | ||
| !! author: David A. Minton | ||
| !! | ||
| !! Wrapper for the indexing method for WHM massive bodies. Sorts the massive bodies by heliocentric distance and then flattens the pl-pl upper triangular matrix | ||
| implicit none | ||
| ! Arguments | ||
| class(helio_pl), intent(inout) :: self !! Helio massive body object | ||
| class(swiftest_parameters), intent(in) :: param !! Current run configuration parameters | ||
|
|
||
| call self%sort("mass", ascending=.false.) | ||
| call util_index_eucl_plpl(self, param) | ||
|
|
||
| return | ||
| end subroutine helio_util_index_eucl_plpl | ||
|
|
||
| end submodule s_helio_eucl | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.