Skip to content

Commit

Permalink
Adding energy balance / global flux crumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Nov 29, 2023
1 parent 521fb7e commit e3019ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 7 additions & 2 deletions armi/physics/neutronics/globalFlux/globalFluxInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,13 @@ def interactEOC(self, cycle=None):
* units.ABS_REACTIVITY_TO_PCM
)

def _checkEnergyBalance(self):
"""Check that there is energy balance between the power generated and the specified power is the system."""
def checkEnergyBalance(self):
"""Check that there is energy balance between the power generated and the specified power.
.. impl:: Validate the energy generate matches user specifications.
:id: I_ARMI_FLUX_CHECK_POWER
:implements: R_ARMI_FLUX_CHECK_POWER
"""
powerGenerated = (
self.r.core.calcTotalParam(
"power", calcBasedOnFullObj=False, generationNum=2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ def test_getHistoryParams(self):
self.assertIn("detailedDpa", params)

def test_checkEnergyBalance(self):
"""
Test energy balance check.
"""Test energy balance check.
.. test:: Block-wise power is consistent with reactor data model power.
:id: T_ARMI_FLUX_CHECK_POWER
Expand All @@ -190,7 +189,7 @@ def test_checkEnergyBalance(self):
cs = settings.Settings()
_o, r = test_reactors.loadTestReactor()
gfi = MockGlobalFluxInterface(r, cs)
gfi._checkEnergyBalance()
gfi.checkEnergyBalance()


class TestGlobalFluxInterfaceWithExecuters(unittest.TestCase):
Expand Down

0 comments on commit e3019ea

Please sign in to comment.