fudge.legacy.converting package¶
Subpackages¶
Submodules¶
fudge.legacy.converting.endfFileToGNDS module¶
-
fudge.legacy.converting.endfFileToGNDS.
endfFileToGNDS
(fileName, useFilesQAlways=True, singleMTOnly=None, evaluation=None, MTs2Skip=None, parseCrossSectionOnly=False, toStdOut=True, toStdErr=True, logFile=None, skipBadData=False, doCovariances=True, verboseWarnings=False, verbose=1, reconstructResonances=True, **kwargs)[source]¶
fudge.legacy.converting.endfFormats module¶
fudge.legacy.converting.endfThermScattToGNDS module¶
fudge.legacy.converting.endf_endl module¶
-
fudge.legacy.converting.endf_endl.
ENDF_MTZAEquation
(projectileZA, targetZA, MT)[source]¶ This function returns a python list of length 2. The first element is a list of all outgoing particle ZA’s (including the residual) for the reaction of projectileZA + targetZA with ENDF’s reaction identifier MT. The second element is a reaction equation for this projectileZA, targetZA and MT. For example ENDF_MTZAEquation( 1, 95242, 22 ) returns
([1, 2004, 93238], ‘n + Am242 -> n + He4 + Np238’)That is, for a neutron ( projectileZA = 1 ) hitting Am242 ( targetZA = 95242 ) with MT = 22 - ENDF (z,na) reaction - the outgoing particle ZA’s are [1, 2004, 93238] and the reaction equation is ‘n + Am242 -> n + He4 + Np238’.
-
class
fudge.legacy.converting.endf_endl.
endfMTtoC_ProductList
(C, reactionLabel, isFission=0, ns=0, H1s=0, H2s=0, H3s=0, He3s=0, He4s=0, gammas=0, residualLevel=None)[source]¶
-
fudge.legacy.converting.endf_endl.
endfMTtoC_ProductList_excitedStateInitializer
(list, MTGround, MTContinuum, C, label, ns=0, H1s=0, H2s=0, H3s=0, He3s=0, He4s=0, gammas=0)[source]¶
fudge.legacy.converting.endlToGNDS module¶
-
fudge.legacy.converting.endlToGNDS.
toGNDS
(self, evaluationLibrary, evaluationVersion, excludeAverageProductData=True, verbose=0)[source]¶ Returns an reactionSuite for self where self is an endlZA class.
fudge.legacy.converting.gndsToENDF6 module¶
fudge.legacy.converting.toGNDSMisc module¶
-
fudge.legacy.converting.toGNDSMisc.
addParticleData
(particle, info, massValue, spinValue, parityValue, chargeValue, halflifeValue)[source]¶
-
fudge.legacy.converting.toGNDSMisc.
addUnspecifiedDistributions
(info, outputChannel, frame=None)[source]¶ For products with no distribution, assign an unspecified distribution. Interim products before breakup get an ‘implicitProduct’ conversion flag (so they aren’t written back to ENDF-6), as are heavy residuals when the first product is a neutron. Others are explicit, to ensure that the product (plus mass) appears in resulting ENDF file.
-
fudge.legacy.converting.toGNDSMisc.
getPoPsParticle
(info, ZA, name=None, levelIndex=None, level=0.0, levelUnit='MeV')[source]¶
-
fudge.legacy.converting.toGNDSMisc.
getTypeName
(info, ZA, name=None, levelIndex=None, level=0.0, levelUnit='MeV')[source]¶ Returns the name for this ZA and level if present. Returned name is of the form Am242, Am242_m1, Am242_e2. levelIndex must be None or an integer > 0.