Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Added restart test run
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Jun 19, 2021
1 parent 6f8359b commit d47485a
Show file tree
Hide file tree
Showing 11 changed files with 6,831 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/symba_test_restart/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
!*.in
!*.sh
!*.ipynb
6 changes: 6 additions & 0 deletions examples/symba_test_restart/makerestart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
odir="/home/daminton/git/swiftest/examples/symba_test_restart/original"
rdir="/home/daminton/git/swiftest/examples/symba_test_restart/restart"
rsync -va $odir/dump_pl1.bin $odir/dump_tp1.bin $odir/bin.dat $odir/particle.dat $rdir/
grep TSTOP $odir/dump_param1.dat | sed 's/1\.0/10\.0/' > $rdir/param.in
grep -v TSTOP $odir/dump_param1.dat >> $rdir/param.in
6,636 changes: 6,636 additions & 0 deletions examples/symba_test_restart/original/clement_2018.in

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions examples/symba_test_restart/original/disruption_off_axis.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
3
1 39.47841760435743
0.0 0.0 0.0
0.0 0.0 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 0.0 !rot
2 1e-07 0.0009
7e-06
1.0 -4.20E-05 0.0
0.00 6.28 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 6.0e4 !rot
3 7e-10 0.0004
3.25e-06
1.0 4.20E-05 0.0
-0.80 -6.28 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 1.0e5 !rot
36 changes: 36 additions & 0 deletions examples/symba_test_restart/original/param.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
!
! Parameter file for Clement 2018 in units of Msun, AU, year
!
T0 0.0e0
TSTOP 1e8 ! simulation length in years
DT 0.016 ! stepsize in years
PL_IN clement_2018.in
TP_IN tp.in
IN_TYPE ASCII
ISTEP_OUT 625 ! output cadence
ISTEP_DUMP 625 ! system dump cadence
BIN_OUT bin.dat
PARTICLE_FILE particle.dat
OUT_TYPE REAL8 ! double precision real output
OUT_FORM EL ! osculating element output
OUT_STAT REPLACE
J2 0.0 ! no J2 term
J4 0.0 ! no J4 term
CHK_CLOSE yes ! check for planetary close encounters
CHK_RMIN 0.00465047 ! check for close solar encounters in AU
CHK_RMAX 100000.0 ! discard outside of
CHK_EJECT -1.0 ! ignore this check
CHK_QMIN -1.0 ! ignore this check
!CHK_QMIN_COORD HELIO ! commented out here
!CHK_QMIN_RANGE 1.0 1000.0 ! commented out here
ENC_OUT enc.dat
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
FRAGMENTATION yes
MU2KG 1.98847e30 ! (M_sun-> kg)
DU2M 1.495979e11 ! distance unit to meters (AU --> m)
TU2S 3.15569259747e7 ! time unit to seconds (years --> seconds)
MTINY 1e-10 ! (G*M)
ENERGY yes
ROTATION yes
18 changes: 18 additions & 0 deletions examples/symba_test_restart/original/supercatastrophic_off_axis.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
3
1 39.47841760435743
0.0 0.0 0.0
0.0 0.0 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 0.0 !rot
2 1e-07 0.0009
7e-06
1.0 -4.20E-05 0.0
0.00 6.28 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 -6.0e4 !rot
3 1e-08 0.0004
3.25e-06
1.0 4.20E-05 0.0
1.00 -6.28 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 1.0e5 !rot
1 change: 1 addition & 0 deletions examples/symba_test_restart/original/tp.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
18 changes: 18 additions & 0 deletions examples/symba_test_restart/restart/disruption_off_axis.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
3
1 39.47841760435743
0.0 0.0 0.0
0.0 0.0 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 0.0 !rot
2 1e-07 0.0009
7e-06
1.0 -4.20E-05 0.0
0.00 6.28 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 6.0e4 !rot
3 7e-10 0.0004
3.25e-06
1.0 4.20E-05 0.0
-0.80 -6.28 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 1.0e5 !rot
42 changes: 42 additions & 0 deletions examples/symba_test_restart/restart/param.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
TSTOP 10.00000000000000000E+08
T0 1.00000000000000000E+01
DT 1.60000000000000003E-02
PL_IN dump_pl1.bin
TP_in dump_tp1.bin
IN_TYPE REAL8
ISTEP_OUT 625
BIN_OUT bin.dat
PARTICLE_FILE particle.dat
OUT_TYPE REAL8
OUT_FORM EL
OUT_STAT APPEND
ENC_OUT enc.dat
ISTEP_DUMP 625
CHK_RMIN 4.65047000000000030E-03
CHK_RMAX 1.00000000000000000E+05
CHK_EJECT -1.00000000000000000E+00
CHK_QMIN -1.00000000000000000E+00
MTINY 1.00000000000000004E-10
MU2KG 1.98846999999999998E+30
TU2S 3.15569259747000001E+07
DU2M 1.49597900000000000E+11
SEED 2 2147483562 2147483398
EXTRA_FORCE F
BIG_DISCARD F
RHILL_PRESENT T
CHK_CLOSE T
FRAGMENTATION T
ENERGY T
ROTATION T
TIDES F
GR F
YARKOVSKY F
YORP F
RINGMOONS F
FIRSTENERGY F
EORBIT_ORIG -2.21433519317093902E-01
MTOT_ORIG 3.95337503039740028E+01
LTOT_ORIG 2.51604078104141309E-02 6.62971151477491534E-03 9.49872593451047909E-01
LORBIT_ORIG 2.51604078104141309E-02 6.62971151477491534E-03 9.49872593451047909E-01
LSPIN_ORIG 0.00000000000000000E+00 0.00000000000000000E+00 0.00000000000000000E+00
FIRSTKICK T
35 changes: 35 additions & 0 deletions examples/symba_test_restart/restart/param.restart.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
TSTOP 3.00000000000000008E-05
T0 6.00000000000000015E-06
DT 9.99999999999999955E-08
PL_IN dump_pl2.bin
TP_in dump_tp2.bin
IN_TYPE REAL8
ISTEP_OUT 1
BIN_OUT bin.full.dat
PARTICLE_FILE particle.full.dat
OUT_TYPE REAL8
OUT_FORM XV
OUT_STAT APPEND
ENC_OUT enc.full.dat
ISTEP_DUMP 1
CHK_RMIN 5.00000000000000010E-03
CHK_RMAX 1.00000000000000000E+06
CHK_EJECT -1.00000000000000000E+00
CHK_QMIN -1.00000000000000000E+00
MTINY 9.99999999999999979E-17
MU2KG 1.98907999999999989E+30
TU2S 3.15569250000000000E+07
DU2M 1.49598000000000000E+11
SEED 2 1555839640 103403846
EXTRA_FORCE F
BIG_DISCARD F
RHILL_PRESENT T
CHK_CLOSE T
FRAGMENTATION T
ENERGY T
ROTATION T
TIDES F
GR F
YARKOVSKY F
YORP F
RINGMOONS F
18 changes: 18 additions & 0 deletions examples/symba_test_restart/restart/supercatastrophic_off_axis.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
3
1 39.47841760435743
0.0 0.0 0.0
0.0 0.0 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 0.0 !rot
2 1e-07 0.0009
7e-06
1.0 -4.20E-05 0.0
0.00 6.28 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 -6.0e4 !rot
3 1e-08 0.0004
3.25e-06
1.0 4.20E-05 0.0
1.00 -6.28 0.0
0.4 0.4 0.4 !Ip
0.0 0.0 1.0e5 !rot

0 comments on commit d47485a

Please sign in to comment.