armi.physics.neutronics.isotopicDepletion.isotopicDepletionInterface module¶
An abstract class for interfaces between ARMI and programs that simulate transmutation and decay.
-
class
armi.physics.neutronics.isotopicDepletion.isotopicDepletionInterface.AbstractIsotopicDepleter(r=None, cs=None, o=None)[source]¶ Bases:
objectInteract with a depletion code
This interface and subClasses deplete under a flux defined outside this interface
The depletion in this analysis only depends on the flux, material vectors, nuclear data and countinuous source and loss objects.
The depleters derived from this abstract class use all the fission products armi can handle – i.e. do not form lumped fission products.
_depleteByName contains a ARMI objects to deplete keyed by name.
-
name= None¶
-
function= 'depletion'¶
-
-
armi.physics.neutronics.isotopicDepletion.isotopicDepletionInterface.makeXsecTable(compositeName, xsType, mgFlux, isotxs, headerFormat='$ xsecs for {}', tableFormat='\n{mcnpId} {nG:.5e} {nF:.5e} {n2n:.5e} {n3n:.5e} {nA:.5e} {nP:.5e}')[source]¶ Make a cross section table for depletion physics input decks.
- Parameters
armiObject (armiObject) – an armi object – batch or block – with a .p.xsType and a getMgFlux method
activeNuclides (list) – a list of the nucNames of active isotopes
isotxs (isotxs object) –
headerFormat (string (optional)) – this is the format in which the elements of the header with be returned – i.e. if you use a .format() call with the case name you’ll return a formatted list of string elements
tableFormat (string (optional)) – this is the format in which the elements of the table with be returned – i.e. if you use a .format() call with mcnpId, nG, nF, n2n, n3n, nA, and nP you’ll get the format you want. If you use a .format() call with the case name you’ll return a formatted list of string elements
Results –
------- –
output (list) – a list of string elements that together make a xsec card
-
class
armi.physics.neutronics.isotopicDepletion.isotopicDepletionInterface.AbstractIsotopicDepletionReader(r=None, externalCodeInterface=None, fName=None)[source]¶ Bases:
armi.interfaces.OutputReaderRead number density output produced by the isotopic depletion
-
class
armi.physics.neutronics.isotopicDepletion.isotopicDepletionInterface.Csrc[source]¶ Bases:
objectWrites a continuous source term card in a depletion interface.
Notes
The chemical vector is a dictionary of chemicals and their removal rate constant – this works like a decay constant.
The isotopic vector is used to make a source material in continuous source definitions.
This is also the base class for continuous loss cards.