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 12 commits into
base: develop
Choose a base branch
from
Open

Gray vs multigroup #5

wants to merge 12 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

for (int n = 1; n < n_nubinsd; n++) {
const Real nu = std::exp(std::log(numind) + (n + 0.5) * dlnu);
vmesh(b, fj::emission_cdf(n), k, j, i) =
opac->EmissivityPerNu(rho, temp, nu) +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick question on the units here - from the singularity-opac README, it looks like EmissivityPerNu returns units as energy density per time per frequency. Should there be a dnu multiplying opac->EmissivityPerNu(rho, temp, nu) here?

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