From 2b788ea6e0cc3ffa31daec33584214bbc667d622 Mon Sep 17 00:00:00 2001 From: Zoe Prieto <101403129+zoeprieto@users.noreply.github.com> Date: Thu, 20 Feb 2025 22:51:05 -0300 Subject: [PATCH] Streamline use of CompositeSurface with SurfaceFilter (#3167) Co-authored-by: Patrick Shriwise Co-authored-by: Paul Romano --- openmc/model/surface_composite.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openmc/model/surface_composite.py b/openmc/model/surface_composite.py index 88433118b..3a17b6169 100644 --- a/openmc/model/surface_composite.py +++ b/openmc/model/surface_composite.py @@ -33,6 +33,10 @@ class CompositeSurface(ABC): 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