fudge.gnds.reactions package

Submodules

fudge.gnds.reactions.base module

class fudge.gnds.reactions.base.base_reaction(outputChannel, ENDF_MT, documentation=None, label=None, process=None)[source]

Bases: xData.ancestry.ancestry

Base class for all types of reaction.

addDocumentation(documentation)[source]
ancestryMembers = ('crossSection', 'doubleDifferentialCrossSection', 'outputChannel')
calculateAverageProductData(style, indent='', **kwargs)[source]

Calculate average product data.

Parameters:
  • style – The style to use.
  • indent – string; The amount to indent and verbose output.
  • kwargs – string; All other parameters.
Returns:

check(info)[source]

This method is usually not called directly. Use reactionSuite.check() instead.

Checks cross section and outputChannel (and differential cross sections if available). Checks include:
do Z/A balance? do Q-value and thresholds agree? Does cross section domain agree with each product distribution/multiplicity domain? Does energy balance?

@:param info: dict @:return list of warnings

convertUnits(unitMap)[source]

See documentation for reactionSuite.convertUnits.

crossSection
cullStyles(styleList)[source]
domainMax
domainMin
domainUnit
domainUnitConversionFactor(unitTo)[source]
doubleDifferentialCrossSection
getDocumentation(name)[source]
getENDL_CS_ENDF_MT()[source]

Returns the reaction’s ENDL C, S and ENDF’s MT values as integers in a python dictionary with keys ‘C’, ‘S’ and ‘MT’ (e.g., { ‘C’ : 11, ‘S’ : 1, ‘MT’ : 53 }).

getQ(unit, final=True)[source]

Returns the Q-value for this reaction. Converted to float if possible, otherwise a string value is returned.

getReactionSuite()[source]
heatCrossSection(temperature, EMin, lowerlimit=None, upperlimit=None, interpolationAccuracy=0.001, heatAllPoints=False, doNotThin=True, heatBelowThreshold=True, heatAllEDomain=True, setThresholdToZero=False)[source]
label

Returns the reaction’s label.

classmethod parseXMLNode(element, xPath, linkData)[source]

Translate a <reaction> element from xml into a reaction class instance.

process
processGriddedCrossSections(style, verbosity=0, indent='', incrementalIndent=' ', isPhotoAtomic=False)[source]
processMC_cdf(style, tempInfo, indent='', incrementalIndent=' ')[source]
processMultiGroup(style, tempInfo, indent)[source]
thresholdQAs(unit, final=True)[source]
toString(indent='')[source]
toXML(indent='', **kwargs)[source]
toXMLList(indent='', **kwargs)[source]
updateLabel()[source]

Sets the reaction’s label from outputChannel products.

fudge.gnds.reactions.base.isGNDSReaction(o)[source]

Returns True if o is an instance of base_reaction or of a subclass thereof.

fudge.gnds.reactions.fissionComponent module

This module contains the fissionComponent class

class fudge.gnds.reactions.fissionComponent.fissionComponent(outputChannel, ENDF_MT, documentation=None, label=None, process=None)[source]

Bases: fudge.gnds.reactions.base.base_reaction

Special case of reaction, for storing 1st, 2nd, 3rd, etc fission chances when we also have total.

isBasicReaction()[source]
isCompleteReaction()[source]
moniker = 'fissionComponent'

fudge.gnds.reactions.production module

This module contains the production class, for storing production cross section of radioactive products

class fudge.gnds.reactions.production.production(outputChannel, ENDF_MT, documentation=None, label=None, process=None)[source]

Bases: fudge.gnds.reactions.base.base_reaction

Production reactions are another special case of the <reaction> class, used to store the cross section for producing specific radioactive products. Requires a cross section and product id, but no distributions. As with the summedReaction, ‘outputChannel’ should be a channels.simpleOutputChannel instance.

isBasicReaction()[source]
isCompleteReaction()[source]
moniker = 'production'

fudge.gnds.reactions.reaction module

This module contains the reaction class.

class fudge.gnds.reactions.reaction.reaction(outputChannel, ENDF_MT, documentation=None, label=None, process=None)[source]

Bases: fudge.gnds.reactions.base.base_reaction

This is the class for a normal gnds reaction.

ancestryMembers = ('crossSection', 'doubleDifferentialCrossSection', 'outputChannel', 'availableEnergy', 'availableMomentum')
getThreshold(unit)[source]
isBasicReaction()[source]
isCompleteReaction()[source]
moniker = 'reaction'
processCoulombPlusNuclearMuCutoff(style)[source]

fudge.gnds.reactions.summedReaction module

Module contents