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.
Cleaned up the Chambers2013 example and added a new run_simulation sc…
…ript that can generate a short test case.
- Loading branch information
MintoDA1
authored and
MintoDA1
committed
Oct 4, 2023
1 parent
592bba8
commit 7699c91
Showing
5 changed files
with
79 additions
and
36 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| * | ||
| !.gitignore | ||
| !init_cond.py | ||
| !initial_conditions.py | ||
| !scattermovie.py | ||
| !run_simulation.py | ||
| !README.txt |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| #!/usr/bin/env python3 | ||
|
|
||
| """ | ||
| Copyright 2023 - David Minton | ||
| 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. | ||
| """ | ||
|
|
||
| """ | ||
| This will run the simulation from a set of initial conditions. The simulation parameters in this file are set to generate | ||
| a very short simulation for testing purposes. Edit the values passed to the run() function as necessary. | ||
| Input | ||
| ------ | ||
| simdata/param.in : ASCII Swiftest parameter input file. | ||
| Output | ||
| ------ | ||
| Outputs are stored in the /simdata subdirectory. | ||
| """ | ||
| import swiftest | ||
| sim = swiftest.Simulation(read_param=True) | ||
|
|
||
| # Original run parameters | ||
| # sim.run(tstop=3e8, dt=6.0875/365.25, istep_out=60000, dump_cadence=10,integreator="symba") | ||
| # | ||
| sim.run(tstop=10000.0, dt=6.0875/365.25, istep_out=10000, dump_cadence=0, integrator="symba") |
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