You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -489,9 +489,12 @@ Any snapshot of particle data generated during a simulation can be utilized to r
489
489
```shell
490
490
petar -p input.par [options] [snapshot filename]
491
491
```
492
-
Here, _input.par_ stores the previous parameter choices used in a simulation, automatically generated from the prior simulation. Users can modify _input.par_ directly to adjust parameters before resuming, or specify new parameters in `[options]` within the aforementioned `petar` command.
492
+
Here, _input.par_ stores the previous parameter choices used in a simulation, automatically generated from the prior simulation.
493
493
494
-
It is important to note that if users wish to introduce new options in addition to _input.par_, these options must be placed after "-p input.par"; otherwise, they will be overwritten by the parameters stored in _input.par_.
494
+
It is possible to modify the options for resumed simulations in two ways. Users can either directly modify _input.par_ to adjust parameters before resuming or specify new parameters in `[options]` within the `petar` command mentioned earlier. It is crucial to place `[options]` after `-p input.par` to prevent them from being overwritten by the parameters stored in _input.par_. For instance, to update the end time of the simulation to 10 after resuming simulations from the snapshot file `data.5`, use the following command:
495
+
```shell
496
+
petar -p input.par -t 10 data.5
497
+
```
495
498
496
499
By default, after resuming, the snapshot files with the same name will be replaced. However, for other output files, new data will be appended to the existing ones (e.g., filenames with suffixes like esc, group, etc.).
Copy file name to clipboardExpand all lines: tools/movie.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1018,7 +1018,7 @@ def usage():
1018
1018
print(" --marker-scale [F] Amplify the size of markers in x-y plot: 1.0")
1019
1019
print(" --mass-power [F] The power index of mass to obtain sizes of markers: 1.0")
1020
1020
print(" --suppress-images Do not plot snapshot images (PNG files) and use matplotlib.animation instead of imageio; this cannot use multiprocessing, much slower")
1021
-
print(" --format [S] Video format, requires imageio installed; for some formats (e.g., AVI, MP4) may require FFmpeg and imageio-FFmpeg installed: ", plot_format)
1021
+
print(" --format-file [S] Video format, requires imageio installed; for some formats (e.g., AVI, MP4) may require FFmpeg and imageio-FFmpeg installed: ", plot_format)
1022
1022
print(" --dpi [F] DPI of image: ", dpi)
1023
1023
print("Important notes")
1024
1024
print(" 1) Ensure correct options are set for '-i', '-t', and '-G' to read snapshots accurately and calculate Kepler orbital parameters correctly.")
0 commit comments