fudge.legacy.converting package

Subpackages

Submodules

fudge.legacy.converting.endfFileToGNDS module

fudge.legacy.converting.endfFileToGNDS.addUnspecifiedDistributions(info, outputChannel)[source]
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]
class fudge.legacy.converting.endfFileToGNDS.logFiles(toStdOut=False, toStdErr=False, logFile=None, defaultIsStderrWriting=True)[source]
write(msg, stderrWriting=None)[source]
fudge.legacy.converting.endfFileToGNDS.readMF1MT451(_MAT, _MTDatas, styleName='eval', logFile=None, verboseWarnings=False, **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.ENDLCS_To_ENDFMT(projectile)[source]
getMTFromCS(C, S, CCounts=0)[source]
fudge.legacy.converting.endf_endl.ZAAndMATFromParticleName(particleName)[source]
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.endf_endl.endfZAPFromMT(MT)[source]

This function identifies the outgoing particle (i.e., ZAP) from the MT number. The outgoing particle is almost always a neutron, except in a few cases.

fudge.legacy.converting.endf_endl.getCSFromMT(MT)[source]
fudge.legacy.converting.endf_endl.getMTFromC(C)[source]
fudge.legacy.converting.endf_endl.getParticleNameFromMAT(MAT)[source]

fudge.legacy.converting.endlToGNDS module

fudge.legacy.converting.endlToGNDS.getXYInterpolation(data)[source]
fudge.legacy.converting.endlToGNDS.returnConstantQ(label, Q_MeV, crossSection)[source]
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.endlToGNDS.uncorrelated(style, frame, angularSubform, energySubform)[source]

fudge.legacy.converting.gndsToENDF6 module

fudge.legacy.converting.toGNDSMisc module

fudge.legacy.converting.toGNDSMisc.ZAToName(ZA)[source]
fudge.legacy.converting.toGNDSMisc.addNucleusInfoForLightNuclei(ZA, nucleus, info)[source]
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.

fudge.legacy.converting.toGNDSMisc.getTypeNameENDF(info, ZA, undefinedLevelInfo)[source]
fudge.legacy.converting.toGNDSMisc.getTypeNameGamma(info, ZA, level=None, levelIndex=None)[source]
class fudge.legacy.converting.toGNDSMisc.infos(style)[source]
addMassAWR(ZA, AWR, asTarget=True)[source]
logs
fudge.legacy.converting.toGNDSMisc.newGNDSParticle(info, particle, crossSection, attributes=None, multiplicity=1, outputChannel=None)[source]

The arguments to this function must match those of product.product excluding self and label.

fudge.legacy.converting.toGNDSMisc.returnConstantQ(style, Q, crossSection)[source]

Module contents