Skip to content
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

Gray vs multigroup #5

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from
Open

Gray vs multigroup #5

wants to merge 17 commits into from

Conversation

brryan
Copy link
Collaborator

@brryan brryan commented Dec 18, 2024

Background

We want to have both gray and multigroup modes

One question is whether this should be a continuous energy or a multigroup representation. Singularity-opac right now always accepts a continuous frequency argument; maybe this needs to be expanded upon with a multigroup integer index variant. Should multigroup support nonuniformly binned data?

Description of Changes

  • Switch to @RyanWollaeger's Singularity-opac PR 59
  • Split jaybenne package initialization into gray vs mg depending on which singularity variants are present
  • Support both mean and frequency-dependent opacity variants in configure system
  • Template sourcing on gray vs mg
  • Template transport on gray vs mg

Checklist

  • New features are documented
  • Tests added for bug fixes and new features
  • (@lanl.gov employees) Update copyright on changed files
  • Singularity-opac PR 59 is merged

@RyanWollaeger
Copy link
Collaborator

@brryan - sorry to lose track of this - are there any significant further updates pending?

@RyanWollaeger
Copy link
Collaborator

@brryan - if you are still catching updates here, is this ready to merge?

@brryan
Copy link
Collaborator Author

brryan commented Jan 21, 2025

@brryan - if you are still catching updates here, is this ready to merge?

Hey @RyanWollaeger sorry for my delay, yes I think this is ready to merge (or at least I don't remember any outstanding issues). It's not really tested so it might be useful to add a test of actual working multigroup, like frequency-dependent bremss thermalization that shows the gas temperature undershoot the equilibrium at first.

brryan and others added 3 commits January 20, 2025 19:06
+ Cancel log and exponential where possible.
+ Add comment explaining nu formula is log-space group midpoint.
+ Fix the formatting using style/format.sh.
+ Use new AbsorptionCoefficient API for mean opacity.
+ Update some parts of the README.md file.

Note: similar to MeanOpacity's Emissivity, AbsorptionCoefficient
defaults to Rosseland-weighted grey opacity.
@RyanWollaeger
Copy link
Collaborator

Looks like stepdiff is failing with the current changeset - that should be unaffected unless there is an issue switching to the grey API (or one of the API functions).

@RyanWollaeger
Copy link
Collaborator

@brryan or @pdmullen - I should know this, but how do we run the full test suite locally (i.e. not with CI)?

@RyanWollaeger
Copy link
Collaborator

@brryan or @pdmullen - I should know this, but how do we run the full test suite locally (i.e. not with CI)?

N/m - it occurred to me I can just look at how the CI is doing it... yikes.

+ Remove division by frequency in source particle creation.
+ Update singularity-opac commit to correct mean opacity accesses.
+ Have regressions fail if mean errors are NaN.
@RyanWollaeger
Copy link
Collaborator

@pdmullen - the most recent commit should get the existing tests to pass. Still need to add an actual multi-frequency test.

@RyanWollaeger
Copy link
Collaborator

@pdmullen - the most recent commit should get the existing tests to pass. Still need to add an actual multi-frequency test.

Guess not - the passed for me locally, at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants