Invalid timestep unit 'a', 'year'

Hello,

When running a depletion calculation with timestep units ‘a’ (or ‘year’), there is an error “ValueError: Invalid timestep unit ‘a’”. I am using OpenMC 0.13.1 installed directly using conda/mamba. It seems that openmc.deplete.abc.py installed as a part of the mamba openmc package doesn’t contain an else-if branch for timestep units ‘a’ (or ‘year’). The source code available on OpenMC website, though, does have this else-if branching.

Has anyone else had this problem or could someone please confirm this?

Many thanks in advance.

Hi @lakshayjain and welcome to the community! The ability to specify year (‘a’) timestep units was added in OpenMC version 0.13.2. You’ll need to update your version of OpenMC in order to take advantage of this capability:

conda update openmc

Hi @paulromano,

Many thanks for clarifying this.