Skip to content

Commit 0d3533d

Browse files
zoeprietopshriwisepaulromano
authored
Streamline use of CompositeSurface with SurfaceFilter (openmc-dev#3167)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com> Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
1 parent 80c699e commit 0d3533d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎openmc/model/surface_composite.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ def rotate(self, rotation, pivot=(0., 0., 0.), order='xyz', inplace=False):
3333
setattr(surf, name, s.rotate(rotation, pivot, order, inplace))
3434
return surf
3535

36+
@property
37+
def component_surfaces(self):
38+
return [getattr(self, name) for name in self._surface_names]
39+
3640
@property
3741
def boundary_type(self):
3842
return getattr(self, self._surface_names[0]).boundary_type

0 commit comments

Comments
 (0)