Skip to content

Commit

Permalink
Add neutronics category to linPow parameter (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgjarrett committed Jan 25, 2023
1 parent 4699c86 commit 1feecc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion armi/physics/neutronics/parameters.py
Expand Up @@ -263,7 +263,10 @@ def mgFlux(self, value):
),
location=ParamLocation.AVERAGE,
default=0.0,
categories=[parameters.Category.detailedAxialExpansion],
categories=[
parameters.Category.detailedAxialExpansion,
parameters.Category.neutronics,
],
)

def linPowByPin(self, value):
Expand Down
7 changes: 6 additions & 1 deletion armi/reactor/converters/tests/test_uniformMesh.py
Expand Up @@ -424,12 +424,14 @@ def test_applyStateToOriginal(self):
b.p.fastFlux = 2.0
b.p.flux = 5.0
b.p.power = 5.0
b.p.linPow = 2.0

# set original parameters on pre-mapped core with non-uniform assemblies
# set new parameters on core with uniform assemblies (emulate a physics kernel)
self.converter.convert(self.r)
for b in self.converter.convReactor.core.getBlocks():
b.p.powerGamma = 0.5
b.p.powerNeutron = 0.5
b.p.linPow = 10.0
b.p.power = b.p.powerGamma + b.p.powerNeutron

# check integral and density params
Expand Down Expand Up @@ -458,6 +460,9 @@ def test_applyStateToOriginal(self):
self.assertNotEqual(b.p.powerNeutron, 0.5)
self.assertNotEqual(b.p.power, 1.0)

# has updated value
self.assertAlmostEqual(b.p.linPow, 10.0)

# equal because these are mapped
for expectedPower, expectedGammaPower, a in zip(
assemblyPowers, assemblyGammaPowers, self.r.core
Expand Down

0 comments on commit 1feecc8

Please sign in to comment.