mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue