IRaheel
September 30, 2022, 10:44am
1
Hi experts,
Sorry for the silly question but I don’t understand why my plots have the wrong scales on them when i have run my depletion calculation over the course of 180 days and converted to seconds so [30 * 24 * 60 * 60] * 6?
Is this something I have to manually change?
Many thanks,
Thanks for posting
time_step can be requested in different units. Could I take a look at the part where you get the time_steps
IRaheel
September 30, 2022, 1:30pm
3
Hi and thank you for your response
This is what I have inputted.
Ah yes I see what is happening here.
the get_atoms method defaults to having time_units in seconds
Try calling get_atoms with the time_units set to ‘d’
Your code would look like
_, Am241 = results.get_atoms(mat="1", nuc="Am241", time_step_units='d')
IRaheel
September 30, 2022, 4:07pm
5
Thank you!
Unfortunately I’ve just tried this but it gives an error saying
TypeError: get_atoms() got an unexpected keyword argument ‘time_steps_units’.
This feature was recently added to openmc so it might require an update to the latest version
strange… I am using the latest version
@IRaheel I think you just have a typo: it should be time_step_units, not time_steps_units
1 Like
I have tried that too but it still says unexpected keyword …
Would it be possible to check the version of openmc
import openmc
print(openmc.__version__)
The latest version is 0.13.4-dev