Source code documentation for MocDown extensions
RbwrTh
RbwrTh.py is a MocDown external library. It modifies the default MocDown coolant update calculation, fuel processing, and cycle multiplication factor methods for simulation of the RBWR-Th core design.
-
class RbwrTh.BoilingCalculation(cellNumbers, cellNumber2PreviousMassDensity, cellNumber2MassDensity, axialPowers, axialQualitys, axialVoidFractions, finePositionCPRs, minimumCriticalPowerRatio, minimumCriticalPowerRatioQuality, minimumCriticalPowerRatioLocation, criticalPowerRatioLimit, flowLengths, axialPressureDrops, transportOutputFile)[source]
Coolant density calculation for a single boiling channel.
-
GetCellNumberAccumulatedFlowLength(cellNumber)[source]
Return accumulated active length of a cell.
-
GetCellNumberFlowLength(cellNumber)[source]
Return active length of a cell.
-
GetCellNumberLinearHeatRate(cellNumber)[source]
Return linear heat rate for a cell.
-
GetCellNumberMassDensity(cellNumber)[source]
Return current mass density for a cell.
-
GetCellNumberPressureDrop(cellNumber)[source]
Return pressure drop over a cell.
-
GetCellNumberPreviousMassDensity(cellNumber)[source]
Return previous mass density for a cell.
-
GetCellNumberQuality(cellNumber)[source]
Return quality for a cell.
-
GetCellNumberThermalPower(cellNumber)[source]
Return thermal power for a cell.
-
GetCellNumberVoidFraction(cellNumber)[source]
Return void fraction for a cell.
-
GetCellNumbers()[source]
Return cell numbers.
-
GetCriticalPowerRatioLimit()[source]
Return critical power ratio limit.
-
GetFinePositionCPRs()[source]
Return list of critical power ratios.
-
GetMinimumCriticalPowerRatio()[source]
Return magnitude of minimum critical power ratio.
-
GetMinimumCriticalPowerRatioLocation()[source]
Return location of minimum critical power ratio.
-
GetMinimumCriticalPowerRatioQuality()[source]
Return quality of minimum critical power ratio.
-
GetMultiplicationFactor()[source]
Return multiplication factor.
-
GetMultiplicationFactorSigma()[source]
Return multiplication factor standard deviation.
-
GetOutletCellNumber()[source]
Return outlet cell number.
-
GetPressureDrop()[source]
Return total pressure drop.
-
GetUpdateCellNumbers()[source]
Return cells to be updated.
-
RbwrTh.CriticalPowerRatioMITCISE4(steam, axialPowers, flowLengths, endIndex)[source]
Perform MIT-modified CISE-4 critical power ratio correlation.
-
RbwrTh.GetLibraryParametersConverters(self)[source]
Return default values and parsing functions for RBWR-Th parameters.
-
RbwrTh.MultiBatchCoreKeff(times, values, order=4, weights=None, timeSteps=500, batches=5)
Perform a harmonic mean for a time-series.
-
RbwrTh.MultiBatchCoreKeffEoc(self)[source]
Return batch-averaged EOC multiplication factor.
-
RbwrTh.MultiBatchCoreKeffEocCycleStretch(times, values, order=4, minimum=0.0, maximum=2.0, number=500)[source]
Return batch-averaged EOC multiplication factors for many batch lengths.
-
RbwrTh.MultiBatchHarmonicMean(times, values, order=4, weights=None, timeSteps=500, batches=5)[source]
Perform a harmonic mean for a time-series.
-
RbwrTh.MultiplicationFactor(self)
Return batch-averaged EOC multiplication factor.
-
RbwrTh.PolynomialInterpolation(x, xp, yp, order)[source]
Perform polynomial interpolation.
-
RbwrTh.PressureDropEPRI(steam, quality, voidFraction, massDensity, flowLengths)[source]
EPRI pressure drop correlation.
-
RbwrTh.PressureDropTwoPhase(steam, quality, voidFraction, massDensity, flowLengths, twoPhaseFrictionMultiplier)[source]
Perform generic two-phase pressure drop correlation.
-
RbwrTh.ProcessFuelOffline(bocFileName, eocFileName, newFileName)[source]
Offline fuel processing helper.
-
RbwrTh.RbwrThBoilingCalculation(self, transportOutputFile)[source]
Override coolant density calculation.
-
RbwrTh.RbwrThRecycle(bocTransportFile, eocTransportFile)[source]
Override fuel processing.
-
class RbwrTh.Steam(pressure, temperature, massFlowRate, heatedDiameter, hydraulicDiameter, flowArea)[source]
Steam thermodynamic properties.
-
RbwrTh.UpdateCoolantDensitys(self, transportOutputFile)
Override coolant density calculation.
-
RbwrTh.UpdateCoolantDensitysOffline()[source]
Offline coolant density update helper.
-
RbwrTh.VoidFractionBaroczy(steam, quality)[source]
Perform Baroczy void fraction correlation (Carey, p.512).
-
RbwrTh.VoidFractionBestion(steam, quality)[source]
Perform Bestion void fraction correlation.
-
RbwrTh.VoidFractionChexalLellouche(steam, quality)[source]
Perform Chexal-Lellouche void fraction correlation.
-
RbwrTh.VoidFractionDriftFlux(x, rhol, rhov, G, C0, Vvj)[source]
Perform generic drift-flux void fraction correlation.
-
RbwrTh.VoidFractionGeneric(x, rhol, rhov, mul, muv, Bb, n1, n2, n3)[source]
Retrurn generic void fraction correlation (Carey, p.512).
-
RbwrTh.VoidFractionHomogeneous(steam, quality)[source]
Perform homogeneous void fraction correlation (Carey, p.512).
-
RbwrTh.VoidFractionLM(steam, quality)[source]
Perform Lockhart and Martinelli void fraction correlation (Carey, p.512).
-
RbwrTh.VoidFractionLPG(steam, quality)[source]
Peform Liao/Parlos/Griffith (LPG) void fraction correlation.
-
RbwrTh.VoidFractionRELAP(steam, quality)
Perform Chexal-Lellouche void fraction correlation.
-
RbwrTh.VoidFractionThom(steam, quality)[source]
Perform Thom void fraction correlation (Carey, p.512).
-
RbwrTh.VoidFractionWallis(steam, quality)[source]
Perform Wallis void fraction correlation (Carey, p.512).
-
RbwrTh.VoidFractionZivi(steam, quality)[source]
Perform Zivi void fraction correlation (Carey, p.512).
RbwrAc
RbwrAc.py is a MocDown external library which serves as an extension to RbwrTh.py. Only the fuel processing method is modified.
-
RbwrAc.ProcessFuelOffline(bocFileName, eocFileName, newFileName)[source]
Offline fuel processing helper.
-
RbwrAc.RbwrACRecycle(bocTransportFile, eocTransportFile)[source]
Override fuel processing.
PECS-Check
PecsCheck.py is a benchmark for code-to-code comparison with PECS. It inherits MocDown and modifies some depletion and recycling methods to emulate the PECS simulation.
-
PecsCheck.GetZa2Moles(self, cellNumbers=None, endOfCycle=False)[source]
Override dicionary mapping isotope to moles.
-
class PecsCheck.PECSCalculation(arguments)[source]
PECS-syle replacement for RecycleCalculation.
-
Equilibrate()[source]
Execute PECS-style recycling.
-
GetBaseName()[source]
Return base of MCNP input filename.
-
GetDisplayFiles()[source]
Return if file operations are verbose.
-
GetIsPickleTransmute()[source]
PECS-style calculations only transmute!.
-
GetOriginalPickle()[source]
Return initial pickle.
-
GetOriginalTransport()[source]
Return initial MCNP input file.
-
GetRecycleString()[source]
Return string for current PECS-style recycling step.
-
Populate(arguments)[source]
Populate.
-
class PecsCheck.PECSDepletion(originalTransportFile, depletionCalculationPickle, recycleIndex)[source]
PECS-syle replacement for DepletionCalculation.
-
Deplete()[source]
Execute PECS-style depletion.
-
GetCellNumber2Micros()[source]
Return dictionary mapping cell to one-group microscopic cross-sections for current depletion step.
-
GetCellNumber2Zam2Moles()[source]
Return dictionary mapping cell to isotope to moles for current depletion step.
-
GetCellNumberBurnRate(cellNumber)[source]
Return cell flux or power for current depletion step.
-
GetCellNumberMicros(cellNumber)[source]
Return one-group microscopic cross-sections of a cell for this depletion step.
-
GetCellNumberVolume(cellNumber)[source]
Return volume of a cell.
-
GetCellNumberZam2Moles(cellNumber)[source]
Return dictionary mapping isotope to moles of a cell for this depletion step.
-
GetDefaultPhotonLibraryFileName()[source]
Return ORIGEN2 default photon library filename.
-
GetDisplayFiles()[source]
Return if file operations are verbose.
-
GetIsPickleTransmute()[source]
Return if current depletion step is to be transmuted using pickles.
-
GetParameters()[source]
Return mocdown input file parameters.
-
GetPickle()[source]
Return depletion calculation pickle.
-
GetPickleFileName()[source]
Return depletion calculation pickle filename.
-
GetRecycleIndex()[source]
Return index of current recycling step.
-
PrepareDepletion(depletionCalculationPickle)[source]
Populate default PECS-style depletion parameters.
-
PrepareTransmute(cellNumber, tmpDir='./')[source]
Prepare transmute calculation.
-
ProcessFuel(previousPickle)
Override fuel processing.
-
Transmute(cellNumber, tmpDir='./', currentDir='')[source]
Execute ORIGEN2.
-
TransmuteThread(cellNumber, currentDir)[source]
Execute transmute concurrently for a cell.
-
TransmuteThreads(currentDir)[source]
Execute transmute concurrently for each cell.
-
PecsCheck.ProcessFuel(self, previousPickle)[source]
Override fuel processing.