Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added yield_normalised for better interface to yields #44

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

aidancrilly
Copy link
Owner

Simple QoL addition, single function get normalised primary yields. Changing from:

# Scale from DT yield
Y_DT = 1.0   # DT neutron yield, all reactions scaled by this value
Y_DD = nst.yield_from_dt_yield_ratio('dd',Y_DT,Tion,frac_D=frac_D,frac_T=frac_T)
Y_TT = nst.yield_from_dt_yield_ratio('tt',Y_DT,Tion,frac_D=frac_D,frac_T=frac_T)

to:

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

@aidancrilly aidancrilly self-assigned this Sep 2, 2024
@aidancrilly
Copy link
Owner Author

Closes #40

@aidancrilly aidancrilly linked an issue Sep 2, 2024 that may be closed by this pull request
@aidancrilly aidancrilly merged commit 5081572 into master Sep 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature request: yields unrelated to DT yield
1 participant