mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Update examples
This commit is contained in:
parent
57371d217a
commit
7419cd26b3
15 changed files with 639 additions and 554 deletions
|
|
@ -159,7 +159,7 @@ plot_file.export_to_xml()
|
|||
|
||||
# Instantiate a distribcell Tally
|
||||
tally = openmc.Tally(tally_id=1)
|
||||
tally.filters = [openmc.Filter(type='distribcell', bins=[cell2.id])]
|
||||
tally.filters = [openmc.DistribcellFilter(cell2.id)]
|
||||
tally.scores = ['total']
|
||||
|
||||
# Instantiate a Tallies collection and export to XML
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ mesh.lower_left = [-2, -2]
|
|||
mesh.width = [1, 1]
|
||||
|
||||
# Instantiate tally Filter
|
||||
mesh_filter = openmc.Filter()
|
||||
mesh_filter = openmc.MeshFilter(mesh.id)
|
||||
mesh_filter.mesh = mesh
|
||||
|
||||
# Instantiate the Tally
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ mesh.lower_left = [-2, -2]
|
|||
mesh.width = [1, 1]
|
||||
|
||||
# Instantiate tally Filter
|
||||
mesh_filter = openmc.Filter()
|
||||
mesh_filter = openmc.MeshFilter(mesh.id)
|
||||
mesh_filter.mesh = mesh
|
||||
|
||||
# Instantiate tally Trigger
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue