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

Fix config change not propagating through to decay energies #2825

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

gridley
Copy link
Contributor

@gridley gridley commented Jan 9, 2024

Description

Changing the openmc.config chain file was not propagating through to changing the DECAY_ENERGIES variable, giving incorrect results if a user wished to compare decay heats between two chains.

For example, I was trying to assess how much error the CASL decay chain introduced compared to the full ENDF chain. I was finding some strange results, with decay heat far below 7% for a PWR pin cell.

Fixes #2824

Also ran autopep8 on config.py.

Before this change (wrong)

image

After this change (right, expected 7% decay heat)

image

Copy link
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gridley!

@paulromano paulromano merged commit cc15f5e into openmc-dev:develop Jan 11, 2024
18 checks passed
@gridley gridley deleted the reset-decay-energies branch July 10, 2024 18:23
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.

_DECAY_ENERGIES not cleared when changing chain in openmc.config
2 participants