mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Update example inputs and Jupyter notebooks
This commit is contained in:
parent
71dfde8d12
commit
b9024f2d8e
11 changed files with 117 additions and 140 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import openmc
|
||||
from openmc.region import Intersection
|
||||
|
||||
###############################################################################
|
||||
# Simulation Input File Parameters
|
||||
|
|
@ -54,11 +53,11 @@ cell2 = openmc.Cell(cell_id=100, name='cell 2')
|
|||
cell3 = openmc.Cell(cell_id=101, name='cell 3')
|
||||
cell4 = openmc.Cell(cell_id=2, name='cell 4')
|
||||
|
||||
# Register Surfaces with Cells
|
||||
cell1.region = surf2.negative
|
||||
cell2.region = surf1.negative
|
||||
cell3.region = surf1.positive
|
||||
cell4.region = Intersection(surf2.positive, surf3.negative)
|
||||
# Use surface half-spaces to define regions
|
||||
cell1.region = -surf2
|
||||
cell2.region = -surf1
|
||||
cell3.region = +surf1
|
||||
cell4.region = +surf2 & -surf3
|
||||
|
||||
# Register Materials with Cells
|
||||
cell2.fill = fuel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue