Update examples

This commit is contained in:
Sterling Harper 2016-09-22 03:00:49 -04:00
parent 57371d217a
commit 7419cd26b3
15 changed files with 639 additions and 554 deletions

View file

@ -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

View file

@ -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

View file

@ -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