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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement composite surface for generalized cruciform prism #2457

Merged
merged 3 commits into from Apr 24, 2023

Conversation

paulromano
Copy link
Contributor

This PR implements a new composite surface called CruciformPrism that is equivalent to the gcross derived surface in Serpent. Rather than try to describe what this surface is, the image given on the Serpent website gives a good idea of the resulting shape:

In the implementation here, you create the cruciform prism by giving a list of distances, e.g.,

openmc.model.CruciformPrism([2.5, 3.0, 5.0])

Optional arguments allow you to specify the center of the prism as well as the corresponding axis to which it is parallel (defaults to z-axis).

Special thanks to Fausto Malvagi for requesting this surface! 馃檹

@paulromano
Copy link
Contributor Author

@eepeterson Thanks for the review; just addressed your comments.

Copy link
Contributor

@eepeterson eepeterson left a comment

Choose a reason for hiding this comment

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

just one more small addition then I think this is good to go!

Co-authored-by: Ethan Peterson <ethan.peterson@mit.edu>
Copy link
Contributor

@eepeterson eepeterson left a comment

Choose a reason for hiding this comment

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

LGTM! thanks @paulromano, will merge when CI completes

@eepeterson eepeterson merged commit 4f16481 into openmc-dev:develop Apr 24, 2023
17 checks passed
@paulromano paulromano deleted the cruciform-prism branch April 24, 2023 20:52
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.

None yet

2 participants