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

Commit

Permalink
moved multibody movie making example to its own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cwishard committed Feb 10, 2023
1 parent 1c58ffb commit c22dc24
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 8 deletions.
1 change: 0 additions & 1 deletion examples/Fragmentation/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*
!.gitignore
!Fragmentation_Movie.py
!Multibody_Movie.py
!swiftest_fragmentation.py
!README.txt
5 changes: 2 additions & 3 deletions examples/Fragmentation/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Included in the Fragmentation example directory are the following files:

- README.txt : This file
- swiftest_fragmentation.py : A Python Script that generates and runs three sets of initial conditions.
- Fragmentation_Movie.py : A Python Script that processes an out.nc file and generates a movie (.mp4) of a collisional event.
- Multibody_Movie.py : A Python Script that processes an out.nc file and generates a movie (.mp4) of a multi-body collisional event.
- Fragmentation_Movie.py : A Python Script that processes a data.nc file and generates a movie (.mp4) of a collisional event.

This example is intendedto be run with Swiftest SyMBA. For details on how to generate, run, and analyze this example, see the Swiftest User Manual.
This example is intended to be run with Swiftest SyMBA. For details on how to generate, run, and analyze this example, see the Swiftest User Manual.
4 changes: 4 additions & 0 deletions examples/Multibody_Fragmentation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!Multibody_Movie.py
!README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,25 @@
"""

"""
Generates a movie of a multi-body fragmentation event from set of Swiftest output files.
Generates, runs, and processes a set of initial conditions for a multi-body super-catastrophic distruption collisional event.
All Swiftest output files are stored in the /supercatastrophic_multi subdirectory.
Inputs
_______
param.in : ASCII Swiftest parameter input file.
data.nc : A NetCDF file containing the simulation output.
None.
Returns
-------
fragmentation.mp4 : A .mp4 file of a fragmentation event.
supercatastrophic_multi.mp4 : A .mp4 file of a fragmentation event.
collisions.log : An ASCII file containing the information of any collisional events that occured.
collisions.nc : A NetCDF file containing the collision output.
data.nc : A NetCDF file containing the simulation output.
encounters.nc : A NetCDF file containing the encounters output.
init_cond.nc : A NetCDF file containing the initial conditions for the simulation.
param.00....in : A series of parameter input files containing the parameters for the simulation at every output stage.
param.in : An ASCII file containing the inital parameters for the simulation.
param.restart.in : An ASCII file containing the parameters for the simulation at the last output.
swiftest.log : An ASCII file containing the information on the status of the simulation as it runs.
"""

import swiftest
Expand Down
21 changes: 21 additions & 0 deletions examples/Multibody_Fragmentation/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Copyright 2023 - David Minton, Carlisle Wishard, Jennifer Pouplin, Jake Elliott, & Dana Singh
This file is part of Swiftest.
Swiftest is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Swiftest is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Swiftest.
If not, see: https://www.gnu.org/licenses.

README.txt

Swiftest Example : Fragmentation
Author : David Minton and Carlisle Wishard
Date : December 6, 2022

Included in the Fragmentation example directory are the following files:

- README.txt : This file
- Multibody_Movie.py : A Python Script that generates, runs, and processes a multi-body collisional event.

This example is intended to be run with Swiftest SyMBA. For details on how to generate, run, and analyze this example, see the Swiftest User Manual.

0 comments on commit c22dc24

Please sign in to comment.