Skip to content

Allow mesh domain in get_microxs_and_flux - #2700

Merged
pshriwise merged 1 commit into
openmc-dev:developfrom
paulromano:microxs-mesh
Sep 22, 2023
Merged

pshriwise merged 1 commit into
openmc-dev:developfrom
paulromano:microxs-mesh

Conversation

@paulromano

Copy link
Copy Markdown
Contributor

Description

Currently the get_microxs_and_flux function allows the user to specify a list of cells, materials, or universes over which they want to compute fluxes and micros. This PR extends the domains argument to also allow a single mesh, in which case the function returns the fluxes and micros on each mesh element.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

@pshriwise pshriwise left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pretty straightforward, pretty nifty. Thanks @paulromano!

@pshriwise
pshriwise merged commit 7fdda4a into openmc-dev:develop Sep 22, 2023
johvincau added a commit to johvincau/openmc that referenced this pull request Sep 24, 2023
Allow mesh domain in `get_microxs_and_flux` (openmc-dev#2700)
@paulromano
paulromano deleted the microxs-mesh branch September 25, 2023 17:54
pshriwise pushed a commit to pshriwise/openmc that referenced this pull request Sep 27, 2023
stchaker pushed a commit to stchaker/openmc that referenced this pull request Oct 25, 2023
church89 pushed a commit to openmsr/openmc that referenced this pull request Jul 18, 2024
apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
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