mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Streamline use of CompositeSurface with SurfaceFilter (#3167)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com> Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
7638661fad
commit
2b788ea6e0
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue