Skip to content

Hexagon and truncated hexagon#205

Merged
valeriaRaffuzzi merged 18 commits into
CambridgeNuclear:mainfrom
ChasingNeutrons:truncHex
Jun 30, 2026
Merged

Hexagon and truncated hexagon#205
valeriaRaffuzzi merged 18 commits into
CambridgeNuclear:mainfrom
ChasingNeutrons:truncHex

Conversation

@ChasingNeutrons

Copy link
Copy Markdown
Collaborator

I've developed an axis-parallel hexagon. It is regular in all directions, i.e., has the same width. Its main limitation is that it can't handle reflective boundaries. This is due to the difficulty of handling reflective boundaries by transform. However, I imagine for most cases of interest where this is used as a boundary that periodic boundaries will be sufficient. I have added unit tests and modified the documentation. I have also added a truncated hexagon, which does allow any boundary conditions along the perpendicular direction.

@valeriaRaffuzzi valeriaRaffuzzi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All looks good! I am approving it despite some comments because they are all related to the documentation and comments in the code, rather than changes or suggestions to the code itself. So feel free to merge directly after fixing the comments :)

Thanks for the implementation!

Comment thread docs/Input Manual.rst Outdated
Comment thread Geometry/Surfaces/CompositeSurfaces/hexagon_class.f90 Outdated
Comment thread Geometry/Surfaces/CompositeSurfaces/hexagon_class.f90 Outdated
Comment thread Geometry/Surfaces/CompositeSurfaces/hexagon_class.f90 Outdated
Comment thread Geometry/Surfaces/CompositeSurfaces/hexagon_class.f90 Outdated
Comment thread Geometry/Surfaces/CompositeSurfaces/truncHexagon_class.f90 Outdated
Comment thread Geometry/Surfaces/CompositeSurfaces/truncHexagon_class.f90 Outdated
Comment thread Geometry/Surfaces/CompositeSurfaces/truncHexagon_class.f90 Outdated
Comment thread Geometry/Surfaces/Tests/hexagon_test.f90 Outdated
Comment thread Geometry/Surfaces/Tests/hexagon_test.f90
@valeriaRaffuzzi valeriaRaffuzzi merged commit 11ef730 into CambridgeNuclear:main Jun 30, 2026
6 checks passed
@ChasingNeutrons ChasingNeutrons deleted the truncHex branch June 30, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants