Skip to content

Conversation

@nsedayilmaz
Copy link
Contributor

No description provided.

Copy link
Contributor

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

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.

nsedayilmaz and others added 3 commits October 16, 2024 19:12
Add a test for ZVessel composite surface
@paulromano paulromano changed the title Add a composite surface called vessel, which includes a 'ZCylinder' with ellipsoids on top and bottom. Add a vessel composite surface with ellipsoids on top and bottom. Nov 9, 2024
Copy link
Contributor

@paulromano paulromano left a 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!

Copy link
Contributor

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

Maybe a missing type hint but other than that it looks good to me!

_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):
Copy link
Contributor

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?

Copy link
Contributor

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

Thanks @paulromano!

@pshriwise pshriwise enabled auto-merge (squash) November 9, 2024 23:42
@nsedayilmaz
Copy link
Contributor Author

Thank you both for working on this request!

@pshriwise pshriwise merged commit 0ecd45c into openmc-dev:develop Nov 12, 2024
15 checks passed
magnoxemo pushed a commit to magnoxemo/openmc that referenced this pull request Nov 22, 2024
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.

3 participants