Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix assemNum parameter for uniform mesh reactor. #1398

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion armi/reactor/converters/uniformMesh.py
Original file line number Diff line number Diff line change
@@ -434,7 +434,6 @@ def convert(self, r=None):
includePinCoordinates=self.includePinCoordinates,
)
homogAssem.spatialLocator = assem.spatialLocator
homogAssem.p.assemNum = assem.p.assemNum

# Remove this assembly from the core and add it to the temporary storage
# so that it can be replaced with the homogenized assembly. Note that we
@@ -505,6 +504,7 @@ def initNewReactor(sourceReactor, cs):
coreDesign.construct(cs, bp, newReactor, loadAssems=False)
newReactor.p.cycle = sourceReactor.p.cycle
newReactor.p.timeNode = sourceReactor.p.timeNode
newReactor.p.maxAssemNum = sourceReactor.p.maxAssemNum
newReactor.core.p.coupledIteration = sourceReactor.core.p.coupledIteration
newReactor.core.lib = sourceReactor.core.lib
newReactor.core.setPitchUniform(sourceReactor.core.getAssemblyPitch())
@@ -628,6 +628,7 @@ def makeAssemWithUniformMesh(
between two assemblies.
"""
newAssem = UniformMeshGeometryConverter._createNewAssembly(sourceAssem)
newAssem.p.assemNum = sourceAssem.p.assemNum
runLog.debug(f"Creating a uniform mesh of {newAssem}")
bottom = 0.0