Hello, everyone.
I am trying to extract tally from a model but the scores such as ‘fission-q-recoverable’, ‘heating’, ‘heating-local’ are giving values as zero whereas fission and flux do give actual values. Was wondering what went wrong with my code.
#defining tallies
axial_mesh = openmc.RegularMesh()
axial_mesh.dimension = [1,1,500]
axial_mesh.lower_left = [-100,-100, -121.7805]
axial_mesh.upper_right = [100,100, 121.7805]
axial_mesh_filter = openmc.MeshFilter(axial_mesh)
tally_fiss_a = openmc.Tally(name='fiss_a')
tally_fiss_a.filters = [axial_mesh_filter]
tally_fiss_a.scores = ['fission', 'flux', 'heating', 'fission-q-recoverable']
tallies.append(tally_fiss_a)
#extracting tallies after loading the statepoint file
heating_tally = sp.get_tally(name = 'fiss_a')
h_tally = heating_tally.get_slice(scores = ['fission-q-recoverable'])
h_tally = h_tally.mean.ravel()
h_tally
h_tally comes as 0.0
this is the source I have been using:
box = openmc.stats.Box(lower_left=(-100.,-100.,-125.),
upper_right=(100.,100.,125.),
only_fissionable=True);
src = openmc.Source(space=box);
settings = openmc.Settings(source= src, batches =1000, inactive = 40, particles = 10000)
settings.temperature['method'] = 'interpolation'
settings.export_to_xml()
TIA