Wrong scale on my plots?

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

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')

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 :confused:

@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