Skip to content

Commit 49f357b

Browse files
authored
Calculate b.p.puFrac on process loading. (#1165)
1 parent 9153997 commit 49f357b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

armi/bookkeeping/db/tests/test_comparedb3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_compareDatabaseSim(self):
178178
dbs[1]._fullPath,
179179
timestepCompare=[(0, 0), (0, 1)],
180180
)
181-
self.assertEqual(len(diffs.diffs), 462)
181+
self.assertEqual(len(diffs.diffs), 465)
182182
# Cycle length is only diff (x3)
183183
self.assertEqual(diffs.nDiffs(), 3)
184184

armi/reactor/reactors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,11 @@ def summarizeReactorStats(self):
375375
)
376376

377377
def setBlockMassParams(self):
378-
"""Set the parameters kgHM and kgFis for each block"""
378+
"""Set the parameters kgHM and kgFis for each block and calculate Pu fraction"""
379379
for b in self.getBlocks():
380380
b.p.kgHM = b.getHMMass() / units.G_PER_KG
381381
b.p.kgFis = b.getFissileMass() / units.G_PER_KG
382+
b.p.puFrac = b.getPuN() / b.p.nHMAtBOL if b.p.nHMAtBOL > 0.0 else 0.0
382383

383384
def getScalarEvolution(self, key):
384385
return self.scalarVals[key]

doc/release/0.2.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ What's new in ARMI
3636
#. Bug fix for Component.density. (`PR#1149 https://github.com/terrapower/armi/pull/1149`_)
3737
#. Calculate block kgHM and kgFis on core loading and after shuffling. (`PR#1136 https://github.com/terrapower/armi/pull/1136`_)
3838
#. Update point DPAs along with block aveage DPA values. (`PR#1156 https://github.com/terrapower/armi/pull/1156`_)
39+
#. Calculate block PuFrac on core loading and after shuffling. (`PR#1165 https://github.com/terrapower/armi/pull/1165`_)
3940

4041
Bug fixes
4142
---------

0 commit comments

Comments
 (0)