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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General Plane fix #17

Merged
merged 3 commits into from
Nov 22, 2024
Merged

General Plane fix #17

merged 3 commits into from
Nov 22, 2024

Conversation

eepeterson
Copy link
Contributor

The way general planes were created were with a number of surface manipulations and deletions which I think led to some errors in mildly complex situations. Namely some later subtraction or intersection commands would not be able to find the necessary body ID. This PR refactors the general plane half space generator to only use an intersection or subtraction with a brick sized larger than the world so there is no more explicit deletion of any body or surface IDs.

Copy link
Collaborator

@pshriwise pshriwise left a comment

Choose a reason for hiding this comment

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

Inconsequential removal of a commented line and this is good to go. The code and resulting test file look significantly cleaner.

Thanks @eepeterson!

else:
cmds.append(f"intersect body {{ { ids } }} {{ { wid } }}")

#cmds += self.boundary_condition(ids)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#cmds += self.boundary_condition(ids)

@pshriwise pshriwise merged commit 5c0dcd1 into openmc-dev:main Nov 22, 2024
1 check passed
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