Skip to content

Documentation on heating doesn't explain keff normalization #2374

Open

Description

@guyshtot

According to my understanding, computing a tally with a heating score on a cell containing a unique isotope should be equal to using a flux score together with an energy function filter based on the MT=301 reaction of the isotope and multiplying the result by the density of the isotope.
When running the code below I get completely different values from both tallies.
Am I missing something or is this a bug?

import openmc
from openmc.data import DataLibrary,IncidentNeutron
sphere1=openmc.Sphere()
sphere2=openmc.Sphere(r=2,boundary_type='vacuum')
mat1=openmc.Material(temperature=294)
mat1.add_nuclide("U235",1)
cell1=openmc.Cell(fill=mat1,region=-sphere1)
mat2=openmc.Material(temperature=294)
mat2.add_nuclide("H2",1)
cell2=openmc.Cell(fill=mat2,region=+sphere1 & -sphere2)
model=openmc.model.Model()
model.geometry.root_universe=openmc.Universe(cells=[cell1,cell2])
model.materials=model.geometry.get_all_materials().values()
model.settings.particles=10000
model.settings.batches=150
model.settings.inactive=30
model.materials.cross_sections='/home/guyshtot/Documents/xs/endfb71/endfb71_hdf5/cross_sections.xml'
tally1=openmc.Tally()
tally1.scores=['heating']
tally1.filters=[openmc.CellFilter(cell2)]
library=DataLibrary.from_xml(model.materials.cross_sections)
xs=IncidentNeutron.from_hdf5(library.get_by_material("H2")['path']).reactions[301].xs['294K']
tally2=openmc.Tally()
tally2.scores=['flux']
tally2.filters=[openmc.CellFilter(cell2),openmc.EnergyFunctionFilter(xs.x,xs.y)]
model.tallies.extend([tally1,tally2])
model.run()

When changing the heating score to (n,gamma) score and 301 to 102 in the code above, both tallies give the same value.

Activity

  1. paulromano commented on Feb 3, 2023

    @paulromano
    Contributor

    When you run a k-eigenvalue calculation, the non-fission kerma ends up getting weight by keff for reasons explained in this paper. In this case, k = 1.8 so the heating score ends up being 80% higher than the tally that uses the energy function filter. If you run a fixed source calculation or modify your density so that k=1, you should see agreement between heating and the flux+energy function filter tally.

  2. guyshtot commented on Feb 3, 2023

    @guyshtot
    ContributorAuthor

    Thank you for the explanation.
    I suggest explaining this in the documentation. Currently the Heating and Energy Deposition section of the documentation implies that the heating score is equal to the flux+energy function filter tally.

  3. paulromano commented on Feb 3, 2023

    @paulromano
    Contributor

    @guyshtot Good point! I'll reopen this issue so that we can track progress on a documentation update.

  4. changed the title [-]heating score isn't equal to flux score with 301 energy function filter[/-] [+]Documentation on heating doesn't explain keff normalization[/+] on Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions