# Question about depletion function

**URL:** <https://openmc.discourse.group/t/question-about-depletion-function/343>\
**Category:** User Support\
**Created:** [August 27, 2018, 9:18pm UTC](https://openmc.discourse.group/t/question-about-depletion-function/343 "2018-08-27T21:18:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufofist](https://avatars.discourse-cdn.com/v4/letter/u/dec6dc/32.png) [@ufofist](https://openmc.discourse.group/u/ufofist)\
**Post date:** [August 27, 2018, 9:18pm UTC](https://openmc.discourse.group/t/question-about-depletion-function/343/1 "2018-08-27T21:18:36Z")

</div>

Hi, I am trying to use openmc.depletion to do some depletion calculation. Does anyone have some examples for this function? Really appreciate it !

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [August 28, 2018, 9:04pm UTC](https://openmc.discourse.group/t/question-about-depletion-function/343/2 "2018-08-28T21:04:08Z")

</div>

You can find an example here:  
[https://github.com/openmc-dev/openmc/tree/develop/examples/python/pincell\_depletion](https://github.com/openmc-dev/openmc/tree/develop/examples/python/pincell_depletion)

Note that the depletion functionality is still under development and has not been validated yet. That being said, if you run into any issues, please let the development team know.

Best regards,  
Paul

---

<div class="post-metadata">

**Author:** ![ufofist](https://avatars.discourse-cdn.com/v4/letter/u/dec6dc/32.png) [@ufofist](https://openmc.discourse.group/u/ufofist)\
**Post date:** [August 28, 2018, 11:17pm UTC](https://openmc.discourse.group/t/question-about-depletion-function/343/3 "2018-08-28T23:17:18Z")

</div>

Hi Paul,

Thanks a lot! I will learn the function from the examples and do some calculation. I will let the development team know if there’s any issues when i run it.

Kind regards,  
Zhongming Zhang

在 2018年8月28日星期二 UTC+1下午10:04:20，Paul Romano写道：

---

<div class="post-metadata">

**Author:** ![ufofist](https://avatars.discourse-cdn.com/v4/letter/u/dec6dc/32.png) [@ufofist](https://openmc.discourse.group/u/ufofist)\
**Post date:** [August 29, 2018, 2:59am UTC](https://openmc.discourse.group/t/question-about-depletion-function/343/4 "2018-08-29T02:59:31Z")

</div>

Hi Paul,

I typed 'import openmc.deplete ’ at the first and then i got an error said: ’ ModuleNotFoundError: No module named ‘openmc.deplete’ '. Is that means i’m using an old version openmc? Looking forward to your response. Thank you!

Best wishes,  
Zhongming Zhang

在 2018年8月28日星期二 UTC+1下午10:04:20，Paul Romano写道：

---

<div class="post-metadata">

**Author:** ![paulromano](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/paulromano/32/486_2.png) [@paulromano](https://openmc.discourse.group/u/paulromano)\
**Post date:** [August 29, 2018, 12:01pm UTC](https://openmc.discourse.group/t/question-about-depletion-function/343/5 "2018-08-29T12:01:54Z")

</div>

Hi Zhongming,

The depletion capability only exists in our developmental branch and has not been part of any release yet. As such, you will need to install OpenMC [from source](https://openmc.readthedocs.io/en/latest/usersguide/install.html#installing-from-source) and make sure the Python API gets [installed correctly](https://openmc.readthedocs.io/en/latest/usersguide/install.html#installing-python-api).

Best,  
Paul

---

<div class="post-metadata">

**Author:** ![ufofist](https://avatars.discourse-cdn.com/v4/letter/u/dec6dc/32.png) [@ufofist](https://openmc.discourse.group/u/ufofist)\
**Post date:** [August 29, 2018, 5:04pm UTC](https://openmc.discourse.group/t/question-about-depletion-function/343/6 "2018-08-29T17:04:40Z")

</div>

Hi Paul,

Thanks for your guidance. I will take a try.

Best regards,  
Zhongming Zhang

---

<div class="post-metadata">

**Author:** ![ufofist](https://avatars.discourse-cdn.com/v4/letter/u/dec6dc/32.png) [@ufofist](https://openmc.discourse.group/u/ufofist)\
**Post date:** [September 5, 2018, 7:59pm UTC](https://openmc.discourse.group/t/question-about-depletion-function/343/7 "2018-09-05T19:59:25Z")

</div>

Hi, Paul,

I think i have installed openmc from source with the help of the instruction on the website. However, when I try to use the jupyter notebook to run your example, it still shows “ No module named openmc.deplete”.

Looking forward to your reply.  
Thank you very much!

Best regards,  
Zhongming Zhang
