Improve reporting of macro bound-free heating - #1186
Merged
Conversation
jhmatthews
force-pushed
the
macro_reporting
branch
from
May 26, 2026 11:07
2282a75 to
eae05c0
Compare
Collaborator
Author
|
Here's the current regression test result from this. My confusion is that I would expect no changes to the spectra, but there are small "noise" level changes I am confused by. |
Collaborator
|
The noise differences in the regression tests imply that the random number secquence has changed and don't seem excessive to me. Claude identified sthe following: Number 2 seems the likely culprit to me |
Collaborator
Author
|
Ok, I'll quickly test that. |
Collaborator
Author
|
Ok, thanks Knox, this was the cause. I checked that taking Sirocco 1.3 and just changing the order, which nicely illustrates how a very minimal change can result in noise-level differences in spectra. Merging this PR now. |
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
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.
Currently, we include collisional bound-free processes in macro-atoms as ncontribution to the bound-free heating and cooling (i.e. colisional recombination is calculated as "bound-free heating" and reported as "photo" heating). This change preserves this functionality but separates out the calculation into separate routines so that improved diagnostics are accessible.
This allows the user to see when macro-atom collisional processes are dominating the bound-free heating and cooling. The printout goes from looking like this:
to this:
Corresponding columns have been added to the heat.txt files created by windsave2table which allows inspection of the quantities on a cell-by-cell basis. This is especially useful for high density issues, see #1152