-
Notifications
You must be signed in to change notification settings - Fork 21
WIP: Iris Imager #148
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
bprather
wants to merge
48
commits into
dev
Choose a base branch
from
iris
base: dev
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
WIP: Iris Imager #148
Conversation
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
* PtoU for face B field was zeroing dB on poles, not B, which was useless * Parthenon now has a def SMALL which conflicted with our macro. Their version is *very* small though, so left ours in place.
The existing magnetic field cleanup invoked when resizing a simulation uses a fork of Parthenon's old BiCGSTAB solver. This is fine, but doesn't support SMR/AMR grids. Parthenon's new multigrid solvers *do* support SMR grids, So I've added a magnetic field cleanup which uses them. As a bonus, they converge much faster and to seemingly arbitrary precision. The new cleanup does not support cell-centered B fields, so the old one has been left in for now. However, it doesn't work in this branch due to the old solver breaking, so it may as soon be eliminated as repaired, I'm not sure.
Stuff from testing GMG at scale: read enough zones to interpolate all face-centered fields, better handle boundaries/ghosts. GMG is slower than expected, probably due to single-level boundary conditions (which amount to a different boundary per MG level), but eventually converges to the divB < 1e-7 for 120M cells in 1/2hr on a CPU, which we'll call a win.
Move to the actual, official parthenon `develop`. We still carry three patches, two of which are submitted upstream. Not sure the third is even necessary anymore, but best to carry it until we can test everywhere.
(And reconfigure the fix a bit to copy/allocate less)
…ers so anyone using them can restore them
Also add enough density to always recover momenta after Kastaun inversion. Should eliminate "bad velocity" failures.
…or drift frame floors
…w, carrying over a couple niceties
… floors. Looks... fine.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This is an attempt at writing a ray-traced imaging code directly into KHARMA.
The initial target is "offline" imaging: ray-tracing of existing output files and analytic models e.g. the thin disk. This is more or less working in this PR, although loading could be more straightforward (currently, imaging a dump requires "restarting" from it, which comes with a host of Parthenon idiosyncracies). With some tweaking around parameter parsing, this could be a drop-in replacement for ipole in some contexts.
Eventually, the goal is coincident imaging, integrated into the KHARMA step -- this is both a compelling science case in and of itself (true slow light imaging), and a jumping off point for monte carlo and MOC radiative transfer in KHARMA.