mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
returning Cell instead of Universe
This commit is contained in:
parent
4c62517b1a
commit
3d091a6cfb
1 changed files with 10 additions and 4 deletions
|
|
@ -762,12 +762,18 @@ class DAGMCUniverse(UniverseBase):
|
|||
return +lower_x & -upper_x & +lower_y & -upper_y & +lower_z & -upper_z
|
||||
|
||||
def bounded_universe(self, **kwargs):
|
||||
"""Returns an openmc.Universe filled with this DAGMCUniverse and bounded
|
||||
with a cell. Defaults to a box cell with a vacuum surface. kwargs are
|
||||
passed directly to DAGMCUniverse.bounding_region()"""
|
||||
"""Returns an openmc.Cell that bounds the DAGMCUniverse and is filled
|
||||
with the DAGMCUniverse. Defaults to a box cell with a vacuum surface.
|
||||
kwargs are passed directly to DAGMCUniverse.bounding_region()
|
||||
|
||||
Returns
|
||||
-------
|
||||
openmc.Cell
|
||||
cell filled with the DAGMCUniverse
|
||||
"""
|
||||
|
||||
bounding_cell = openmc.Cell(fill=self, region=self.bounding_region(**kwargs))
|
||||
return openmc.Universe(cells=[bounding_cell])
|
||||
return bounding_cell
|
||||
|
||||
@classmethod
|
||||
def from_hdf5(cls, group):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue