Skip to content

Commit

Permalink
Fixing units for flux parameters (#1716)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science authored May 31, 2024
1 parent 86247a9 commit 9ebfe34
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions armi/physics/neutronics/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _getNeutronicsBlockParams():

pb.defParam(
"mgFluxGamma",
units=f"{units.GRAMS}*{units.CM}/{units.SECONDS}",
units=f"#*{units.CM}/{units.SECONDS}",
description="multigroup gamma flux",
location=ParamLocation.VOLUME_INTEGRATED,
saveToDB=True,
Expand All @@ -110,7 +110,7 @@ def _getNeutronicsBlockParams():

pb.defParam(
"extSrc",
units=f"{units.GRAMS}/{units.CM}^3/{units.SECONDS}",
units=f"#/{units.CM}^3/{units.SECONDS}",
description="multigroup external source",
location=ParamLocation.AVERAGE,
saveToDB=False,
Expand All @@ -120,7 +120,7 @@ def _getNeutronicsBlockParams():

pb.defParam(
"mgGammaSrc",
units=f"{units.GRAMS}/{units.CM}^3/{units.SECONDS}",
units=f"#/{units.CM}^3/{units.SECONDS}",
description="multigroup gamma source",
location=ParamLocation.AVERAGE,
saveToDB=True,
Expand All @@ -133,7 +133,7 @@ def _getNeutronicsBlockParams():

pb.defParam(
"gammaSrc",
units=f"{units.GRAMS}/{units.CM}^3/{units.SECONDS}",
units=f"#/{units.CM}^3/{units.SECONDS}",
description="gamma source",
location=ParamLocation.AVERAGE,
saveToDB=True,
Expand Down Expand Up @@ -183,7 +183,7 @@ def _getNeutronicsBlockParams():

pb.defParam(
"pinMgFluxesGamma",
units=f"{units.GRAMS}/{units.CM}^2/{units.SECONDS}",
units=f"#/{units.CM}^2/{units.SECONDS}",
description="should be a blank 3-D array, but re-defined later (ng x nPins x nAxialSegments)",
categories=[parameters.Category.pinQuantities, parameters.Category.gamma],
saveToDB=False,
Expand Down Expand Up @@ -528,7 +528,7 @@ def _getNeutronicsBlockParams():

pb.defParam(
"fluxGamma",
units=f"{units.GRAMS}/{units.CM}^2/{units.SECONDS}",
units=f"#/{units.CM}^2/{units.SECONDS}",
description="Gamma scalar flux",
categories=[
parameters.Category.retainOnReplacement,
Expand Down

0 comments on commit 9ebfe34

Please sign in to comment.