Skip to content

Support arbitrary symmetry axis for CylindricalIndependent class - #3474

Merged
paulromano merged 9 commits into
openmc-dev:developfrom
GuySten:cylindrical_independent
Feb 21, 2026
Merged

paulromano merged 9 commits into
openmc-dev:developfrom
GuySten:cylindrical_independent

Conversation

@GuySten

@GuySten GuySten commented Jun 27, 2025 •

Copy link
Copy Markdown
Contributor

Description

This PR generalize CylindricalIndependent to support symmetry axis in every direction and not only in z direction.

This PR also implement cylindrical_uniform and ring_uniform to generate uniform spatial distributions over cylinders and rings in a similar way to spherical_uniform.

Checklist

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

@GuySten GuySten changed the title added option to have cylindrical sources with general axis added option to have cylindrical sources with generally directed symmetry axis Jul 2, 2025
@GuySten
GuySten force-pushed the cylindrical_independent branch from e9cd2e4 to 76508f8 Compare August 27, 2025 19:59
@GuySten GuySten changed the title added option to have cylindrical sources with generally directed symmetry axis Cylindrical IndependentSource enhancements Jan 24, 2026
@paulromano paulromano changed the title Cylindrical IndependentSource enhancements Support arbitrary symmetry axis for CylindricalIndependent class Feb 21, 2026

@paulromano paulromano 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.

@GuySten Thanks a lot for this enhancement. I made a few updates:

  • Fixed minor issues in the implementation and extended tests
  • Removed ring_unform and just made it a special case in cylindrical_uniform for height=0
  • Pass extra arguments in cylindrical_uniform as **kwargs in case there are future changes to CylindricalIndependent

@paulromano
paulromano enabled auto-merge (squash) February 21, 2026 18:05
@paulromano
paulromano merged commit 83a30f6 into openmc-dev:develop Feb 21, 2026
15 checks passed
@GuySten
GuySten deleted the cylindrical_independent branch February 22, 2026 22:23
jon-proximafusion pushed a commit to shimwell/openmc that referenced this pull request Apr 13, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants