Skip to content

Support multiple meshes in R2S calculations#3860

Open
paulromano wants to merge 4 commits intoopenmc-dev:developfrom
paulromano:r2s-multi-mesh
Open

Support multiple meshes in R2S calculations#3860
paulromano wants to merge 4 commits intoopenmc-dev:developfrom
paulromano:r2s-multi-mesh

Conversation

@paulromano
Copy link
Contributor

Description

This PR extends R2SManager to accept a list of meshes (as the domains argument), enabling mesh-based R2S calculations to use multiple non-overlapping meshes in a single workflow. Each element-material combination across all meshes is treated as an independent activation region. This can come in handy in a variety of situations:

  • Problems requiring varying spatial resolution in different regions
  • Activating two or more disconnected regions where a cell-based workflow is not sufficient
  • Activating a component that covers a large physical extent but is mostly empty (e.g., the vacuum vessel of a tokamak)

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 18) 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)

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.

1 participant