-
Notifications
You must be signed in to change notification settings - Fork 503
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
Add a vessel composite surface with ellipsoids on top and bottom. #3168
Conversation
…ith ellipsoids on top and bottom.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nsedayilmaz! This is a nice addition and great application for the composite surface. I've made a few small comments here. We'll want to add some tests for this surface as well.
Co-authored-by: Patrick Shriwise <[email protected]>
Co-authored-by: Patrick Shriwise <[email protected]>
Add a test for ZVessel composite surface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did some refactoring on this branch to generalize it so it can be oriented in the x-, y-, or z-directions instead of just z. @pshriwise if you can take another quick look, I'll need your approval to merge. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a missing type hint but other than that it looks good to me!
openmc/model/surface_composite.py
Outdated
_surface_names = ('cyl', 'plane_bottom', 'plane_top', 'bottom', 'top') | ||
|
||
def __init__(self, r: float, p1: float, p2: float, h1: float, h2: float, | ||
center: Sequence[float] = (0., 0.), axis='z', **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be a type hint for axis
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @paulromano!
Thank you both for working on this request! |
…enmc-dev#3168) Co-authored-by: Patrick Shriwise <[email protected]> Co-authored-by: Paul Romano <[email protected]>
No description provided.