Skip to content

Commit

Permalink
Moving hyper-specific TH parameters out of ARMI (#1001)
Browse files Browse the repository at this point in the history
After working with @andfranklin , I have determined that we should move the following 23 parameters out of ARMI and into this Plugin:

- pinPeakingStdDev
- TH0SigmaFuelCenterlineT
- TH0SigmaOutletT
- TH2SigmaFuelCenterlineT
- TH2SigmaOutletT
- TH3SigmaFuelCenterlineT
- TH3SigmaOutletT
- THaveCoolantVel
- THaveInletVel
- THaveOutletVel
- THcoldChannel
- THcoldChanTemp
- THcoldPin
- THdeltaPBundle
- THdeltaPFormLoss
- THdeltaPGrav
- THdeltaPNoGrav
- THhotPin
- THinletDynamicPressure
- THmaxCoolantVel
- THmixingLength
- THorificeSetting
- THpeakingStdDev
- THradialPeakingFactor
  • Loading branch information
john-science authored Dec 5, 2022
1 parent 359363d commit b1658e4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 172 deletions.
159 changes: 0 additions & 159 deletions armi/physics/thermalHydraulics/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,6 @@ def _getBlockParams():
with pDefs.createBuilder(
default=0.0, location=ParamLocation.AVERAGE, categories=["thermal hydraulics"]
) as pb:
pb.defParam(
"THaveInletVel",
units="m/s",
saveToDB=True,
description="Average fluid velocity taken at the inlet of the block.",
)

pb.defParam(
"THaveOutletVel",
units="m/s",
saveToDB=True,
description="Average fluid velocity taken at the outlet of the block.",
)

pb.defParam(
"THhotChannelCladMidwallT",
Expand All @@ -74,34 +61,6 @@ def _getBlockParams():
description="Film heat transfer coefficient for hot channel in the assembly.",
)

pb.defParam(
"THinletDynamicPressure",
units="Pa",
saveToDB=False,
description="Dynamic pressure drop component taken at the inlet of the block.",
)

pb.defParam(
"THmixingLength",
units=units.UNITLESS,
saveToDB=False,
description="Approximation of length for subchannel mixing in subchan model.",
)

pb.defParam(
"THpeakingStdDev",
units=units.UNITLESS,
saveToDB=False,
description="Standard deviation of pin peaking for modeling pin-level power in subchan.",
)

pb.defParam(
"THradialPeakingFactor",
units=units.UNITLESS,
saveToDB=False,
description="Approximation of radial peaking for modeling pin-level power in subchan.",
)

with pDefs.createBuilder(
default=None, saveToDB=True, categories=["thermal hydraulics"]
) as pb:
Expand Down Expand Up @@ -134,13 +93,6 @@ def _getBlockParams():
categories=["thInterface"],
)

pb.defParam(
"THdeltaPBundle",
units="Pa",
description="Pressure difference in a bundle, including contributions from friction, acceleration, and gravity",
categories=["thInterface"],
)

pb.defParam(
"TH0SigmaCladODT",
units=units.DEGC,
Expand Down Expand Up @@ -183,27 +135,6 @@ def _getBlockParams():
categories=["thInterface"],
)

pb.defParam(
"TH0SigmaFuelCenterlineT",
units=units.DEGC,
description="0-sigma fuel centerline temperature",
categories=["thInterface"],
)

pb.defParam(
"TH2SigmaFuelCenterlineT",
units=units.DEGC,
description="2-sigma fuel centerline temperature",
categories=["thInterface"],
)

pb.defParam(
"TH3SigmaFuelCenterlineT",
units=units.DEGC,
description="3-sigma fuel centerline temperature",
categories=["thInterface"],
)

pb.defParam(
"THdilationPressure",
units="Pa",
Expand All @@ -217,27 +148,6 @@ def _getBlockParams():
default=0.0, categories=["thInterface"], saveToDB=True
) as pb:

pb.defParam(
"TH0SigmaOutletT",
units=units.DEGC,
description="0-sigma clad outer diameter temperature of the hot pin",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"TH2SigmaOutletT",
units=units.DEGC,
description="2-sigma clad outer diameter temperature of the hot pin",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"TH3SigmaOutletT",
units=units.DEGC,
description="3-sigma clad outer diameter temperature of the hot pin",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THTfuelCL",
units=units.DEGC,
Expand Down Expand Up @@ -266,13 +176,6 @@ def _getBlockParams():
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THaveCoolantVel",
units="m/s",
description="Average of the inlet and outlet coolant velocities",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THaverageCladTemp",
units=units.DEGC,
Expand Down Expand Up @@ -323,27 +226,6 @@ def _getBlockParams():
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THdeltaPFormLoss",
units="Pa",
description="Pressure differences due to user input loss coefficeints",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THdeltaPGrav",
units="Pa",
description="hydrostatic pressure difference in a block",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THdeltaPNoGrav",
units="Pa",
description="Sum of the loss pressure drops due to friction, acceleration, and inlet + outlet",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THdeltaPTotal",
units="Pa",
Expand Down Expand Up @@ -379,20 +261,6 @@ def _getBlockParams():
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THmaxCoolantVel",
units="m/s",
description="The maximum outlet coolant velocity",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THorificeSetting",
units="Pa/(kg/s)**2",
description="A list of orifice settings corresponding to the assembly list",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THorificeZone",
units=units.UNITLESS,
Expand All @@ -418,38 +286,11 @@ def _getBlockParams():
location=ParamLocation.TOP | ParamLocation.EDGES,
)

pb.defParam(
"THcoldChanTemp",
units=units.DEGC,
description="Best estimate cold channel temperature",
location=ParamLocation.TOP,
)

pb.defParam(
"THcoldChannel",
units=units.UNITLESS,
description="Cold channel (lowest coolant dT) identifier",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THcoldPin",
units=units.UNITLESS,
description="Cold pin (lowest PCT) pin identifier",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THhotChannel",
units=units.UNITLESS,
description="Hot channel (highest coolant dT) identifier",
location=ParamLocation.AVERAGE,
)

pb.defParam(
"THhotPin",
units=units.UNITLESS,
description="Hot pin (highest PCT) pin identifier",
location=ParamLocation.AVERAGE,
)
return pDefs
7 changes: 0 additions & 7 deletions armi/reactor/assemblyParameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,6 @@ def _enforceNotesRestrictions(self, value):
categories=["broadcast"],
)

pb.defParam(
"THorificeSetting",
units="Pa/$(kg/s)^2$",
description="The ratio of pressure drop over mass flow rate squared, through an orifice",
default=None,
)

pb.defParam(
"THorificeZone",
units=None,
Expand Down
6 changes: 0 additions & 6 deletions armi/reactor/blockParameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,6 @@ def buGroupNum(self, buGroupNum): # pylint: disable=method-hidden
categories=[parameters.Category.retainOnReplacement],
)

pb.defParam(
"pinPeakingStdDev",
units="None",
description="Standard deviation of the pin peaking factors for the block",
)

with pDefs.createBuilder() as pb:

pb.defParam(
Expand Down

0 comments on commit b1658e4

Please sign in to comment.