Skip to content

Commit

Permalink
Streamline use of CompositeSurface with SurfaceFilter (#3167)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Shriwise <[email protected]>
Co-authored-by: Paul Romano <[email protected]>
  • Loading branch information
3 people authored Feb 21, 2025
1 parent 7638661 commit 2b788ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openmc/model/surface_composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def rotate(self, rotation, pivot=(0., 0., 0.), order='xyz', inplace=False):
setattr(surf, name, s.rotate(rotation, pivot, order, inplace))
return surf

@property
def component_surfaces(self):
return [getattr(self, name) for name in self._surface_names]

@property
def boundary_type(self):
return getattr(self, self._surface_names[0]).boundary_type
Expand Down

0 comments on commit 2b788ea

Please sign in to comment.