-
Notifications
You must be signed in to change notification settings - Fork 8
Towards Multigroup API #71
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
65a311d
Towards multigroup API
pdmullen 5b656a4
Move to midpoint rule for better bndry behavior
pdmullen f544b20
Extend to scattering
pdmullen cf8ca92
Refactor
pdmullen 81299a0
Add function to return group bounds
pdmullen b0d01c1
Remove artifact files
pdmullen d7894e3
Update plan history
pdmullen 33103fb
Remove leftover ASCII support
pdmullen e0269c0
Comment regarding binary search for group idx
pdmullen 1a569db
Boundary cases for GroupOfNuImpl_
pdmullen 40b2728
Named constant and format
pdmullen 92d9299
Separate shared utilities into header
pdmullen e7f3541
Merge remote-tracking branch 'origin/main' into pdmullen/multigroup-api
pdmullen c9ea376
Cleanup
pdmullen 98e7aa8
Remove square brackets from test cases
pdmullen ff52bdb
Cleanup and format
pdmullen 8a250d6
Symmetry b/w abs and scat
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| <!-- This file was made in part with generative AI. --> | ||
|
|
||
| ## Goal | ||
|
|
||
| Add a photon multigroup absorption API that supports group-index lookups, | ||
| frequency-to-group lookup, direct table-backed loading, and non-CGS wrapping. | ||
|
|
||
| ## Functional Plan | ||
|
|
||
| - Add a photon multigroup opacity type that stores Planck and Rosseland group | ||
| absorption coefficients on `(rho, T, group)`. | ||
| - Support two construction paths: | ||
| - build group means from a monochromatic photon opacity plus group bounds | ||
| - load pretabulated group Planck and Rosseland opacities from Spiner data | ||
| - Keep group bounds as first-class multigroup data: | ||
| - preserve half-open group semantics `[nu_g, nu_{g+1})` | ||
| - allow a lower tail group by setting the first bound to `0.` | ||
| - allow an upper tail group by setting the final bound to IEEE `+infinity` | ||
| - Add explicit frequency-entry APIs: | ||
| - `GroupOfNu` | ||
| - `PlanckGroupAbsorptionCoefficientFromNu` | ||
| - `RosselandGroupAbsorptionCoefficientFromNu` | ||
| - `AbsorptionCoefficientFromNu` | ||
| - Keep the `NonCGSUnits` wrapper working for multigroup photon opacities. | ||
| - Add focused regression coverage for: | ||
| - gray exactness across groups | ||
| - autogenerated logarithmic groups with tail groups | ||
| - direct table-backed construction | ||
| - SP5/HDF round-trip | ||
| - half-open frequency-bound behavior | ||
| - non-CGS wrapper behavior | ||
| - Unify multigroup into existing mean opacity classes rather than creating separate types. | ||
|
|
||
| ## Scope Boundaries | ||
|
|
||
| - Do not add neutrino multigroup support in this PR (coming in later PR). | ||
| - Do not add integrated multigroup emissivity in this PR (add in later PR, as downstream | ||
| codes may independently handle their emissivity integrals). | ||
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.