mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Add RectangularPrism and HexagonalPrism composite surfaces (#2739)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
parent
94f02ae10b
commit
ac941f79e0
36 changed files with 425 additions and 403 deletions
|
|
@ -92,10 +92,9 @@ def model():
|
|||
lattice.pitch = (4.0, 4.0)
|
||||
lattice.lower_left = (-4.0, -4.0)
|
||||
lattice.universes = [[extra_univ, extra_univ], [extra_univ, extra_univ]]
|
||||
lattice_region = openmc.model.rectangular_prism(8.0,
|
||||
8.0,
|
||||
boundary_type='reflective')
|
||||
lattice_cell = openmc.Cell(fill=lattice, region=lattice_region)
|
||||
lattice_prism = openmc.model.RectangularPrism(
|
||||
8.0, 8.0, boundary_type='reflective')
|
||||
lattice_cell = openmc.Cell(fill=lattice, region=-lattice_prism)
|
||||
|
||||
model.geometry = openmc.Geometry([lattice_cell])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue