aidancrilly / NeSST

NeSST - Neutron Scattered Spectra Tool, ICF primary and scattered neutron spectroscopy analysis code
MIT License
3 stars 2 forks source link

feature request: yields unrelated to DT yield #40

Closed shimwell closed 2 months ago

shimwell commented 3 months ago

Just wondering if it would be worth trying to get the code to give yields that are not relative to the DT yield.

Currently yields are related to the DT yield but perhaps they could be absolute yields

perhaps a new function called yields_normalised could be made where the neutron yield of DD, DD, DT and TT reactions are found and 4 numbers are returned which all sum to 1?

aidancrilly commented 2 months ago

Hi Jon,

Thanks for your patience with the new issues, I am just back from parental leave and getting into the swing of things. Added a function for this to https://github.com/aidancrilly/NeSST/tree/yields_normalised works like so:

# Sum of primary yields is unity
Y_DT,Y_DD,Y_TT = nst.yields_normalised(Tion,frac_D=frac_D,frac_T=frac_T)

Will merge into master shortly

shimwell commented 2 months ago

Awesome many thanks.