Skip to content

Commit

Permalink
Calculate fission rate density. (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgjarrett committed Jan 26, 2023
1 parent 76a76b1 commit f8fb2cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions armi/physics/neutronics/globalFlux/globalFluxInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,3 +1200,7 @@ def calcReactionRates(obj, keff, lib):

for paramName, val in rate.items():
obj.p[paramName] = val # put in #/cm^3/s

vFuel = obj.getComponentAreaFrac(Flags.FUEL) if rate["rateFis"] > 0.0 else 1.0
obj.p.fisDens = rate["rateFis"] / vFuel
obj.p.fisDensHom = rate["rateFis"]
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ def test_calcReactionRates(self):
self.assertAlmostEqual(b.p.rateAbs, 0.0)
globalFluxInterface.calcReactionRates(b, 1.01, b.r.core.lib)
self.assertGreater(b.p.rateAbs, 0.0)
vfrac = b.getComponentAreaFrac(Flags.FUEL)
self.assertEqual(b.p.fisDens, b.p.rateFis / vfrac)
self.assertEqual(b.p.fisDensHom, b.p.rateFis)


def applyDummyFlux(r, ng=33):
Expand Down

0 comments on commit f8fb2cd

Please sign in to comment.