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

adding nuc_with_data to allow all nuclides #40

Merged
merged 1 commit into from
May 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/openmc_depletion_plotter/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
import numpy as np
import matplotlib.pyplot as plt

lots_of_nuclides = []
elements = list(openmc.data.ATOMIC_SYMBOL.values())
for el in elements:
for atomic_num in range(1, 1000):
lots_of_nuclides.append(f'{el}{atomic_num}')


def plot_activity_vs_time(
self,
Expand All @@ -37,7 +43,7 @@ def plot_activity_vs_time(

all_materials = []
for counter, step in enumerate(time_steps):
materials = self.export_to_materials(burnup_index=counter, path=path)[
materials = self.export_to_materials(nuc_with_data=lots_of_nuclides,burnup_index=counter, path=path)[
material_index
]
all_materials.append(materials)
Expand Down Expand Up @@ -165,7 +171,7 @@ def plot_atoms_vs_time(

all_materials = []
for counter, step in enumerate(time_steps):
materials = self.export_to_materials(burnup_index=counter, path=path)[
materials = self.export_to_materials(nuc_with_data=lots_of_nuclides,burnup_index=counter, path=path)[
material_index
]
all_materials.append(materials)
Expand Down