body_hash
stringlengths
64
64
body
stringlengths
23
109k
docstring
stringlengths
1
57k
path
stringlengths
4
198
name
stringlengths
1
115
repository_name
stringlengths
7
111
repository_stars
float64
0
191k
lang
stringclasses
1 value
body_without_docstring
stringlengths
14
108k
unified
stringlengths
45
133k
c434831925a11bc76229d18427690b382d415ef3ba60984b314f2bd212aad0fd
def getSmearDensity(self, cold=True): '\n Compute the smear density of this block.\n\n Notes\n -----\n 1 - Smear density is the area of the fuel divided by the area of the space\n available for fuel inside the cladding. Other space filled with solid\n materials is n...
Compute the smear density of this block. Notes ----- 1 - Smear density is the area of the fuel divided by the area of the space available for fuel inside the cladding. Other space filled with solid materials is not considered available. If all the area is fuel, it has 100% smear density. Lower smear densit...
armi/reactor/blocks.py
getSmearDensity
crisobg1/armi
1
python
def getSmearDensity(self, cold=True): '\n Compute the smear density of this block.\n\n Notes\n -----\n 1 - Smear density is the area of the fuel divided by the area of the space\n available for fuel inside the cladding. Other space filled with solid\n materials is n...
def getSmearDensity(self, cold=True): '\n Compute the smear density of this block.\n\n Notes\n -----\n 1 - Smear density is the area of the fuel divided by the area of the space\n available for fuel inside the cladding. Other space filled with solid\n materials is n...
123daabf8466958782b50c7fd44055abd73e015ce166f972336d39c518322f08
def getTemperature(self, key, sigma=0): '\n Return the best temperature for key in degrees C.\n\n Uses thInterface values if they exist\n\n Parameters\n ----------\n key : str\n a key identifying the object we want the temperature of. Options include\n cladOD...
Return the best temperature for key in degrees C. Uses thInterface values if they exist Parameters ---------- key : str a key identifying the object we want the temperature of. Options include cladOD, cladID, sigma : int Specification of which sigma-value we want. 0-sigma is nominal, 1-sigma is + 1 std.d...
armi/reactor/blocks.py
getTemperature
crisobg1/armi
1
python
def getTemperature(self, key, sigma=0): '\n Return the best temperature for key in degrees C.\n\n Uses thInterface values if they exist\n\n Parameters\n ----------\n key : str\n a key identifying the object we want the temperature of. Options include\n cladOD...
def getTemperature(self, key, sigma=0): '\n Return the best temperature for key in degrees C.\n\n Uses thInterface values if they exist\n\n Parameters\n ----------\n key : str\n a key identifying the object we want the temperature of. Options include\n cladOD...
3e71a8bbd9873ae6e7db0df1b95028ed6e648cb3b7d3524ec38fb52a2606c563
def getEnrichment(self): '\n Return the mass enrichment of the fuel in the block.\n\n If multiple fuel components exist, this returns the average enrichment.\n ' enrichment = 0.0 if self.hasFlags(Flags.FUEL): fuels = self.getComponents(Flags.FUEL) if (len(fuels) == 1): ...
Return the mass enrichment of the fuel in the block. If multiple fuel components exist, this returns the average enrichment.
armi/reactor/blocks.py
getEnrichment
crisobg1/armi
1
python
def getEnrichment(self): '\n Return the mass enrichment of the fuel in the block.\n\n If multiple fuel components exist, this returns the average enrichment.\n ' enrichment = 0.0 if self.hasFlags(Flags.FUEL): fuels = self.getComponents(Flags.FUEL) if (len(fuels) == 1): ...
def getEnrichment(self): '\n Return the mass enrichment of the fuel in the block.\n\n If multiple fuel components exist, this returns the average enrichment.\n ' enrichment = 0.0 if self.hasFlags(Flags.FUEL): fuels = self.getComponents(Flags.FUEL) if (len(fuels) == 1): ...
733ba42cf34042936d03c86a63df50c36836cce1c31595c2a71141961c25e4e8
def getMgFlux(self, adjoint=False, average=False, volume=None, gamma=False): "\n Returns the multigroup neutron flux in [n/cm^2/s]\n\n The first entry is the first energy group (fastest neutrons). Each additional\n group is the next energy group, as set in the ISOTXS library.\n\n It is s...
Returns the multigroup neutron flux in [n/cm^2/s] The first entry is the first energy group (fastest neutrons). Each additional group is the next energy group, as set in the ISOTXS library. It is stored integrated over volume on self.p.mgFlux Parameters ---------- adjoint : bool, optional Return adjoint flux ins...
armi/reactor/blocks.py
getMgFlux
crisobg1/armi
1
python
def getMgFlux(self, adjoint=False, average=False, volume=None, gamma=False): "\n Returns the multigroup neutron flux in [n/cm^2/s]\n\n The first entry is the first energy group (fastest neutrons). Each additional\n group is the next energy group, as set in the ISOTXS library.\n\n It is s...
def getMgFlux(self, adjoint=False, average=False, volume=None, gamma=False): "\n Returns the multigroup neutron flux in [n/cm^2/s]\n\n The first entry is the first energy group (fastest neutrons). Each additional\n group is the next energy group, as set in the ISOTXS library.\n\n It is s...
2b78553e69faf8c41a5d62160bd0616bdec8e0b57dd618c9c567eeab1c30d9ee
def setPinMgFluxes(self, fluxes, numPins, adjoint=False, gamma=False): '\n Store the pin-detailed multi-group neutron flux\n\n The [g][i] indexing is transposed to be a list of lists, one for each pin. This makes it\n simple to do depletion for each pin, etc.\n\n Parameters\n ----...
Store the pin-detailed multi-group neutron flux The [g][i] indexing is transposed to be a list of lists, one for each pin. This makes it simple to do depletion for each pin, etc. Parameters ---------- fluxes : 2-D list of floats The block-level pin multigroup fluxes. fluxes[g][i] represents the flux in group g fo...
armi/reactor/blocks.py
setPinMgFluxes
crisobg1/armi
1
python
def setPinMgFluxes(self, fluxes, numPins, adjoint=False, gamma=False): '\n Store the pin-detailed multi-group neutron flux\n\n The [g][i] indexing is transposed to be a list of lists, one for each pin. This makes it\n simple to do depletion for each pin, etc.\n\n Parameters\n ----...
def setPinMgFluxes(self, fluxes, numPins, adjoint=False, gamma=False): '\n Store the pin-detailed multi-group neutron flux\n\n The [g][i] indexing is transposed to be a list of lists, one for each pin. This makes it\n simple to do depletion for each pin, etc.\n\n Parameters\n ----...
fcaee4eb8651b24168f4f04bcb5fb76f945bcd8c12fc808b355ccf11dfa3c094
def getPowerPinName(self): "\n Determine the component name where the power is being produced.\n\n Returns\n -------\n powerPin : str\n The name of the pin that is producing power, if any. could be 'fuel' or 'control', or\n anything else.\n\n Notes\n -...
Determine the component name where the power is being produced. Returns ------- powerPin : str The name of the pin that is producing power, if any. could be 'fuel' or 'control', or anything else. Notes ----- If there is fuel and control, this will return fuel based on hard-coded priorities. Examples --------...
armi/reactor/blocks.py
getPowerPinName
crisobg1/armi
1
python
def getPowerPinName(self): "\n Determine the component name where the power is being produced.\n\n Returns\n -------\n powerPin : str\n The name of the pin that is producing power, if any. could be 'fuel' or 'control', or\n anything else.\n\n Notes\n -...
def getPowerPinName(self): "\n Determine the component name where the power is being produced.\n\n Returns\n -------\n powerPin : str\n The name of the pin that is producing power, if any. could be 'fuel' or 'control', or\n anything else.\n\n Notes\n -...
0a08d13dbf9ab8656dc47e7ea4ea315823697cac0088bb02e94b570635e395ac
def getMicroSuffix(self): "\n Returns the microscopic library suffix (e.g. 'AB') for this block.\n\n DIF3D and MC2 are limited to 6 character nuclide labels. ARMI by convention uses\n the first 4 for nuclide name (e.g. U235, PU39, etc.) and then uses the 5th\n character for cross-section...
Returns the microscopic library suffix (e.g. 'AB') for this block. DIF3D and MC2 are limited to 6 character nuclide labels. ARMI by convention uses the first 4 for nuclide name (e.g. U235, PU39, etc.) and then uses the 5th character for cross-section type and the 6th for burnup group. This allows a variety of XS sets ...
armi/reactor/blocks.py
getMicroSuffix
crisobg1/armi
1
python
def getMicroSuffix(self): "\n Returns the microscopic library suffix (e.g. 'AB') for this block.\n\n DIF3D and MC2 are limited to 6 character nuclide labels. ARMI by convention uses\n the first 4 for nuclide name (e.g. U235, PU39, etc.) and then uses the 5th\n character for cross-section...
def getMicroSuffix(self): "\n Returns the microscopic library suffix (e.g. 'AB') for this block.\n\n DIF3D and MC2 are limited to 6 character nuclide labels. ARMI by convention uses\n the first 4 for nuclide name (e.g. U235, PU39, etc.) and then uses the 5th\n character for cross-section...
b9d098843a2009f48f366c721263fc74c481addbba20e3a3e0a9b9ac4c0a9239
def setNumberDensity(self, nucName, newHomogNDens): "\n Adds an isotope to the material or changes an existing isotope's number density\n\n Parameters\n ----------\n nuc : str\n a nuclide name like U235, PU240, FE\n newHomogNDens : float\n number density to s...
Adds an isotope to the material or changes an existing isotope's number density Parameters ---------- nuc : str a nuclide name like U235, PU240, FE newHomogNDens : float number density to set in units of atoms/barn-cm, which are equal to atoms/cm^3*1e24 See Also -------- getNumberDensity : gets the densit...
armi/reactor/blocks.py
setNumberDensity
crisobg1/armi
1
python
def setNumberDensity(self, nucName, newHomogNDens): "\n Adds an isotope to the material or changes an existing isotope's number density\n\n Parameters\n ----------\n nuc : str\n a nuclide name like U235, PU240, FE\n newHomogNDens : float\n number density to s...
def setNumberDensity(self, nucName, newHomogNDens): "\n Adds an isotope to the material or changes an existing isotope's number density\n\n Parameters\n ----------\n nuc : str\n a nuclide name like U235, PU240, FE\n newHomogNDens : float\n number density to s...
f9d8fb07a496a7ca2a5e8e28f02f5e7088e75f3fd65fbe3a8a3e3c5c282374ae
def setNumberDensities(self, numberDensities): '\n Update number densities.\n\n Any nuclide in the block but not in numberDensities will be set to zero.\n\n Special behavior for blocks: update block-level params for DB viewing/loading.\n ' composites.Composite.setNumberDensities(self...
Update number densities. Any nuclide in the block but not in numberDensities will be set to zero. Special behavior for blocks: update block-level params for DB viewing/loading.
armi/reactor/blocks.py
setNumberDensities
crisobg1/armi
1
python
def setNumberDensities(self, numberDensities): '\n Update number densities.\n\n Any nuclide in the block but not in numberDensities will be set to zero.\n\n Special behavior for blocks: update block-level params for DB viewing/loading.\n ' composites.Composite.setNumberDensities(self...
def setNumberDensities(self, numberDensities): '\n Update number densities.\n\n Any nuclide in the block but not in numberDensities will be set to zero.\n\n Special behavior for blocks: update block-level params for DB viewing/loading.\n ' composites.Composite.setNumberDensities(self...
161f466132e892bdb6f5f2fce6b9b15a131d893dbc0ea6459dd0bf1eeb36d935
def updateNumberDensities(self, numberDensities): 'Set one or more multiple number densities. Leaves unlisted number densities alone.' composites.Composite.updateNumberDensities(self, numberDensities) for (nucName, ndens) in numberDensities.items(): self.setNDensParam(nucName, ndens)
Set one or more multiple number densities. Leaves unlisted number densities alone.
armi/reactor/blocks.py
updateNumberDensities
crisobg1/armi
1
python
def updateNumberDensities(self, numberDensities): composites.Composite.updateNumberDensities(self, numberDensities) for (nucName, ndens) in numberDensities.items(): self.setNDensParam(nucName, ndens)
def updateNumberDensities(self, numberDensities): composites.Composite.updateNumberDensities(self, numberDensities) for (nucName, ndens) in numberDensities.items(): self.setNDensParam(nucName, ndens)<|docstring|>Set one or more multiple number densities. Leaves unlisted number densities alone.<|end...
9b10ce226ba1c9309e7e78934c1c28080de4f6db0c1b7890a21b369c7922c478
def buildNumberDensityParams(self, nucNames=None): "\n Copy homogenized density onto self.p for storing in the DB.\n\n Notes\n -----\n Recall that actual number densities are not the same as the number\n density params (they're really stored on the components). These\n para...
Copy homogenized density onto self.p for storing in the DB. Notes ----- Recall that actual number densities are not the same as the number density params (they're really stored on the components). These params are still useful for plotting block-level number density information in database viewers, etc.
armi/reactor/blocks.py
buildNumberDensityParams
crisobg1/armi
1
python
def buildNumberDensityParams(self, nucNames=None): "\n Copy homogenized density onto self.p for storing in the DB.\n\n Notes\n -----\n Recall that actual number densities are not the same as the number\n density params (they're really stored on the components). These\n para...
def buildNumberDensityParams(self, nucNames=None): "\n Copy homogenized density onto self.p for storing in the DB.\n\n Notes\n -----\n Recall that actual number densities are not the same as the number\n density params (they're really stored on the components). These\n para...
ad6e19f5cd9aa0cb45e571044c5187103bda25848580c1d3387a4a8f8a184806
def setNDensParam(self, nucName, ndens): '\n Set a block-level param with the homog. number density of a nuclide.\n\n This can be read by the database in restart runs.\n ' n = nuclideBases.byName[nucName] self.p[n.getDatabaseName()] = ndens
Set a block-level param with the homog. number density of a nuclide. This can be read by the database in restart runs.
armi/reactor/blocks.py
setNDensParam
crisobg1/armi
1
python
def setNDensParam(self, nucName, ndens): '\n Set a block-level param with the homog. number density of a nuclide.\n\n This can be read by the database in restart runs.\n ' n = nuclideBases.byName[nucName] self.p[n.getDatabaseName()] = ndens
def setNDensParam(self, nucName, ndens): '\n Set a block-level param with the homog. number density of a nuclide.\n\n This can be read by the database in restart runs.\n ' n = nuclideBases.byName[nucName] self.p[n.getDatabaseName()] = ndens<|docstring|>Set a block-level param with the h...
85266ed3801f55c8e9d8040adc2d41fb39c483ee2ff67084f182f9d503e118f5
def setMass(self, nucName, mass, **kwargs): '\n Sets the mass in a block and adjusts the density of the nuclides in the block.\n\n Parameters\n ----------\n nucName : str\n Nuclide name to set mass of\n mass : float\n Mass in grams to set.\n\n ' d ...
Sets the mass in a block and adjusts the density of the nuclides in the block. Parameters ---------- nucName : str Nuclide name to set mass of mass : float Mass in grams to set.
armi/reactor/blocks.py
setMass
crisobg1/armi
1
python
def setMass(self, nucName, mass, **kwargs): '\n Sets the mass in a block and adjusts the density of the nuclides in the block.\n\n Parameters\n ----------\n nucName : str\n Nuclide name to set mass of\n mass : float\n Mass in grams to set.\n\n ' d ...
def setMass(self, nucName, mass, **kwargs): '\n Sets the mass in a block and adjusts the density of the nuclides in the block.\n\n Parameters\n ----------\n nucName : str\n Nuclide name to set mass of\n mass : float\n Mass in grams to set.\n\n ' d ...
0bbd32679a2a31ca149c5cfce7fb67798fc991925e824304a52067cad853a25f
def getHeight(self): 'Return the block height.' return self.p.height
Return the block height.
armi/reactor/blocks.py
getHeight
crisobg1/armi
1
python
def getHeight(self): return self.p.height
def getHeight(self): return self.p.height<|docstring|>Return the block height.<|endoftext|>
6302bc958776a2df72a3a53b72532f737ad8eff1ad3893653498ab7c4532e231
def setHeight(self, modifiedHeight, conserveMass=False, adjustList=None): '\n Set a new height of the block.\n\n Parameters\n ----------\n modifiedHeight : float\n The height of the block in cm\n\n conserveMass : bool, optional\n Conserve mass of nuclides in ...
Set a new height of the block. Parameters ---------- modifiedHeight : float The height of the block in cm conserveMass : bool, optional Conserve mass of nuclides in ``adjustList``. adjustList : list, optional Nuclides that will be conserved in conserving mass in the block. It is recommended to pass a lis...
armi/reactor/blocks.py
setHeight
crisobg1/armi
1
python
def setHeight(self, modifiedHeight, conserveMass=False, adjustList=None): '\n Set a new height of the block.\n\n Parameters\n ----------\n modifiedHeight : float\n The height of the block in cm\n\n conserveMass : bool, optional\n Conserve mass of nuclides in ...
def setHeight(self, modifiedHeight, conserveMass=False, adjustList=None): '\n Set a new height of the block.\n\n Parameters\n ----------\n modifiedHeight : float\n The height of the block in cm\n\n conserveMass : bool, optional\n Conserve mass of nuclides in ...
8ee0e9652389411e17dd6e193ab98765f7fd5c9655ec23352a631493daad616c
def getWettedPerimeter(self): 'Return wetted perimeter per pin with duct averaged in.' duct = self.getComponent(Flags.DUCT) clad = self.getComponent(Flags.CLAD) wire = self.getComponent(Flags.WIRE) if (not (duct and clad)): raise ValueError('Wetted perimeter cannot be computed in {}. No duct...
Return wetted perimeter per pin with duct averaged in.
armi/reactor/blocks.py
getWettedPerimeter
crisobg1/armi
1
python
def getWettedPerimeter(self): duct = self.getComponent(Flags.DUCT) clad = self.getComponent(Flags.CLAD) wire = self.getComponent(Flags.WIRE) if (not (duct and clad)): raise ValueError('Wetted perimeter cannot be computed in {}. No duct and clad components exist.'.format(self)) return ((...
def getWettedPerimeter(self): duct = self.getComponent(Flags.DUCT) clad = self.getComponent(Flags.CLAD) wire = self.getComponent(Flags.WIRE) if (not (duct and clad)): raise ValueError('Wetted perimeter cannot be computed in {}. No duct and clad components exist.'.format(self)) return ((...
69861b0e9a16d7cc76e30d115819ac5be5e00c18fca0adced8f3bee127f43366
def getFlowAreaPerPin(self): '\n Return the flowing coolant area in cm^2.\n\n NumPins looks for max number of fuel, clad, control, etc.\n See Also\n --------\n getNumPins : figures out numPins.\n ' numPins = self.getNumPins() try: return (self.getComponent(...
Return the flowing coolant area in cm^2. NumPins looks for max number of fuel, clad, control, etc. See Also -------- getNumPins : figures out numPins.
armi/reactor/blocks.py
getFlowAreaPerPin
crisobg1/armi
1
python
def getFlowAreaPerPin(self): '\n Return the flowing coolant area in cm^2.\n\n NumPins looks for max number of fuel, clad, control, etc.\n See Also\n --------\n getNumPins : figures out numPins.\n ' numPins = self.getNumPins() try: return (self.getComponent(...
def getFlowAreaPerPin(self): '\n Return the flowing coolant area in cm^2.\n\n NumPins looks for max number of fuel, clad, control, etc.\n See Also\n --------\n getNumPins : figures out numPins.\n ' numPins = self.getNumPins() try: return (self.getComponent(...
3843060d962400f20f74d6113f093610abab3ebaf5dcfbe0dc104aab4e4aee2f
def getHydraulicDiameter(self): '\n Return the hydraulic diameter in this block in cm.\n\n Hydraulic diameter is 4A/P where A is the flow area and P is the wetted perimeter.\n In a hex assembly, the wetted perimeter includes the cladding, the wire wrap, and the\n inside of the duct. The ...
Return the hydraulic diameter in this block in cm. Hydraulic diameter is 4A/P where A is the flow area and P is the wetted perimeter. In a hex assembly, the wetted perimeter includes the cladding, the wire wrap, and the inside of the duct. The flow area is the inner area of the duct minus the area of the pins and the ...
armi/reactor/blocks.py
getHydraulicDiameter
crisobg1/armi
1
python
def getHydraulicDiameter(self): '\n Return the hydraulic diameter in this block in cm.\n\n Hydraulic diameter is 4A/P where A is the flow area and P is the wetted perimeter.\n In a hex assembly, the wetted perimeter includes the cladding, the wire wrap, and the\n inside of the duct. The ...
def getHydraulicDiameter(self): '\n Return the hydraulic diameter in this block in cm.\n\n Hydraulic diameter is 4A/P where A is the flow area and P is the wetted perimeter.\n In a hex assembly, the wetted perimeter includes the cladding, the wire wrap, and the\n inside of the duct. The ...
70a1c8fe7bcba3f447e98593c6b529014bcef388cd13f0581872d0cde61324a7
def adjustUEnrich(self, newEnrich): '\n Adjust U-235/U-238 mass ratio to a mass enrichment\n\n Parameters\n ----------\n newEnrich : float\n New U-235 enrichment in mass fraction\n\n completeInitialLoading must be run because adjusting the enrichment actually\n c...
Adjust U-235/U-238 mass ratio to a mass enrichment Parameters ---------- newEnrich : float New U-235 enrichment in mass fraction completeInitialLoading must be run because adjusting the enrichment actually changes the mass slightly and you can get negative burnups, which you do not want.
armi/reactor/blocks.py
adjustUEnrich
crisobg1/armi
1
python
def adjustUEnrich(self, newEnrich): '\n Adjust U-235/U-238 mass ratio to a mass enrichment\n\n Parameters\n ----------\n newEnrich : float\n New U-235 enrichment in mass fraction\n\n completeInitialLoading must be run because adjusting the enrichment actually\n c...
def adjustUEnrich(self, newEnrich): '\n Adjust U-235/U-238 mass ratio to a mass enrichment\n\n Parameters\n ----------\n newEnrich : float\n New U-235 enrichment in mass fraction\n\n completeInitialLoading must be run because adjusting the enrichment actually\n c...
6a1c3660fee120cf42caf002dd5623aa6daf7d7e320aae1440311754a5a3bfce
def adjustSmearDensity(self, value, bolBlock=None): '\n modifies the *cold* smear density of a fuel pin by adding or removing fuel dimension.\n\n Adjusts fuel dimension while keeping cladding ID constant\n\n sd = fuel_r**2/clad_ir**2 =(fuel_od/2)**2 / (clad_id/2)**2 = fuel_od**2 / clad_id**2\n...
modifies the *cold* smear density of a fuel pin by adding or removing fuel dimension. Adjusts fuel dimension while keeping cladding ID constant sd = fuel_r**2/clad_ir**2 =(fuel_od/2)**2 / (clad_id/2)**2 = fuel_od**2 / clad_id**2 new fuel_od = sqrt(sd*clad_id**2) useful for optimization cases Parameters ---------- ...
armi/reactor/blocks.py
adjustSmearDensity
crisobg1/armi
1
python
def adjustSmearDensity(self, value, bolBlock=None): '\n modifies the *cold* smear density of a fuel pin by adding or removing fuel dimension.\n\n Adjusts fuel dimension while keeping cladding ID constant\n\n sd = fuel_r**2/clad_ir**2 =(fuel_od/2)**2 / (clad_id/2)**2 = fuel_od**2 / clad_id**2\n...
def adjustSmearDensity(self, value, bolBlock=None): '\n modifies the *cold* smear density of a fuel pin by adding or removing fuel dimension.\n\n Adjusts fuel dimension while keeping cladding ID constant\n\n sd = fuel_r**2/clad_ir**2 =(fuel_od/2)**2 / (clad_id/2)**2 = fuel_od**2 / clad_id**2\n...
1b05aca7fe8370e70ada06b56dd12d8e9d3039db1ebe3e7ecffc5b96e8cef980
def adjustCladThicknessByOD(self, value): 'Modifies the cladding thickness by adjusting the cladding outer diameter.' clad = self._getCladdingComponentToModify(value) if (clad is None): return innerDiam = clad.getDimension('id', cold=True) clad.setDimension('od', (innerDiam + (2.0 * value)))
Modifies the cladding thickness by adjusting the cladding outer diameter.
armi/reactor/blocks.py
adjustCladThicknessByOD
crisobg1/armi
1
python
def adjustCladThicknessByOD(self, value): clad = self._getCladdingComponentToModify(value) if (clad is None): return innerDiam = clad.getDimension('id', cold=True) clad.setDimension('od', (innerDiam + (2.0 * value)))
def adjustCladThicknessByOD(self, value): clad = self._getCladdingComponentToModify(value) if (clad is None): return innerDiam = clad.getDimension('id', cold=True) clad.setDimension('od', (innerDiam + (2.0 * value)))<|docstring|>Modifies the cladding thickness by adjusting the cladding oute...
2afae64155bcaa0c3a60a85e7aa1614239522774f0d6a85d6b97ff20e4da328b
def adjustCladThicknessByID(self, value): '\n Modifies the cladding thickness by adjusting the cladding inner diameter.\n\n Notes\n -----\n This WILL adjust the fuel smear density\n ' clad = self._getCladdingComponentToModify(value) if (clad is None): return od...
Modifies the cladding thickness by adjusting the cladding inner diameter. Notes ----- This WILL adjust the fuel smear density
armi/reactor/blocks.py
adjustCladThicknessByID
crisobg1/armi
1
python
def adjustCladThicknessByID(self, value): '\n Modifies the cladding thickness by adjusting the cladding inner diameter.\n\n Notes\n -----\n This WILL adjust the fuel smear density\n ' clad = self._getCladdingComponentToModify(value) if (clad is None): return od...
def adjustCladThicknessByID(self, value): '\n Modifies the cladding thickness by adjusting the cladding inner diameter.\n\n Notes\n -----\n This WILL adjust the fuel smear density\n ' clad = self._getCladdingComponentToModify(value) if (clad is None): return od...
579ede47ae4dd4924afbf7d240d75395ff344a022d96eedf7db3a1066f89bd3a
def getLocation(self): 'Return a string representation of the location.' if (self.core and self.parent.spatialGrid and self.spatialLocator): return self.core.spatialGrid.getLabel(self.spatialLocator.getCompleteIndices()) else: return 'ExCore'
Return a string representation of the location.
armi/reactor/blocks.py
getLocation
crisobg1/armi
1
python
def getLocation(self): if (self.core and self.parent.spatialGrid and self.spatialLocator): return self.core.spatialGrid.getLabel(self.spatialLocator.getCompleteIndices()) else: return 'ExCore'
def getLocation(self): if (self.core and self.parent.spatialGrid and self.spatialLocator): return self.core.spatialGrid.getLabel(self.spatialLocator.getCompleteIndices()) else: return 'ExCore'<|docstring|>Return a string representation of the location.<|endoftext|>
ffcaffe2b28ff183cb7efdbccfa2d8814ab02696ed073ae1535019affa7a5160
def getLocationObject(self): '\n Return a new location object based on current position.\n\n Notes\n -----\n This is slated for deletion, to be replaced by spatialGrid operations.\n ' loc = self.LOCATION_CLASS() loc.fromLocator(self.spatialLocator.getCompleteIndices()) ...
Return a new location object based on current position. Notes ----- This is slated for deletion, to be replaced by spatialGrid operations.
armi/reactor/blocks.py
getLocationObject
crisobg1/armi
1
python
def getLocationObject(self): '\n Return a new location object based on current position.\n\n Notes\n -----\n This is slated for deletion, to be replaced by spatialGrid operations.\n ' loc = self.LOCATION_CLASS() loc.fromLocator(self.spatialLocator.getCompleteIndices()) ...
def getLocationObject(self): '\n Return a new location object based on current position.\n\n Notes\n -----\n This is slated for deletion, to be replaced by spatialGrid operations.\n ' loc = self.LOCATION_CLASS() loc.fromLocator(self.spatialLocator.getCompleteIndices()) ...
40be02dfaf42aaefbe6837d35bd8b89f19567557ec96665e91b51b980b07a64f
def setBuLimitInfo(self, cs): 'Sets burnup limit based on igniter, feed, etc. (will implement general grouping later)' if (self.p.buRate == 0): self.p.timeToLimit = 0.0 else: timeLimit = (((self.p.buLimit - self.p.percentBu) / self.p.buRate) + self.p.residence) self.p.timeToLimit = ...
Sets burnup limit based on igniter, feed, etc. (will implement general grouping later)
armi/reactor/blocks.py
setBuLimitInfo
crisobg1/armi
1
python
def setBuLimitInfo(self, cs): if (self.p.buRate == 0): self.p.timeToLimit = 0.0 else: timeLimit = (((self.p.buLimit - self.p.percentBu) / self.p.buRate) + self.p.residence) self.p.timeToLimit = ((timeLimit - self.p.residence) / units.DAYS_PER_YEAR)
def setBuLimitInfo(self, cs): if (self.p.buRate == 0): self.p.timeToLimit = 0.0 else: timeLimit = (((self.p.buLimit - self.p.percentBu) / self.p.buRate) + self.p.residence) self.p.timeToLimit = ((timeLimit - self.p.residence) / units.DAYS_PER_YEAR)<|docstring|>Sets burnup limit base...
e735db46b537c3a509e53d780596869eeea0468852a02aacbd843fb76e744c96
def getMaxVolume(self): '\n The maximum volume of this object if it were totally full.\n\n Returns\n -------\n vol : float\n volume in cm^3.\n ' return (self.getMaxArea() * self.getHeight())
The maximum volume of this object if it were totally full. Returns ------- vol : float volume in cm^3.
armi/reactor/blocks.py
getMaxVolume
crisobg1/armi
1
python
def getMaxVolume(self): '\n The maximum volume of this object if it were totally full.\n\n Returns\n -------\n vol : float\n volume in cm^3.\n ' return (self.getMaxArea() * self.getHeight())
def getMaxVolume(self): '\n The maximum volume of this object if it were totally full.\n\n Returns\n -------\n vol : float\n volume in cm^3.\n ' return (self.getMaxArea() * self.getHeight())<|docstring|>The maximum volume of this object if it were totally full. Ret...
473feafb72d9f734b9af227cdbc8b22896eb2a307990f6a1d2e528d114c97f01
def getArea(self, cold=False): '\n Return the area of a block for a full core or a 1/3 core model.\n\n Area is consistent with the area in the model, so if you have a central\n assembly in a 1/3 symmetric model, this will return 1/3 of the total\n area of the physical assembly. This way,...
Return the area of a block for a full core or a 1/3 core model. Area is consistent with the area in the model, so if you have a central assembly in a 1/3 symmetric model, this will return 1/3 of the total area of the physical assembly. This way, if you take the sum of the areas in the core (or count the atoms in the c...
armi/reactor/blocks.py
getArea
crisobg1/armi
1
python
def getArea(self, cold=False): '\n Return the area of a block for a full core or a 1/3 core model.\n\n Area is consistent with the area in the model, so if you have a central\n assembly in a 1/3 symmetric model, this will return 1/3 of the total\n area of the physical assembly. This way,...
def getArea(self, cold=False): '\n Return the area of a block for a full core or a 1/3 core model.\n\n Area is consistent with the area in the model, so if you have a central\n assembly in a 1/3 symmetric model, this will return 1/3 of the total\n area of the physical assembly. This way,...
f150b04a14c4574b5547828bae88fcb3c3a5f5a5af29225429f1762174319ce4
def getAverageTempInC(self): '\n Returns the average temperature of the block in C using the block components\n\n This supercedes self.getAvgFuelTemp()\n ' blockAvgTemp = 0.0 for (component, volFrac) in self.getVolumeFractions(): componentTemp = component.temperatureInC ...
Returns the average temperature of the block in C using the block components This supercedes self.getAvgFuelTemp()
armi/reactor/blocks.py
getAverageTempInC
crisobg1/armi
1
python
def getAverageTempInC(self): '\n Returns the average temperature of the block in C using the block components\n\n This supercedes self.getAvgFuelTemp()\n ' blockAvgTemp = 0.0 for (component, volFrac) in self.getVolumeFractions(): componentTemp = component.temperatureInC ...
def getAverageTempInC(self): '\n Returns the average temperature of the block in C using the block components\n\n This supercedes self.getAvgFuelTemp()\n ' blockAvgTemp = 0.0 for (component, volFrac) in self.getVolumeFractions(): componentTemp = component.temperatureInC ...
92ca135ff8aae8bb3c1a9209bdc17cd6c72becd90212e57cbc9e221335296dbf
def getVolume(self): '\n Return the volume of a block.\n\n Returns\n -------\n volume : float\n Block or component volume in cm^3\n ' vol = sum((c.getVolume() for c in self)) return (vol / self.getSymmetryFactor())
Return the volume of a block. Returns ------- volume : float Block or component volume in cm^3
armi/reactor/blocks.py
getVolume
crisobg1/armi
1
python
def getVolume(self): '\n Return the volume of a block.\n\n Returns\n -------\n volume : float\n Block or component volume in cm^3\n ' vol = sum((c.getVolume() for c in self)) return (vol / self.getSymmetryFactor())
def getVolume(self): '\n Return the volume of a block.\n\n Returns\n -------\n volume : float\n Block or component volume in cm^3\n ' vol = sum((c.getVolume() for c in self)) return (vol / self.getSymmetryFactor())<|docstring|>Return the volume of a block. Retu...
56e22687121a72c8f4c526e31700cf42acc237b786f8351ec4a52ac0849394ca
def getSymmetryFactor(self): '\n Return a scaling factor due to symmetry on the area of the block or its components.\n\n Takes into account assemblies that are bisected or trisected by symmetry lines\n\n In 1/3 symmetric cases, the central assembly is 1/3 a full area.\n If edge assemblie...
Return a scaling factor due to symmetry on the area of the block or its components. Takes into account assemblies that are bisected or trisected by symmetry lines In 1/3 symmetric cases, the central assembly is 1/3 a full area. If edge assemblies are included in a model, the symmetry factor along both edges for overh...
armi/reactor/blocks.py
getSymmetryFactor
crisobg1/armi
1
python
def getSymmetryFactor(self): '\n Return a scaling factor due to symmetry on the area of the block or its components.\n\n Takes into account assemblies that are bisected or trisected by symmetry lines\n\n In 1/3 symmetric cases, the central assembly is 1/3 a full area.\n If edge assemblie...
def getSymmetryFactor(self): '\n Return a scaling factor due to symmetry on the area of the block or its components.\n\n Takes into account assemblies that are bisected or trisected by symmetry lines\n\n In 1/3 symmetric cases, the central assembly is 1/3 a full area.\n If edge assemblie...
dc8b79464c1a937173b64d480a69e4a230da0362472fc5271dfd4552cb569ff5
def isOnWhichSymmetryLine(self): 'Block symmetry lines are determined by the reactor, not the parent.' grid = self.core.spatialGrid return grid.overlapsWhichSymmetryLine(self.spatialLocator.getCompleteIndices())
Block symmetry lines are determined by the reactor, not the parent.
armi/reactor/blocks.py
isOnWhichSymmetryLine
crisobg1/armi
1
python
def isOnWhichSymmetryLine(self): grid = self.core.spatialGrid return grid.overlapsWhichSymmetryLine(self.spatialLocator.getCompleteIndices())
def isOnWhichSymmetryLine(self): grid = self.core.spatialGrid return grid.overlapsWhichSymmetryLine(self.spatialLocator.getCompleteIndices())<|docstring|>Block symmetry lines are determined by the reactor, not the parent.<|endoftext|>
1334bbb33ea9ae5f30793db8e39e5d657721d4547e232f0df025a594e9e8e49b
def adjustDensity(self, frac, adjustList, returnMass=False): '\n adjusts the total density of each nuclide in adjustList by frac.\n\n Parameters\n ----------\n frac : float\n The fraction of the current density that will remain after this operation\n\n adjustList : list...
adjusts the total density of each nuclide in adjustList by frac. Parameters ---------- frac : float The fraction of the current density that will remain after this operation adjustList : list List of nuclide names that will be adjusted. returnMass : bool If true, will return mass difference. Returns ---...
armi/reactor/blocks.py
adjustDensity
crisobg1/armi
1
python
def adjustDensity(self, frac, adjustList, returnMass=False): '\n adjusts the total density of each nuclide in adjustList by frac.\n\n Parameters\n ----------\n frac : float\n The fraction of the current density that will remain after this operation\n\n adjustList : list...
def adjustDensity(self, frac, adjustList, returnMass=False): '\n adjusts the total density of each nuclide in adjustList by frac.\n\n Parameters\n ----------\n frac : float\n The fraction of the current density that will remain after this operation\n\n adjustList : list...
c9a82777566d372c449b0d0af9c89466c99a2423e80e652192fdf09c203e8261
def _updateDetailedNdens(self, frac, adjustList): '\n Update detailed number density which is used by hi-fi depleters such as ORIGEN.\n\n Notes\n -----\n This will perturb all number densities so it is assumed that if one of the active densities\n is perturbed, all of htem are per...
Update detailed number density which is used by hi-fi depleters such as ORIGEN. Notes ----- This will perturb all number densities so it is assumed that if one of the active densities is perturbed, all of htem are perturbed.
armi/reactor/blocks.py
_updateDetailedNdens
crisobg1/armi
1
python
def _updateDetailedNdens(self, frac, adjustList): '\n Update detailed number density which is used by hi-fi depleters such as ORIGEN.\n\n Notes\n -----\n This will perturb all number densities so it is assumed that if one of the active densities\n is perturbed, all of htem are per...
def _updateDetailedNdens(self, frac, adjustList): '\n Update detailed number density which is used by hi-fi depleters such as ORIGEN.\n\n Notes\n -----\n This will perturb all number densities so it is assumed that if one of the active densities\n is perturbed, all of htem are per...
fe4c33b9157663a0c565f8ee23528b877e3c6eddb1519d9dab3cd7e7f0d60218
def completeInitialLoading(self, bolBlock=None): '\n Does some BOL bookkeeping to track things like BOL HM density for burnup tracking.\n\n This should run after this block is loaded up at BOC (called from\n Reactor.initialLoading).\n\n The original purpose of this was to get the moles H...
Does some BOL bookkeeping to track things like BOL HM density for burnup tracking. This should run after this block is loaded up at BOC (called from Reactor.initialLoading). The original purpose of this was to get the moles HM at BOC for the moles Pu/moles HM at BOL calculation. This also must be called after modify...
armi/reactor/blocks.py
completeInitialLoading
crisobg1/armi
1
python
def completeInitialLoading(self, bolBlock=None): '\n Does some BOL bookkeeping to track things like BOL HM density for burnup tracking.\n\n This should run after this block is loaded up at BOC (called from\n Reactor.initialLoading).\n\n The original purpose of this was to get the moles H...
def completeInitialLoading(self, bolBlock=None): '\n Does some BOL bookkeeping to track things like BOL HM density for burnup tracking.\n\n This should run after this block is loaded up at BOC (called from\n Reactor.initialLoading).\n\n The original purpose of this was to get the moles H...
6a800bdb430b4d32d313bcac5e2f422c5df257a9460302f5452df6471a34c491
def replaceBlockWithBlock(self, bReplacement): '\n Replace the current block with the replacementBlock.\n\n Typically used in the insertion of control rods.\n ' paramsToSkip = set(self.p.paramDefs.inCategory(parameters.Category.retainOnReplacement).names) tempBlock = copy.deepcopy(bRepl...
Replace the current block with the replacementBlock. Typically used in the insertion of control rods.
armi/reactor/blocks.py
replaceBlockWithBlock
crisobg1/armi
1
python
def replaceBlockWithBlock(self, bReplacement): '\n Replace the current block with the replacementBlock.\n\n Typically used in the insertion of control rods.\n ' paramsToSkip = set(self.p.paramDefs.inCategory(parameters.Category.retainOnReplacement).names) tempBlock = copy.deepcopy(bRepl...
def replaceBlockWithBlock(self, bReplacement): '\n Replace the current block with the replacementBlock.\n\n Typically used in the insertion of control rods.\n ' paramsToSkip = set(self.p.paramDefs.inCategory(parameters.Category.retainOnReplacement).names) tempBlock = copy.deepcopy(bRepl...
afc00e9cb2e450310d992066441746f3c8c28d72e9a905c544040345415b6303
@staticmethod def plotFlux(core, fName, bList=None, peak=False, adjoint=False, bList2=None): '\n Produce energy spectrum plot of real and/or adjoint flux in one or more blocks.\n\n core : Core\n Core object\n fName : str\n the name of the plot file to produce. If none, plo...
Produce energy spectrum plot of real and/or adjoint flux in one or more blocks. core : Core Core object fName : str the name of the plot file to produce. If none, plot will be shown bList : iterable, optional is a single block or a list of blocks to average over. If no bList, full core is assumed. peak : b...
armi/reactor/blocks.py
plotFlux
crisobg1/armi
1
python
@staticmethod def plotFlux(core, fName, bList=None, peak=False, adjoint=False, bList2=None): '\n Produce energy spectrum plot of real and/or adjoint flux in one or more blocks.\n\n core : Core\n Core object\n fName : str\n the name of the plot file to produce. If none, plo...
@staticmethod def plotFlux(core, fName, bList=None, peak=False, adjoint=False, bList2=None): '\n Produce energy spectrum plot of real and/or adjoint flux in one or more blocks.\n\n core : Core\n Core object\n fName : str\n the name of the plot file to produce. If none, plo...
227ef26c0327c86bc9f6a3668b6ece240d2a7b521d8dd5cb1cea9f763ce7af96
def _updatePitchComponent(self, c): '\n Update the component that defines the pitch.\n\n Given a Component, compare it to the current component that defines the pitch of the Block.\n If bigger, replace it.\n We need different implementations of this to support different logic for determi...
Update the component that defines the pitch. Given a Component, compare it to the current component that defines the pitch of the Block. If bigger, replace it. We need different implementations of this to support different logic for determining the form of pitch and the concept of "larger". See Also -------- Cartesia...
armi/reactor/blocks.py
_updatePitchComponent
crisobg1/armi
1
python
def _updatePitchComponent(self, c): '\n Update the component that defines the pitch.\n\n Given a Component, compare it to the current component that defines the pitch of the Block.\n If bigger, replace it.\n We need different implementations of this to support different logic for determi...
def _updatePitchComponent(self, c): '\n Update the component that defines the pitch.\n\n Given a Component, compare it to the current component that defines the pitch of the Block.\n If bigger, replace it.\n We need different implementations of this to support different logic for determi...
87961c2968a9ae5e62e2826a6cc3bd671e715152bf921814014e839732e1b7ea
def addComponent(self, c): 'adds a component for component-based blocks.' self.add(c)
adds a component for component-based blocks.
armi/reactor/blocks.py
addComponent
crisobg1/armi
1
python
def addComponent(self, c): self.add(c)
def addComponent(self, c): self.add(c)<|docstring|>adds a component for component-based blocks.<|endoftext|>
c59faddab276e3bc5370c9fddf4fddd91f087dbca05976433ea1baff6e679e96
def removeComponent(self, c): ' Removes a component from the component-based blocks.' self.remove(c)
Removes a component from the component-based blocks.
armi/reactor/blocks.py
removeComponent
crisobg1/armi
1
python
def removeComponent(self, c): ' ' self.remove(c)
def removeComponent(self, c): ' ' self.remove(c)<|docstring|>Removes a component from the component-based blocks.<|endoftext|>
673c1eb9dcf0283b3277158a3f223d549d1767bda57a561226cb4ea86b2b854b
def getDominantMaterial(self, typeSpec): '\n compute the total volume of each distinct material type in this object.\n\n Parameters\n ----------\n typeSpec : Flags or iterable of Flags\n The types of components to consider (e.g. [Flags.FUEL, Flags.CONTROL])\n\n Returns\...
compute the total volume of each distinct material type in this object. Parameters ---------- typeSpec : Flags or iterable of Flags The types of components to consider (e.g. [Flags.FUEL, Flags.CONTROL]) Returns ------- mats : dict keys are material names, values are the total volume of this material in cm*2 s...
armi/reactor/blocks.py
getDominantMaterial
crisobg1/armi
1
python
def getDominantMaterial(self, typeSpec): '\n compute the total volume of each distinct material type in this object.\n\n Parameters\n ----------\n typeSpec : Flags or iterable of Flags\n The types of components to consider (e.g. [Flags.FUEL, Flags.CONTROL])\n\n Returns\...
def getDominantMaterial(self, typeSpec): '\n compute the total volume of each distinct material type in this object.\n\n Parameters\n ----------\n typeSpec : Flags or iterable of Flags\n The types of components to consider (e.g. [Flags.FUEL, Flags.CONTROL])\n\n Returns\...
61915a8f01aba72a9ca0f1efc187c265b4c1cce491c36eeb5892d8293b5d3e11
def getComponentsThatAreLinkedTo(self, comp, dim): '\n Determine which dimensions of which components are linked to a specific dimension of a particular component.\n\n Useful for breaking fuel components up into individuals and making sure\n anything that was linked to the fuel mult (like the c...
Determine which dimensions of which components are linked to a specific dimension of a particular component. Useful for breaking fuel components up into individuals and making sure anything that was linked to the fuel mult (like the cladding mult) stays correct. Parameters ---------- comp : Component The componen...
armi/reactor/blocks.py
getComponentsThatAreLinkedTo
crisobg1/armi
1
python
def getComponentsThatAreLinkedTo(self, comp, dim): '\n Determine which dimensions of which components are linked to a specific dimension of a particular component.\n\n Useful for breaking fuel components up into individuals and making sure\n anything that was linked to the fuel mult (like the c...
def getComponentsThatAreLinkedTo(self, comp, dim): '\n Determine which dimensions of which components are linked to a specific dimension of a particular component.\n\n Useful for breaking fuel components up into individuals and making sure\n anything that was linked to the fuel mult (like the c...
26e19f458e45a653ac5f3b9e794d5f9042819c8f9c57849e542c64bdd0768bff
def getComponentsInLinkedOrder(self, componentList=None): "\n Return a list of the components in order of their linked-dimension dependencies.\n\n Parameters\n ----------\n components : list, optional\n A list of components to consider. If None, this block's components will be...
Return a list of the components in order of their linked-dimension dependencies. Parameters ---------- components : list, optional A list of components to consider. If None, this block's components will be used. Notes ----- This means that components other components are linked to come first.
armi/reactor/blocks.py
getComponentsInLinkedOrder
crisobg1/armi
1
python
def getComponentsInLinkedOrder(self, componentList=None): "\n Return a list of the components in order of their linked-dimension dependencies.\n\n Parameters\n ----------\n components : list, optional\n A list of components to consider. If None, this block's components will be...
def getComponentsInLinkedOrder(self, componentList=None): "\n Return a list of the components in order of their linked-dimension dependencies.\n\n Parameters\n ----------\n components : list, optional\n A list of components to consider. If None, this block's components will be...
f7411f898fa0957a1375437ff8c0231ec2d01be91b78415170763d43637428c4
def hasComponents(self, typeSpec): '\n Return true if all of the named components exist on this block.\n\n Parameters\n ----------\n typeSpec : Flags or iterable of Flags\n Component types to check for. If None, will check for any components\n ' try: iterato...
Return true if all of the named components exist on this block. Parameters ---------- typeSpec : Flags or iterable of Flags Component types to check for. If None, will check for any components
armi/reactor/blocks.py
hasComponents
crisobg1/armi
1
python
def hasComponents(self, typeSpec): '\n Return true if all of the named components exist on this block.\n\n Parameters\n ----------\n typeSpec : Flags or iterable of Flags\n Component types to check for. If None, will check for any components\n ' try: iterato...
def hasComponents(self, typeSpec): '\n Return true if all of the named components exist on this block.\n\n Parameters\n ----------\n typeSpec : Flags or iterable of Flags\n Component types to check for. If None, will check for any components\n ' try: iterato...
9f97a63397ccbb8eb60ad0689b22e15aa5016d679bd979776b928951a2d070da
def getComponentByName(self, name): '\n Gets a particular component from this block, based on its name\n\n Parameters\n ----------\n name : str\n The blueprint name of the component to return\n ' components = [c for c in self if (c.name == name)] nComp = len(com...
Gets a particular component from this block, based on its name Parameters ---------- name : str The blueprint name of the component to return
armi/reactor/blocks.py
getComponentByName
crisobg1/armi
1
python
def getComponentByName(self, name): '\n Gets a particular component from this block, based on its name\n\n Parameters\n ----------\n name : str\n The blueprint name of the component to return\n ' components = [c for c in self if (c.name == name)] nComp = len(com...
def getComponentByName(self, name): '\n Gets a particular component from this block, based on its name\n\n Parameters\n ----------\n name : str\n The blueprint name of the component to return\n ' components = [c for c in self if (c.name == name)] nComp = len(com...
acd8f4b37e463067ff003451275d18fb00f6f3a310e2e72eef3ea8a821d8ae31
def getComponent(self, typeSpec, exact=False, returnNull=False, quiet=False): '\n Gets a particular component from this block.\n\n Parameters\n ----------\n typeSpec : flags.Flags or list of Flags\n The type specification of the component to return\n\n exact : boolean, ...
Gets a particular component from this block. Parameters ---------- typeSpec : flags.Flags or list of Flags The type specification of the component to return exact : boolean, optional Demand that the component flags be exactly equal to the typespec. Default: False quiet : boolean, optional Warn if the com...
armi/reactor/blocks.py
getComponent
crisobg1/armi
1
python
def getComponent(self, typeSpec, exact=False, returnNull=False, quiet=False): '\n Gets a particular component from this block.\n\n Parameters\n ----------\n typeSpec : flags.Flags or list of Flags\n The type specification of the component to return\n\n exact : boolean, ...
def getComponent(self, typeSpec, exact=False, returnNull=False, quiet=False): '\n Gets a particular component from this block.\n\n Parameters\n ----------\n typeSpec : flags.Flags or list of Flags\n The type specification of the component to return\n\n exact : boolean, ...
be6690e05f4bd91c8ca5defa12191c3398e775682806704820a50c2ca0899f35
def getComponentsOfShape(self, shapeClass): '\n Return list of components in this block of a particular shape.\n\n Parameters\n ----------\n shapeClass : Component\n The class of component, e.g. Circle, Helix, Hexagon, etc.\n\n Returns\n -------\n param : ...
Return list of components in this block of a particular shape. Parameters ---------- shapeClass : Component The class of component, e.g. Circle, Helix, Hexagon, etc. Returns ------- param : list List of components in this block that are of the given shape.
armi/reactor/blocks.py
getComponentsOfShape
crisobg1/armi
1
python
def getComponentsOfShape(self, shapeClass): '\n Return list of components in this block of a particular shape.\n\n Parameters\n ----------\n shapeClass : Component\n The class of component, e.g. Circle, Helix, Hexagon, etc.\n\n Returns\n -------\n param : ...
def getComponentsOfShape(self, shapeClass): '\n Return list of components in this block of a particular shape.\n\n Parameters\n ----------\n shapeClass : Component\n The class of component, e.g. Circle, Helix, Hexagon, etc.\n\n Returns\n -------\n param : ...
8da653dab364ee21ab9e28c91eab06c08b41b4a43ab115ce542fcfdcb1528ea6
def getComponentsOfMaterial(self, material=None, materialName=None): '\n Return list of components in this block that are made of a particular material\n\n Only one of the selectors may be used\n\n Parameters\n ----------\n material : Material object, optional\n The mat...
Return list of components in this block that are made of a particular material Only one of the selectors may be used Parameters ---------- material : Material object, optional The material to match materialName : str, optional The material name to match. Returns ------- componentsWithThisMat : list
armi/reactor/blocks.py
getComponentsOfMaterial
crisobg1/armi
1
python
def getComponentsOfMaterial(self, material=None, materialName=None): '\n Return list of components in this block that are made of a particular material\n\n Only one of the selectors may be used\n\n Parameters\n ----------\n material : Material object, optional\n The mat...
def getComponentsOfMaterial(self, material=None, materialName=None): '\n Return list of components in this block that are made of a particular material\n\n Only one of the selectors may be used\n\n Parameters\n ----------\n material : Material object, optional\n The mat...
a47df6df3936d16270c3a59699c234cb22ee7ba7d4544c56fd8fe02743a59fe0
def getSortedComponentsInsideOfComponent(self, component): "\n Returns a list of components inside of the given component sorted from innermost to outermost.\n\n Parameters\n ----------\n component : object\n Component to look inside of.\n\n Notes\n -----\n ...
Returns a list of components inside of the given component sorted from innermost to outermost. Parameters ---------- component : object Component to look inside of. Notes ----- If you just want sorted components in this block, use ``sorted(self)``. This will never include any ``DerivedShape`` objects. Since they ...
armi/reactor/blocks.py
getSortedComponentsInsideOfComponent
crisobg1/armi
1
python
def getSortedComponentsInsideOfComponent(self, component): "\n Returns a list of components inside of the given component sorted from innermost to outermost.\n\n Parameters\n ----------\n component : object\n Component to look inside of.\n\n Notes\n -----\n ...
def getSortedComponentsInsideOfComponent(self, component): "\n Returns a list of components inside of the given component sorted from innermost to outermost.\n\n Parameters\n ----------\n component : object\n Component to look inside of.\n\n Notes\n -----\n ...
2f17ee0983bf5ea9918fa4c7c63eff276728afcfacec882b05e8294f3ae30fee
def getNumComponents(self, typeSpec): '\n Get the number of components that have these flags, taking into account multiplicity. Useful\n for getting nPins even when there are pin detailed cases.\n\n Parameters\n ----------\n typeSpec : Flags\n Expected flags of the comp...
Get the number of components that have these flags, taking into account multiplicity. Useful for getting nPins even when there are pin detailed cases. Parameters ---------- typeSpec : Flags Expected flags of the component to get. e.g. Flags.FUEL Returns ------- total : int the number of components of this typ...
armi/reactor/blocks.py
getNumComponents
crisobg1/armi
1
python
def getNumComponents(self, typeSpec): '\n Get the number of components that have these flags, taking into account multiplicity. Useful\n for getting nPins even when there are pin detailed cases.\n\n Parameters\n ----------\n typeSpec : Flags\n Expected flags of the comp...
def getNumComponents(self, typeSpec): '\n Get the number of components that have these flags, taking into account multiplicity. Useful\n for getting nPins even when there are pin detailed cases.\n\n Parameters\n ----------\n typeSpec : Flags\n Expected flags of the comp...
1d0440d3aa76f78679092cf5bdda6fe2d8d56ccf91040945310e0063d47ca805
def getNumPins(self): 'Return the number of pins in this block.' nPins = [self.getNumComponents(compType) for compType in PIN_COMPONENTS] return (0 if (not nPins) else max(nPins))
Return the number of pins in this block.
armi/reactor/blocks.py
getNumPins
crisobg1/armi
1
python
def getNumPins(self): nPins = [self.getNumComponents(compType) for compType in PIN_COMPONENTS] return (0 if (not nPins) else max(nPins))
def getNumPins(self): nPins = [self.getNumComponents(compType) for compType in PIN_COMPONENTS] return (0 if (not nPins) else max(nPins))<|docstring|>Return the number of pins in this block.<|endoftext|>
031e9850d4fc14a718a11c5fa987d882337c192390914bfe77e4223cfe2a3879
def mergeWithBlock(self, otherBlock, fraction): '\n Turns this block into a mixture of this block and some other block\n\n Parameters\n ----------\n otherBlock : Block\n The block to mix this block with. The other block will not be modified.\n\n fraction : float\n ...
Turns this block into a mixture of this block and some other block Parameters ---------- otherBlock : Block The block to mix this block with. The other block will not be modified. fraction : float Fraction of the other block to mix in with this block. If 0.1 is passed in, this block will become 90% what i...
armi/reactor/blocks.py
mergeWithBlock
crisobg1/armi
1
python
def mergeWithBlock(self, otherBlock, fraction): '\n Turns this block into a mixture of this block and some other block\n\n Parameters\n ----------\n otherBlock : Block\n The block to mix this block with. The other block will not be modified.\n\n fraction : float\n ...
def mergeWithBlock(self, otherBlock, fraction): '\n Turns this block into a mixture of this block and some other block\n\n Parameters\n ----------\n otherBlock : Block\n The block to mix this block with. The other block will not be modified.\n\n fraction : float\n ...
f59901a1d36e0f90637c51e4ac012e480714424202fa584e762b9f4dcf433012
def getComponentAreaFrac(self, typeSpec, exact=True): '\n Returns the area fraction of the specified component(s) among all components in the block.\n\n Parameters\n ----------\n typeSpec : Flags or list of Flags\n Component types to look up\n exact : bool, optional\n ...
Returns the area fraction of the specified component(s) among all components in the block. Parameters ---------- typeSpec : Flags or list of Flags Component types to look up exact : bool, optional Match exact names only Examples --------- >>> b.getComponentAreaFrac(Flags.CLAD) 0.15 Returns ------- float ...
armi/reactor/blocks.py
getComponentAreaFrac
crisobg1/armi
1
python
def getComponentAreaFrac(self, typeSpec, exact=True): '\n Returns the area fraction of the specified component(s) among all components in the block.\n\n Parameters\n ----------\n typeSpec : Flags or list of Flags\n Component types to look up\n exact : bool, optional\n ...
def getComponentAreaFrac(self, typeSpec, exact=True): '\n Returns the area fraction of the specified component(s) among all components in the block.\n\n Parameters\n ----------\n typeSpec : Flags or list of Flags\n Component types to look up\n exact : bool, optional\n ...
57d6033c46b7aa34b0125e189dc94343834ffb3c6126d2cf4390932c59c2c62b
def verifyBlockDims(self): 'Optional dimension checking.' return
Optional dimension checking.
armi/reactor/blocks.py
verifyBlockDims
crisobg1/armi
1
python
def verifyBlockDims(self): return
def verifyBlockDims(self): return<|docstring|>Optional dimension checking.<|endoftext|>
d888fa4337d241840ef20bf0be7f1291557768d5dacdaa8232e0cda2f4bbf64f
def getDim(self, typeSpec, dimName): "\n Search through blocks in this assembly and find the first component of compName.\n Then, look on that component for dimName.\n\n Parameters\n ----------\n typeSpec : Flags or list of Flags\n Component name, e.g. Flags.FUEL, Flags...
Search through blocks in this assembly and find the first component of compName. Then, look on that component for dimName. Parameters ---------- typeSpec : Flags or list of Flags Component name, e.g. Flags.FUEL, Flags.CLAD, Flags.COOLANT, ... dimName : str Dimension name, e.g. 'od', ... Returns ------- dimVal...
armi/reactor/blocks.py
getDim
crisobg1/armi
1
python
def getDim(self, typeSpec, dimName): "\n Search through blocks in this assembly and find the first component of compName.\n Then, look on that component for dimName.\n\n Parameters\n ----------\n typeSpec : Flags or list of Flags\n Component name, e.g. Flags.FUEL, Flags...
def getDim(self, typeSpec, dimName): "\n Search through blocks in this assembly and find the first component of compName.\n Then, look on that component for dimName.\n\n Parameters\n ----------\n typeSpec : Flags or list of Flags\n Component name, e.g. Flags.FUEL, Flags...
6aad0b4c70567f8f85eef11477b82b4afacabf7fe69a635612a254dcfb28b7f3
def getPinCenterFlatToFlat(self, cold=False): 'Return the flat-to-flat distance between the centers of opposing pins in the outermost ring.' raise NotImplementedError
Return the flat-to-flat distance between the centers of opposing pins in the outermost ring.
armi/reactor/blocks.py
getPinCenterFlatToFlat
crisobg1/armi
1
python
def getPinCenterFlatToFlat(self, cold=False): raise NotImplementedError
def getPinCenterFlatToFlat(self, cold=False): raise NotImplementedError<|docstring|>Return the flat-to-flat distance between the centers of opposing pins in the outermost ring.<|endoftext|>
4a4d61591235ede320ae5629b84fd1198904587f3fb71b1913959d472f1230e4
def getWireWrapCladGap(self, cold=False): 'Return the gap betwen the wire wrap and the clad.' clad = self.getComponent(Flags.CLAD) wire = self.getComponent(Flags.WIRE) wireOuterRadius = (wire.getBoundingCircleOuterDiameter(cold=cold) / 2.0) wireInnerRadius = (wireOuterRadius - wire.getDimension('od'...
Return the gap betwen the wire wrap and the clad.
armi/reactor/blocks.py
getWireWrapCladGap
crisobg1/armi
1
python
def getWireWrapCladGap(self, cold=False): clad = self.getComponent(Flags.CLAD) wire = self.getComponent(Flags.WIRE) wireOuterRadius = (wire.getBoundingCircleOuterDiameter(cold=cold) / 2.0) wireInnerRadius = (wireOuterRadius - wire.getDimension('od', cold=cold)) cladOuterRadius = (clad.getDimens...
def getWireWrapCladGap(self, cold=False): clad = self.getComponent(Flags.CLAD) wire = self.getComponent(Flags.WIRE) wireOuterRadius = (wire.getBoundingCircleOuterDiameter(cold=cold) / 2.0) wireInnerRadius = (wireOuterRadius - wire.getDimension('od', cold=cold)) cladOuterRadius = (clad.getDimens...
8a4c6bdcdcc5861016dbd8097cff17823f0768090761480fc5794de628939313
def getPlenumPin(self): 'Return the plenum pin if it exists.' for c in self.getComponents(Flags.GAP): if self.isPlenumPin(c): return c return None
Return the plenum pin if it exists.
armi/reactor/blocks.py
getPlenumPin
crisobg1/armi
1
python
def getPlenumPin(self): for c in self.getComponents(Flags.GAP): if self.isPlenumPin(c): return c return None
def getPlenumPin(self): for c in self.getComponents(Flags.GAP): if self.isPlenumPin(c): return c return None<|docstring|>Return the plenum pin if it exists.<|endoftext|>
6d34667d0acd033015104925f7bba6a335f8ea7d13da855d769b6fa4fade4653
def isPlenumPin(self, c): 'Return True if the specified component is a plenum pin.' cIsCenterGapGap = (isinstance(c, components.Component) and c.hasFlags(Flags.GAP) and (c.getDimension('id') == 0)) if (self.hasFlags([Flags.PLENUM, Flags.ACLP]) and cIsCenterGapGap): return True return False
Return True if the specified component is a plenum pin.
armi/reactor/blocks.py
isPlenumPin
crisobg1/armi
1
python
def isPlenumPin(self, c): cIsCenterGapGap = (isinstance(c, components.Component) and c.hasFlags(Flags.GAP) and (c.getDimension('id') == 0)) if (self.hasFlags([Flags.PLENUM, Flags.ACLP]) and cIsCenterGapGap): return True return False
def isPlenumPin(self, c): cIsCenterGapGap = (isinstance(c, components.Component) and c.hasFlags(Flags.GAP) and (c.getDimension('id') == 0)) if (self.hasFlags([Flags.PLENUM, Flags.ACLP]) and cIsCenterGapGap): return True return False<|docstring|>Return True if the specified component is a plenum...
d267a434dc234302279a373c41839945704e6cc0071ef8e8151430409a0e111c
def getPitch(self, returnComp=False): '\n Return the center-to-center hex pitch of this block.\n\n Parameters\n ----------\n returnComp : bool, optional\n If true, will return the component that has the maximum pitch as well\n Returns\n -------\n pitch : f...
Return the center-to-center hex pitch of this block. Parameters ---------- returnComp : bool, optional If true, will return the component that has the maximum pitch as well Returns ------- pitch : float or None Hex pitch in cm, if well-defined. If there is no clear component for determining pitch, returns ...
armi/reactor/blocks.py
getPitch
crisobg1/armi
1
python
def getPitch(self, returnComp=False): '\n Return the center-to-center hex pitch of this block.\n\n Parameters\n ----------\n returnComp : bool, optional\n If true, will return the component that has the maximum pitch as well\n Returns\n -------\n pitch : f...
def getPitch(self, returnComp=False): '\n Return the center-to-center hex pitch of this block.\n\n Parameters\n ----------\n returnComp : bool, optional\n If true, will return the component that has the maximum pitch as well\n Returns\n -------\n pitch : f...
b4dea6c2351e86aa4172c2b6ce61ec8fc90cec737bcf65bc7410654f522c2b57
def hasPinPitch(self): 'Return True if the block has enough information to calculate pin pitch.' return (self.spatialGrid is not None)
Return True if the block has enough information to calculate pin pitch.
armi/reactor/blocks.py
hasPinPitch
crisobg1/armi
1
python
def hasPinPitch(self): return (self.spatialGrid is not None)
def hasPinPitch(self): return (self.spatialGrid is not None)<|docstring|>Return True if the block has enough information to calculate pin pitch.<|endoftext|>
4c4d1ffca1d871dd1307aaaa652187511e2d1cbc93cb099218736d82e39e1427
def getPinPitch(self, cold=False): '\n Return sub-block pitch in blocks.\n\n This assumes the spatial grid is defined by unit steps\n ' return self.spatialGrid.pitch
Return sub-block pitch in blocks. This assumes the spatial grid is defined by unit steps
armi/reactor/blocks.py
getPinPitch
crisobg1/armi
1
python
def getPinPitch(self, cold=False): '\n Return sub-block pitch in blocks.\n\n This assumes the spatial grid is defined by unit steps\n ' return self.spatialGrid.pitch
def getPinPitch(self, cold=False): '\n Return sub-block pitch in blocks.\n\n This assumes the spatial grid is defined by unit steps\n ' return self.spatialGrid.pitch<|docstring|>Return sub-block pitch in blocks. This assumes the spatial grid is defined by unit steps<|endoftext|>
d841c1d13ce64a76ab46a1fe1d9a1c47167083568b1dc5df7c992ce495513a76
def getDimensions(self, dimension): 'Return dimensional values of the specified dimension.' dimVals = set() for c in self.getChildren(): try: dimVal = c.getDimension(dimension) except parameters.ParameterError: continue if (dimVal is not None): dim...
Return dimensional values of the specified dimension.
armi/reactor/blocks.py
getDimensions
crisobg1/armi
1
python
def getDimensions(self, dimension): dimVals = set() for c in self.getChildren(): try: dimVal = c.getDimension(dimension) except parameters.ParameterError: continue if (dimVal is not None): dimVals.add(dimVal) return dimVals
def getDimensions(self, dimension): dimVals = set() for c in self.getChildren(): try: dimVal = c.getDimension(dimension) except parameters.ParameterError: continue if (dimVal is not None): dimVals.add(dimVal) return dimVals<|docstring|>Return ...
8639edd4c0cb8f2cdf0ef8075d269950b2440c180ede6f97aba2b02382cbc3f8
def getLargestComponent(self, dimension): '\n Find the component with the largest dimension of the specified type.\n\n Parameters\n ----------\n dimension: str\n The name of the dimension to find the largest component of.\n\n Returns\n -------\n largestCom...
Find the component with the largest dimension of the specified type. Parameters ---------- dimension: str The name of the dimension to find the largest component of. Returns ------- largestComponent: armi.reactor.components.Component The component with the largest dimension of the specified type.
armi/reactor/blocks.py
getLargestComponent
crisobg1/armi
1
python
def getLargestComponent(self, dimension): '\n Find the component with the largest dimension of the specified type.\n\n Parameters\n ----------\n dimension: str\n The name of the dimension to find the largest component of.\n\n Returns\n -------\n largestCom...
def getLargestComponent(self, dimension): '\n Find the component with the largest dimension of the specified type.\n\n Parameters\n ----------\n dimension: str\n The name of the dimension to find the largest component of.\n\n Returns\n -------\n largestCom...
6c63d218d8062cc7daef72c36a5146dedcf3bfeb4e5c18f904761dba7a34c9e8
def setPitch(self, val, updateBolParams=False, updateNumberDensityParams=True): "\n Sets outer pitch to some new value.\n\n This sets the settingPitch and actually sets the dimension of the outer hexagon.\n\n During a load (importGeom), the setDimension doesn't usually do anything except\n ...
Sets outer pitch to some new value. This sets the settingPitch and actually sets the dimension of the outer hexagon. During a load (importGeom), the setDimension doesn't usually do anything except set the setting See Issue 034 But during a actual case modification (e.g. in an optimization sweep, then the dimension h...
armi/reactor/blocks.py
setPitch
crisobg1/armi
1
python
def setPitch(self, val, updateBolParams=False, updateNumberDensityParams=True): "\n Sets outer pitch to some new value.\n\n This sets the settingPitch and actually sets the dimension of the outer hexagon.\n\n During a load (importGeom), the setDimension doesn't usually do anything except\n ...
def setPitch(self, val, updateBolParams=False, updateNumberDensityParams=True): "\n Sets outer pitch to some new value.\n\n This sets the settingPitch and actually sets the dimension of the outer hexagon.\n\n During a load (importGeom), the setDimension doesn't usually do anything except\n ...
4dafb323607bd8c99cdb534ae0568e6b28983e5b316cf399cfedb82795bd15b8
def getMfp(self, gamma=False): 'calculates the mean free path for neutron or gammas in this block.\n\n Sum_E(flux_e*macro_e*dE) Sum_E(flux_e*d*sum_type(micro_e) * dE)\n <Macro> = --------------------------- = -------------------------------------\n Sum_E (flux_e*dE...
calculates the mean free path for neutron or gammas in this block. Sum_E(flux_e*macro_e*dE) Sum_E(flux_e*d*sum_type(micro_e) * dE) <Macro> = --------------------------- = ------------------------------------- Sum_E (flux_e*dE) Sum_E (flux_e*dE) Block macro is the sum of ma...
armi/reactor/blocks.py
getMfp
crisobg1/armi
1
python
def getMfp(self, gamma=False): 'calculates the mean free path for neutron or gammas in this block.\n\n Sum_E(flux_e*macro_e*dE) Sum_E(flux_e*d*sum_type(micro_e) * dE)\n <Macro> = --------------------------- = -------------------------------------\n Sum_E (flux_e*dE...
def getMfp(self, gamma=False): 'calculates the mean free path for neutron or gammas in this block.\n\n Sum_E(flux_e*macro_e*dE) Sum_E(flux_e*d*sum_type(micro_e) * dE)\n <Macro> = --------------------------- = -------------------------------------\n Sum_E (flux_e*dE...
d5165c3a0e72408762e45a38ab27daff67431a42ede5bf694fbbb30bad90da2a
def setComponentDimensionsReport(self): 'Makes a summary of the dimensions of the components in this block.' compList = self.getComponentNames() reportGroups = [] for c in self.getComponents(): reportGroups.append(c.setDimensionReport()) return reportGroups
Makes a summary of the dimensions of the components in this block.
armi/reactor/blocks.py
setComponentDimensionsReport
crisobg1/armi
1
python
def setComponentDimensionsReport(self): compList = self.getComponentNames() reportGroups = [] for c in self.getComponents(): reportGroups.append(c.setDimensionReport()) return reportGroups
def setComponentDimensionsReport(self): compList = self.getComponentNames() reportGroups = [] for c in self.getComponents(): reportGroups.append(c.setDimensionReport()) return reportGroups<|docstring|>Makes a summary of the dimensions of the components in this block.<|endoftext|>
ce5bcf11020afa0c3a7b3cd7039c4d3ecd0f66e5956c72e776e6ba127ed16df5
def printDensities(self, expandFissionProducts=False): 'Get lines that have the number densities of a block.' numberDensities = self.getNumberDensities(expandFissionProducts=expandFissionProducts) lines = [] for (nucName, nucDens) in numberDensities.items(): lines.append('{0:6s} {1:.7E}'.format(...
Get lines that have the number densities of a block.
armi/reactor/blocks.py
printDensities
crisobg1/armi
1
python
def printDensities(self, expandFissionProducts=False): numberDensities = self.getNumberDensities(expandFissionProducts=expandFissionProducts) lines = [] for (nucName, nucDens) in numberDensities.items(): lines.append('{0:6s} {1:.7E}'.format(nucName, nucDens)) return lines
def printDensities(self, expandFissionProducts=False): numberDensities = self.getNumberDensities(expandFissionProducts=expandFissionProducts) lines = [] for (nucName, nucDens) in numberDensities.items(): lines.append('{0:6s} {1:.7E}'.format(nucName, nucDens)) return lines<|docstring|>Get li...
1ccc2ea7a14c3f3462a995ba4a5e9122b7554381410046bc463ebb5e1b59aa0a
def expandElementalToIsotopics(self, elementalNuclide): '\n Expands the density of a specific elemental nuclides to its natural isotopics.\n\n Parameters\n ----------\n elementalNuclide : :class:`armi.nucDirectory.nuclideBases.NaturalNuclide`\n natural nuclide to replace.\n ...
Expands the density of a specific elemental nuclides to its natural isotopics. Parameters ---------- elementalNuclide : :class:`armi.nucDirectory.nuclideBases.NaturalNuclide` natural nuclide to replace.
armi/reactor/blocks.py
expandElementalToIsotopics
crisobg1/armi
1
python
def expandElementalToIsotopics(self, elementalNuclide): '\n Expands the density of a specific elemental nuclides to its natural isotopics.\n\n Parameters\n ----------\n elementalNuclide : :class:`armi.nucDirectory.nuclideBases.NaturalNuclide`\n natural nuclide to replace.\n ...
def expandElementalToIsotopics(self, elementalNuclide): '\n Expands the density of a specific elemental nuclides to its natural isotopics.\n\n Parameters\n ----------\n elementalNuclide : :class:`armi.nucDirectory.nuclideBases.NaturalNuclide`\n natural nuclide to replace.\n ...
ef0367c0db93ec96c5949f3d74149df4dd8db22ff08b82751d57fc88fdececdd
def getBurnupPeakingFactor(self): '\n Get the radial peaking factor to be applied to burnup and DPA\n\n This may be informed by previous runs which used\n detailed pin reconstruction and rotation. In that case,\n it should be set on the cs setting ``burnupPeakingFactor``.\n\n Othe...
Get the radial peaking factor to be applied to burnup and DPA This may be informed by previous runs which used detailed pin reconstruction and rotation. In that case, it should be set on the cs setting ``burnupPeakingFactor``. Otherwise, it just takes the current flux peaking, which is typically conservatively high. ...
armi/reactor/blocks.py
getBurnupPeakingFactor
crisobg1/armi
1
python
def getBurnupPeakingFactor(self): '\n Get the radial peaking factor to be applied to burnup and DPA\n\n This may be informed by previous runs which used\n detailed pin reconstruction and rotation. In that case,\n it should be set on the cs setting ``burnupPeakingFactor``.\n\n Othe...
def getBurnupPeakingFactor(self): '\n Get the radial peaking factor to be applied to burnup and DPA\n\n This may be informed by previous runs which used\n detailed pin reconstruction and rotation. In that case,\n it should be set on the cs setting ``burnupPeakingFactor``.\n\n Othe...
7c8ad632b283c3deed73d09c2c48be834727edc7d670c08b886244a562c20513
def getBlocks(self): '\n This method returns all the block(s) included in this block\n its implemented so that methods could iterate over reactors, assemblies\n or single blocks without checking to see what the type of the\n reactor-family object is.\n ' return [self]
This method returns all the block(s) included in this block its implemented so that methods could iterate over reactors, assemblies or single blocks without checking to see what the type of the reactor-family object is.
armi/reactor/blocks.py
getBlocks
crisobg1/armi
1
python
def getBlocks(self): '\n This method returns all the block(s) included in this block\n its implemented so that methods could iterate over reactors, assemblies\n or single blocks without checking to see what the type of the\n reactor-family object is.\n ' return [self]
def getBlocks(self): '\n This method returns all the block(s) included in this block\n its implemented so that methods could iterate over reactors, assemblies\n or single blocks without checking to see what the type of the\n reactor-family object is.\n ' return [self]<|docstri...
7a9cc9c42cab5f0b67b129587b980ae423a4d9cbf563ef714ea43506282f7161
def updateComponentDims(self): "\n This method updates all the dimensions of the components\n\n Notes\n -----\n This is VERY useful for defining a ThRZ core out of\n differentialRadialSegements whose dimensions are connected together\n some of these dimensions are derivativ...
This method updates all the dimensions of the components Notes ----- This is VERY useful for defining a ThRZ core out of differentialRadialSegements whose dimensions are connected together some of these dimensions are derivative and can be updated by changing dimensions in a Parameter Component or other linked compone...
armi/reactor/blocks.py
updateComponentDims
crisobg1/armi
1
python
def updateComponentDims(self): "\n This method updates all the dimensions of the components\n\n Notes\n -----\n This is VERY useful for defining a ThRZ core out of\n differentialRadialSegements whose dimensions are connected together\n some of these dimensions are derivativ...
def updateComponentDims(self): "\n This method updates all the dimensions of the components\n\n Notes\n -----\n This is VERY useful for defining a ThRZ core out of\n differentialRadialSegements whose dimensions are connected together\n some of these dimensions are derivativ...
118c4f28ebed8e80d880c12338c6cfab1ff9f11548bb46733943e571267b1428
def isAnnular(self): 'True if contains annular fuel.' fuelPin = self.getComponent(Flags.FUEL) if (not fuelPin): return False if (abs((fuelPin.getDimension('id') - 0.0)) < 1e-06): return False return True
True if contains annular fuel.
armi/reactor/blocks.py
isAnnular
crisobg1/armi
1
python
def isAnnular(self): fuelPin = self.getComponent(Flags.FUEL) if (not fuelPin): return False if (abs((fuelPin.getDimension('id') - 0.0)) < 1e-06): return False return True
def isAnnular(self): fuelPin = self.getComponent(Flags.FUEL) if (not fuelPin): return False if (abs((fuelPin.getDimension('id') - 0.0)) < 1e-06): return False return True<|docstring|>True if contains annular fuel.<|endoftext|>
ecde09bb5eb9d9dc0604d7f55c5413d202b6c5e823f6f9e4e0b95f97c7a99c71
def getDpaXs(self): 'Determine which cross sections should be used to compute dpa for this block.' if (settings.getMasterCs()['gridPlateDpaXsSet'] and self.hasFlags(Flags.GRID_PLATE)): dpaXsSetName = settings.getMasterCs()['gridPlateDpaXsSet'] else: dpaXsSetName = settings.getMasterCs()['dpa...
Determine which cross sections should be used to compute dpa for this block.
armi/reactor/blocks.py
getDpaXs
crisobg1/armi
1
python
def getDpaXs(self): if (settings.getMasterCs()['gridPlateDpaXsSet'] and self.hasFlags(Flags.GRID_PLATE)): dpaXsSetName = settings.getMasterCs()['gridPlateDpaXsSet'] else: dpaXsSetName = settings.getMasterCs()['dpaXsSet'] if (not dpaXsSetName): return None try: return...
def getDpaXs(self): if (settings.getMasterCs()['gridPlateDpaXsSet'] and self.hasFlags(Flags.GRID_PLATE)): dpaXsSetName = settings.getMasterCs()['gridPlateDpaXsSet'] else: dpaXsSetName = settings.getMasterCs()['dpaXsSet'] if (not dpaXsSetName): return None try: return...
33c32c8d43ce33f3560486b6bc491143aafd47d0886a11e1ab7892a6af8824ee
def breakFuelComponentsIntoIndividuals(self): '\n Split block-level components (in fuel blocks) into pin-level components.\n\n The fuel component will be broken up according to its multiplicity.\n\n Order matters! The first pin component will be located at a particular (x, y), which\n wi...
Split block-level components (in fuel blocks) into pin-level components. The fuel component will be broken up according to its multiplicity. Order matters! The first pin component will be located at a particular (x, y), which will be used in the fluxRecon module to determine the interpolated flux. The fuel will beco...
armi/reactor/blocks.py
breakFuelComponentsIntoIndividuals
crisobg1/armi
1
python
def breakFuelComponentsIntoIndividuals(self): '\n Split block-level components (in fuel blocks) into pin-level components.\n\n The fuel component will be broken up according to its multiplicity.\n\n Order matters! The first pin component will be located at a particular (x, y), which\n wi...
def breakFuelComponentsIntoIndividuals(self): '\n Split block-level components (in fuel blocks) into pin-level components.\n\n The fuel component will be broken up according to its multiplicity.\n\n Order matters! The first pin component will be located at a particular (x, y), which\n wi...
69a3c0aa66629600a07684df862c809fb14865d5dfd21fa5dd4abd7bc5754340
def getIntegratedMgFlux(self, adjoint=False, gamma=False): '\n Return the volume integrated multigroup neutron tracklength in [n-cm/s].\n\n The first entry is the first energy group (fastest neutrons). Each additional\n group is the next energy group, as set in the ISOTXS library.\n\n Pa...
Return the volume integrated multigroup neutron tracklength in [n-cm/s]. The first entry is the first energy group (fastest neutrons). Each additional group is the next energy group, as set in the ISOTXS library. Parameters ---------- adjoint : bool, optional Return adjoint flux instead of real gamma : bool, opt...
armi/reactor/blocks.py
getIntegratedMgFlux
crisobg1/armi
1
python
def getIntegratedMgFlux(self, adjoint=False, gamma=False): '\n Return the volume integrated multigroup neutron tracklength in [n-cm/s].\n\n The first entry is the first energy group (fastest neutrons). Each additional\n group is the next energy group, as set in the ISOTXS library.\n\n Pa...
def getIntegratedMgFlux(self, adjoint=False, gamma=False): '\n Return the volume integrated multigroup neutron tracklength in [n-cm/s].\n\n The first entry is the first energy group (fastest neutrons). Each additional\n group is the next energy group, as set in the ISOTXS library.\n\n Pa...
47817d55dd1044e00bef658ff335879df015f814b1e7ad516a14a46f32aa1354
def getLumpedFissionProductCollection(self): '\n Get collection of LFP objects. Will work for global or block-level LFP models.\n\n Returns\n -------\n lfps : LumpedFissionProduct\n lfpName keys , lfp object values\n\n See Also\n --------\n armi.physics.ne...
Get collection of LFP objects. Will work for global or block-level LFP models. Returns ------- lfps : LumpedFissionProduct lfpName keys , lfp object values See Also -------- armi.physics.neutronics.fissionProductModel.lumpedFissionProduct.LumpedFissionProduct : LFP object
armi/reactor/blocks.py
getLumpedFissionProductCollection
crisobg1/armi
1
python
def getLumpedFissionProductCollection(self): '\n Get collection of LFP objects. Will work for global or block-level LFP models.\n\n Returns\n -------\n lfps : LumpedFissionProduct\n lfpName keys , lfp object values\n\n See Also\n --------\n armi.physics.ne...
def getLumpedFissionProductCollection(self): '\n Get collection of LFP objects. Will work for global or block-level LFP models.\n\n Returns\n -------\n lfps : LumpedFissionProduct\n lfpName keys , lfp object values\n\n See Also\n --------\n armi.physics.ne...
f416b148d9d6fe5e35a74b9020660f66584986d9c87c1e05be2f3e72b64c3d25
def getReactionRates(self, nucName, nDensity=None): "\n Parameters\n ----------\n nucName - str\n nuclide name -- e.g. 'U235'\n nDensity - float\n number Density\n\n Returns\n -------\n rxnRates : dict\n dictionary of reaction rates (...
Parameters ---------- nucName - str nuclide name -- e.g. 'U235' nDensity - float number Density Returns ------- rxnRates : dict dictionary of reaction rates (rxn/s) for nG, nF, n2n, nA and nP Note ---- If you set nDensity to 1/CM2_PER_BARN this makes 1 group cross section generation easier
armi/reactor/blocks.py
getReactionRates
crisobg1/armi
1
python
def getReactionRates(self, nucName, nDensity=None): "\n Parameters\n ----------\n nucName - str\n nuclide name -- e.g. 'U235'\n nDensity - float\n number Density\n\n Returns\n -------\n rxnRates : dict\n dictionary of reaction rates (...
def getReactionRates(self, nucName, nDensity=None): "\n Parameters\n ----------\n nucName - str\n nuclide name -- e.g. 'U235'\n nDensity - float\n number Density\n\n Returns\n -------\n rxnRates : dict\n dictionary of reaction rates (...
4bd108f526c6aab8bc0e521c1eb219caa8eaffef90e73a7d94e4c073bebc51a2
def getMaxArea(self): 'Compute the max area of this block if it was totally full.' pitch = self.getPitch() if (not pitch): return 0.0 return hexagon.area(pitch)
Compute the max area of this block if it was totally full.
armi/reactor/blocks.py
getMaxArea
crisobg1/armi
1
python
def getMaxArea(self): pitch = self.getPitch() if (not pitch): return 0.0 return hexagon.area(pitch)
def getMaxArea(self): pitch = self.getPitch() if (not pitch): return 0.0 return hexagon.area(pitch)<|docstring|>Compute the max area of this block if it was totally full.<|endoftext|>
2240b24b2449f159cc2027bf9ef38add2592b1ebbc0ec162dee115a273b3cc21
def setPinPowers(self, powers, numPins, imax, jmax, gamma=False, removeSixCornerPins=False, powerKeySuffix=''): '\n Updates the pin powers of this block for the current rotation.\n\n Parameters\n ----------\n powers : list of floats\n The block-level pin linear power densities...
Updates the pin powers of this block for the current rotation. Parameters ---------- powers : list of floats The block-level pin linear power densities. pinPowers[i] represents the average linear power density of pin i. Power units are Watts/cm (Watts produced per cm of pin length). The "ARMI pin order...
armi/reactor/blocks.py
setPinPowers
crisobg1/armi
1
python
def setPinPowers(self, powers, numPins, imax, jmax, gamma=False, removeSixCornerPins=False, powerKeySuffix=): '\n Updates the pin powers of this block for the current rotation.\n\n Parameters\n ----------\n powers : list of floats\n The block-level pin linear power densities. ...
def setPinPowers(self, powers, numPins, imax, jmax, gamma=False, removeSixCornerPins=False, powerKeySuffix=): '\n Updates the pin powers of this block for the current rotation.\n\n Parameters\n ----------\n powers : list of floats\n The block-level pin linear power densities. ...
81e2bfd19c6270e466daab88be181ece78850287a1593c93ff43969fb4204023
def rotatePins(self, rotNum, justCompute=False): '\n Rotate an assembly, which means rotating the indexing of pins.\n\n Notes\n -----\n Changing (x,y) positions of pins does NOT constitute rotation, because the indexing of pin\n atom densities must be re-ordered. Re-order indexin...
Rotate an assembly, which means rotating the indexing of pins. Notes ----- Changing (x,y) positions of pins does NOT constitute rotation, because the indexing of pin atom densities must be re-ordered. Re-order indexing of pin-level quantities, NOT (x,y) locations of pins. Otherwise, subchannel input will be in wrong...
armi/reactor/blocks.py
rotatePins
crisobg1/armi
1
python
def rotatePins(self, rotNum, justCompute=False): '\n Rotate an assembly, which means rotating the indexing of pins.\n\n Notes\n -----\n Changing (x,y) positions of pins does NOT constitute rotation, because the indexing of pin\n atom densities must be re-ordered. Re-order indexin...
def rotatePins(self, rotNum, justCompute=False): '\n Rotate an assembly, which means rotating the indexing of pins.\n\n Notes\n -----\n Changing (x,y) positions of pins does NOT constitute rotation, because the indexing of pin\n atom densities must be re-ordered. Re-order indexin...
da28aee5ee31a693fc5dafb755b8128c307f93fb6459ae856b0fc9f190b90a80
def verifyBlockDims(self): 'Perform some checks on this type of block before it is assembled.' try: wireComp = self.getComponent(Flags.WIRE) ductComps = self.getComponents(Flags.DUCT) cladComp = self.getComponent(Flags.CLAD) except ValueError: runLog.info('Block design {} is ...
Perform some checks on this type of block before it is assembled.
armi/reactor/blocks.py
verifyBlockDims
crisobg1/armi
1
python
def verifyBlockDims(self): try: wireComp = self.getComponent(Flags.WIRE) ductComps = self.getComponents(Flags.DUCT) cladComp = self.getComponent(Flags.CLAD) except ValueError: runLog.info('Block design {} is too complicated to verify dimensions. Make sure they are correct!'....
def verifyBlockDims(self): try: wireComp = self.getComponent(Flags.WIRE) ductComps = self.getComponents(Flags.DUCT) cladComp = self.getComponent(Flags.CLAD) except ValueError: runLog.info('Block design {} is too complicated to verify dimensions. Make sure they are correct!'....
54c5b4b23507c9ee06e5068a5fd48b3ee2d08d78401e7feef083178a7673d175
def getPinToDuctGap(self, cold=False): '\n Returns the distance in cm between the outer most pin and the duct in a block.\n\n Parameters\n ----------\n cold : boolean\n Determines whether the results should be cold or hot dimensions.\n\n Returns\n -------\n ...
Returns the distance in cm between the outer most pin and the duct in a block. Parameters ---------- cold : boolean Determines whether the results should be cold or hot dimensions. Returns ------- pinToDuctGap : float Returns the diameteral gap between the outer most pins in a hex pack to the duct inner f...
armi/reactor/blocks.py
getPinToDuctGap
crisobg1/armi
1
python
def getPinToDuctGap(self, cold=False): '\n Returns the distance in cm between the outer most pin and the duct in a block.\n\n Parameters\n ----------\n cold : boolean\n Determines whether the results should be cold or hot dimensions.\n\n Returns\n -------\n ...
def getPinToDuctGap(self, cold=False): '\n Returns the distance in cm between the outer most pin and the duct in a block.\n\n Parameters\n ----------\n cold : boolean\n Determines whether the results should be cold or hot dimensions.\n\n Returns\n -------\n ...
8c1171c8b98bdca1f1233ed9bb56a1b1173d4741e86a72451e4aeee1113d8c0c
def getRotationNum(self): '\n Get index 0 through 5 indicating number of rotations counterclockwise around the z-axis.\n ' return (numpy.rint(((self.p.orientation[2] / 360.0) * 6)) % 6)
Get index 0 through 5 indicating number of rotations counterclockwise around the z-axis.
armi/reactor/blocks.py
getRotationNum
crisobg1/armi
1
python
def getRotationNum(self): '\n \n ' return (numpy.rint(((self.p.orientation[2] / 360.0) * 6)) % 6)
def getRotationNum(self): '\n \n ' return (numpy.rint(((self.p.orientation[2] / 360.0) * 6)) % 6)<|docstring|>Get index 0 through 5 indicating number of rotations counterclockwise around the z-axis.<|endoftext|>
d1814555ffb037de2571dc3c0221a9596cab515d119abd77ee1d293742ed407f
def setRotationNum(self, rotNum): '\n Set orientation based on a number 0 through 5 indicating number of rotations\n counterclockwise around the z-axis.\n ' self.p.orientation[2] = (60.0 * rotNum)
Set orientation based on a number 0 through 5 indicating number of rotations counterclockwise around the z-axis.
armi/reactor/blocks.py
setRotationNum
crisobg1/armi
1
python
def setRotationNum(self, rotNum): '\n Set orientation based on a number 0 through 5 indicating number of rotations\n counterclockwise around the z-axis.\n ' self.p.orientation[2] = (60.0 * rotNum)
def setRotationNum(self, rotNum): '\n Set orientation based on a number 0 through 5 indicating number of rotations\n counterclockwise around the z-axis.\n ' self.p.orientation[2] = (60.0 * rotNum)<|docstring|>Set orientation based on a number 0 through 5 indicating number of rotations count...
249f47b5a710fd760502963476f0b6db4a06d7ae85bf1bfa08e2c6b2f00cc511
def getSymmetryFactor(self): "\n Return a factor between 1 and N where 1/N is how much cut-off by symmetry lines this mesh\n cell is.\n\n Reactor-level meshes have symmetry information so we have a reactor for this to work. That's\n why it's not implemented on the grid/locator level.\n\n...
Return a factor between 1 and N where 1/N is how much cut-off by symmetry lines this mesh cell is. Reactor-level meshes have symmetry information so we have a reactor for this to work. That's why it's not implemented on the grid/locator level. When edge-assemblies are included on both edges (i.e. MCNP or DIF3D-FD 1/3...
armi/reactor/blocks.py
getSymmetryFactor
crisobg1/armi
1
python
def getSymmetryFactor(self): "\n Return a factor between 1 and N where 1/N is how much cut-off by symmetry lines this mesh\n cell is.\n\n Reactor-level meshes have symmetry information so we have a reactor for this to work. That's\n why it's not implemented on the grid/locator level.\n\n...
def getSymmetryFactor(self): "\n Return a factor between 1 and N where 1/N is how much cut-off by symmetry lines this mesh\n cell is.\n\n Reactor-level meshes have symmetry information so we have a reactor for this to work. That's\n why it's not implemented on the grid/locator level.\n\n...
7d3c5d28902df5ea72bf3b161ac08cfcb7894cce128c9711e4d5a14b5c60fa7d
def getPinCoordinates(self): "\n Compute the centroid coordinates of any pins in this block.\n\n Returns\n -------\n localCoordinates : list\n list of (x,y,z) pairs representing each pin in the order they are listed as children\n\n Notes\n -----\n This ass...
Compute the centroid coordinates of any pins in this block. Returns ------- localCoordinates : list list of (x,y,z) pairs representing each pin in the order they are listed as children Notes ----- This assumes hexagonal pin lattice and needs to be upgraded once more generic geometry options are needed. A block w...
armi/reactor/blocks.py
getPinCoordinates
crisobg1/armi
1
python
def getPinCoordinates(self): "\n Compute the centroid coordinates of any pins in this block.\n\n Returns\n -------\n localCoordinates : list\n list of (x,y,z) pairs representing each pin in the order they are listed as children\n\n Notes\n -----\n This ass...
def getPinCoordinates(self): "\n Compute the centroid coordinates of any pins in this block.\n\n Returns\n -------\n localCoordinates : list\n list of (x,y,z) pairs representing each pin in the order they are listed as children\n\n Notes\n -----\n This ass...
ca9b57f1abb7fd339a2baf482db40294fdf26ff0916ec665c7c775599479b456
def getPinCenterFlatToFlat(self, cold=False): 'Return the flat-to-flat distance between the centers of opposing pins in the outermost ring.' clad = self.getComponent(Flags.CLAD) loc = self.LOCATION_CLASS() nRings = loc.getNumRings(clad.getDimension('mult'), silent=True) pinPitch = self.getPinPitch(c...
Return the flat-to-flat distance between the centers of opposing pins in the outermost ring.
armi/reactor/blocks.py
getPinCenterFlatToFlat
crisobg1/armi
1
python
def getPinCenterFlatToFlat(self, cold=False): clad = self.getComponent(Flags.CLAD) loc = self.LOCATION_CLASS() nRings = loc.getNumRings(clad.getDimension('mult'), silent=True) pinPitch = self.getPinPitch(cold=cold) pinCenterCornerToCorner = ((2 * (nRings - 1)) * pinPitch) pinCenterFlatToFla...
def getPinCenterFlatToFlat(self, cold=False): clad = self.getComponent(Flags.CLAD) loc = self.LOCATION_CLASS() nRings = loc.getNumRings(clad.getDimension('mult'), silent=True) pinPitch = self.getPinPitch(cold=cold) pinCenterCornerToCorner = ((2 * (nRings - 1)) * pinPitch) pinCenterFlatToFla...
1039bf0476778868a658869bbf7661a641449883f0ae026a239a7533ad96e4e6
def hasPinPitch(self): 'Return True if the block has enough information to calculate pin pitch.' return (self.getComponent(Flags.CLAD) and self.getComponent(Flags.WIRE))
Return True if the block has enough information to calculate pin pitch.
armi/reactor/blocks.py
hasPinPitch
crisobg1/armi
1
python
def hasPinPitch(self): return (self.getComponent(Flags.CLAD) and self.getComponent(Flags.WIRE))
def hasPinPitch(self): return (self.getComponent(Flags.CLAD) and self.getComponent(Flags.WIRE))<|docstring|>Return True if the block has enough information to calculate pin pitch.<|endoftext|>
1f22f0e3a78e0587351ee9489bf3dc07362f9c6a21b31a4d98a4f65f1bf3184a
def getPinPitch(self, cold=False): '\n Get the pin pitch in cm.\n\n Assumes that the pin pitch is defined entirely by contacting cladding tubes\n and wire wraps. Grid spacers not yet supported.\n\n Parameters\n ----------\n cold : boolean\n Determines whether the...
Get the pin pitch in cm. Assumes that the pin pitch is defined entirely by contacting cladding tubes and wire wraps. Grid spacers not yet supported. Parameters ---------- cold : boolean Determines whether the dimensions should be cold or hot Returns ------- pinPitch : float pin pitch in cm
armi/reactor/blocks.py
getPinPitch
crisobg1/armi
1
python
def getPinPitch(self, cold=False): '\n Get the pin pitch in cm.\n\n Assumes that the pin pitch is defined entirely by contacting cladding tubes\n and wire wraps. Grid spacers not yet supported.\n\n Parameters\n ----------\n cold : boolean\n Determines whether the...
def getPinPitch(self, cold=False): '\n Get the pin pitch in cm.\n\n Assumes that the pin pitch is defined entirely by contacting cladding tubes\n and wire wraps. Grid spacers not yet supported.\n\n Parameters\n ----------\n cold : boolean\n Determines whether the...
0dc7625370dc14e828b7e309e502cd77441441b0319577af1cf99e00c019b02f
def getMaxArea(self): 'Get area of this block if it were totally full.' (xw, yw) = self.getPitch() return (xw * yw)
Get area of this block if it were totally full.
armi/reactor/blocks.py
getMaxArea
crisobg1/armi
1
python
def getMaxArea(self): (xw, yw) = self.getPitch() return (xw * yw)
def getMaxArea(self): (xw, yw) = self.getPitch() return (xw * yw)<|docstring|>Get area of this block if it were totally full.<|endoftext|>
99f2eb129d0dfd8c99eca525cc08cfbb816bf8753fcc39cc5c10733f4b4c1949
def getSymmetryFactor(self): '\n Return a factor between 1 and N where 1/N is how much cut-off by symmetry lines this mesh\n cell is.\n ' if (self.r is not None): indices = self.spatialLocator.getCompleteIndices() if (geometry.THROUGH_CENTER_ASSEMBLY in self.r.core.symmetry)...
Return a factor between 1 and N where 1/N is how much cut-off by symmetry lines this mesh cell is.
armi/reactor/blocks.py
getSymmetryFactor
crisobg1/armi
1
python
def getSymmetryFactor(self): '\n Return a factor between 1 and N where 1/N is how much cut-off by symmetry lines this mesh\n cell is.\n ' if (self.r is not None): indices = self.spatialLocator.getCompleteIndices() if (geometry.THROUGH_CENTER_ASSEMBLY in self.r.core.symmetry)...
def getSymmetryFactor(self): '\n Return a factor between 1 and N where 1/N is how much cut-off by symmetry lines this mesh\n cell is.\n ' if (self.r is not None): indices = self.spatialLocator.getCompleteIndices() if (geometry.THROUGH_CENTER_ASSEMBLY in self.r.core.symmetry)...
ca4f50f0bd0ae313700cb8ed6dc19b1afbd41371f7b8120afae6dc2164eb9ed0
def getPinCenterFlatToFlat(self, cold=False): '\n Return the flat-to-flat distance between the centers of opposing pins in the outermost ring.\n ' clad = self.getComponent(Flags.CLAD) loc = self.LOCATION_CLASS() nRings = loc.getNumRings(clad.getDimension('mult'), silent=True) pinPitch ...
Return the flat-to-flat distance between the centers of opposing pins in the outermost ring.
armi/reactor/blocks.py
getPinCenterFlatToFlat
crisobg1/armi
1
python
def getPinCenterFlatToFlat(self, cold=False): '\n \n ' clad = self.getComponent(Flags.CLAD) loc = self.LOCATION_CLASS() nRings = loc.getNumRings(clad.getDimension('mult'), silent=True) pinPitch = self.getPinPitch(cold=cold) return ((2 * (nRings - 1)) * pinPitch)
def getPinCenterFlatToFlat(self, cold=False): '\n \n ' clad = self.getComponent(Flags.CLAD) loc = self.LOCATION_CLASS() nRings = loc.getNumRings(clad.getDimension('mult'), silent=True) pinPitch = self.getPinPitch(cold=cold) return ((2 * (nRings - 1)) * pinPitch)<|docstring|>Return ...
de7f6a89944938b7a9158484dec38e1bac918c2e81ab234c5c9c5926ba8ffcba
def getMaxArea(self): 'Return the area of the Theta-R-Z block if it was totally full.' raise NotImplementedError('Cannot get max area of a TRZ block. Fully specify your geometry.')
Return the area of the Theta-R-Z block if it was totally full.
armi/reactor/blocks.py
getMaxArea
crisobg1/armi
1
python
def getMaxArea(self): raise NotImplementedError('Cannot get max area of a TRZ block. Fully specify your geometry.')
def getMaxArea(self): raise NotImplementedError('Cannot get max area of a TRZ block. Fully specify your geometry.')<|docstring|>Return the area of the Theta-R-Z block if it was totally full.<|endoftext|>
e74edb97d5a80e57cfd9f21088d6c939aa9356c2ae63de20f657a2edb63bd4cd
def radialInner(self): 'Return a smallest radius of all the components.' innerRadii = self.getDimensions('inner_radius') smallestInner = (min(innerRadii) if innerRadii else None) return smallestInner
Return a smallest radius of all the components.
armi/reactor/blocks.py
radialInner
crisobg1/armi
1
python
def radialInner(self): innerRadii = self.getDimensions('inner_radius') smallestInner = (min(innerRadii) if innerRadii else None) return smallestInner
def radialInner(self): innerRadii = self.getDimensions('inner_radius') smallestInner = (min(innerRadii) if innerRadii else None) return smallestInner<|docstring|>Return a smallest radius of all the components.<|endoftext|>
4176f417f79ca0eebb46505907b0e27edc0ed245bbf138c1073ce52fda79c29e
def radialOuter(self): 'Return a largest radius of all the components.' outerRadii = self.getDimensions('outer_radius') largestOuter = (max(outerRadii) if outerRadii else None) return largestOuter
Return a largest radius of all the components.
armi/reactor/blocks.py
radialOuter
crisobg1/armi
1
python
def radialOuter(self): outerRadii = self.getDimensions('outer_radius') largestOuter = (max(outerRadii) if outerRadii else None) return largestOuter
def radialOuter(self): outerRadii = self.getDimensions('outer_radius') largestOuter = (max(outerRadii) if outerRadii else None) return largestOuter<|docstring|>Return a largest radius of all the components.<|endoftext|>
dd430868cb8c1cad289f3268b5be1abacf6be82e5724996e0aee553aa4857ec6
def thetaInner(self): 'Return a smallest theta of all the components.' innerTheta = self.getDimensions('inner_theta') smallestInner = (min(innerTheta) if innerTheta else None) return smallestInner
Return a smallest theta of all the components.
armi/reactor/blocks.py
thetaInner
crisobg1/armi
1
python
def thetaInner(self): innerTheta = self.getDimensions('inner_theta') smallestInner = (min(innerTheta) if innerTheta else None) return smallestInner
def thetaInner(self): innerTheta = self.getDimensions('inner_theta') smallestInner = (min(innerTheta) if innerTheta else None) return smallestInner<|docstring|>Return a smallest theta of all the components.<|endoftext|>
2b6e5fb52b6fe5691546f6644f55d9c7bc570b25cbcf236c48dd14540d08b1ca
def thetaOuter(self): 'Return a largest theta of all the components.' outerTheta = self.getDimensions('outer_theta') largestOuter = (min(outerTheta) if outerTheta else None) return largestOuter
Return a largest theta of all the components.
armi/reactor/blocks.py
thetaOuter
crisobg1/armi
1
python
def thetaOuter(self): outerTheta = self.getDimensions('outer_theta') largestOuter = (min(outerTheta) if outerTheta else None) return largestOuter
def thetaOuter(self): outerTheta = self.getDimensions('outer_theta') largestOuter = (min(outerTheta) if outerTheta else None) return largestOuter<|docstring|>Return a largest theta of all the components.<|endoftext|>
b02d9684fdc998ed7f8e60573ca84b8936985a2b0b48edf51c2473eb33e3723d
def axialInner(self): 'Return the lower z-coordinate.' return self.getDimensions('inner_axial')
Return the lower z-coordinate.
armi/reactor/blocks.py
axialInner
crisobg1/armi
1
python
def axialInner(self): return self.getDimensions('inner_axial')
def axialInner(self): return self.getDimensions('inner_axial')<|docstring|>Return the lower z-coordinate.<|endoftext|>
dffca1dd729afb5674b21f0d307b261ccb31ca394b0d11a60d24c90e9fe43592
def axialOuter(self): 'Return the upper z-coordinate.' return self.getDimensions('outer_axial')
Return the upper z-coordinate.
armi/reactor/blocks.py
axialOuter
crisobg1/armi
1
python
def axialOuter(self): return self.getDimensions('outer_axial')
def axialOuter(self): return self.getDimensions('outer_axial')<|docstring|>Return the upper z-coordinate.<|endoftext|>
b89c6f34834886b226e502b13560ddc5542bbb9eb8f52bb2c4e11cdcbd1d5081
def verifyBlockDims(self): 'Perform dimension checks related to ThetaRZ blocks.' return
Perform dimension checks related to ThetaRZ blocks.
armi/reactor/blocks.py
verifyBlockDims
crisobg1/armi
1
python
def verifyBlockDims(self): return
def verifyBlockDims(self): return<|docstring|>Perform dimension checks related to ThetaRZ blocks.<|endoftext|>