-
Notifications
You must be signed in to change notification settings - Fork 12
Add Self-Gravity #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pdmullen
wants to merge
8
commits into
develop
Choose a base branch
from
pdmullen/self-grav
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add Self-Gravity #113
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2a973d6
Debugging self-gravity
pdmullen e2659ce
Add boundary exchange task after Poisson solve
pdmullen dd510a9
Cleanup
pdmullen 365a13d
Eliminate commented out pure MG solver
pdmullen 04ad2b3
Try eliminating zero_phi call
pdmullen eb5a057
Update polytrope input file
pdmullen 1ff1d40
Cleanup commented out code
pdmullen b29834c
Bump parth
pdmullen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule parthenon
updated
69 files
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,103 @@ | ||
| # ======================================================================================== | ||
| # (C) (or copyright) 2025. Triad National Security, LLC. All rights reserved. | ||
| # | ||
| # This program was produced under U.S. Government contract 89233218CNA000001 for Los | ||
| # Alamos National Laboratory (LANL), which is operated by Triad National Security, LLC | ||
| # for the U.S. Department of Energy/National Nuclear Security Administration. All rights | ||
| # in the program are reserved by Triad National Security, LLC, and the U.S. Department | ||
| # of Energy/National Nuclear Security Administration. The Government is granted for | ||
| # itself and others acting on its behalf a nonexclusive, paid-up, irrevocable worldwide | ||
| # license in this material to reproduce, prepare derivative works, distribute copies to | ||
| # the public, perform publicly and display publicly, and to permit others to do so. | ||
| # ======================================================================================== | ||
|
|
||
| <artemis> | ||
| problem = polytrope # name of the pgen | ||
| coordinates = cartesian # coordinate system | ||
|
|
||
| <parthenon/job> | ||
| problem_id = polytrope # problem ID: basename of output filenames | ||
|
|
||
| <parthenon/output1> | ||
| file_type = hdf5 # HDF5 data dump | ||
| variables = gas.prim.density, & | ||
| gas.prim.velocity, & | ||
| gas.prim.pressure, & | ||
| grav.phi, & | ||
| grav.rhs | ||
| dt = 1.0 # time increment between outputs | ||
|
|
||
| <parthenon/output2> | ||
| file_type = hst # HDF5 data dump | ||
| dt = 1.0 # time increment between outputs | ||
|
|
||
| <parthenon/time> | ||
| nlim = -1 # cycle limit | ||
| tlim = 100.0 # time limit (to be reset by problem generator) | ||
| integrator = rk2 # time integration algorithm | ||
| ncycle_out = 1 # interval for stdout summary info | ||
|
|
||
| <parthenon/mesh> | ||
| # do_coalesced_comms = true | ||
| refinement = adaptive | ||
| numlevel = 3 | ||
| multigrid = true | ||
|
|
||
| nx1 = 64 | ||
| x1min = -32.0 | ||
| x1max = 32.0 | ||
| ix1_bc = outflow | ||
| ox1_bc = outflow | ||
|
|
||
| nx2 = 64 | ||
| x2min = -32.0 | ||
| x2max = 32.0 | ||
| ix2_bc = outflow | ||
| ox2_bc = outflow | ||
|
|
||
| nx3 = 64 | ||
| x3min = -32.0 | ||
| x3max = 32.0 | ||
| ix3_bc = outflow | ||
| ox3_bc = outflow | ||
|
|
||
| <parthenon/meshblock> | ||
| nx1 = 16 | ||
| nx2 = 16 | ||
| nx3 = 16 | ||
|
|
||
| <parthenon/refinement0> | ||
| method = magnitude | ||
| comparator = greater_than | ||
| field = gas.prim.density_0 | ||
| refine_tol = 0.1 | ||
| derefine_tol = 0.1 | ||
|
|
||
| <physics> | ||
| gas = true | ||
| gravity = true | ||
|
|
||
| <gas> | ||
| cfl = 0.9 | ||
| reconstruct = plm | ||
| riemann = hllc | ||
| gamma = 2.0 | ||
|
|
||
| <gravity/self> | ||
| precondition = true | ||
| print_per_step = true | ||
| max_iterations = 100 | ||
| residual_tolerance = 1.0e-6 | ||
| smoother = SRJ2 | ||
| do_FAS = true | ||
| units_override = true | ||
| use_swindle = false | ||
| ix1_bc = zero | ||
| ox1_bc = zero | ||
| ix2_bc = zero | ||
| ox2_bc = zero | ||
| ix3_bc = zero | ||
| ox3_bc = zero | ||
|
|
||
| <problem> | ||
| iprob = 2 |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (do_self_gravity)