mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Allow objects in addition to ids in Filters
This commit is contained in:
parent
bc4683be1c
commit
98ab232dc1
9 changed files with 686 additions and 548 deletions
|
|
@ -153,7 +153,7 @@ plot_file.export_to_xml()
|
|||
|
||||
# Instantiate a distribcell Tally
|
||||
tally = openmc.Tally(tally_id=1)
|
||||
tally.filters = [openmc.DistribcellFilter(cell2.id)]
|
||||
tally.filters = [openmc.DistribcellFilter(cell2)]
|
||||
tally.scores = ['total']
|
||||
|
||||
# Instantiate a Tallies collection and export to XML
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue