# Question regarding temperature

**URL:** <https://openmc.discourse.group/t/question-regarding-temperature/579>\
**Category:** User Support\
**Created:** [March 19, 2020, 3:43am UTC](https://openmc.discourse.group/t/question-regarding-temperature/579 "2020-03-19T03:43:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fsabab](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/fsabab/32/1374_2.png) [@fsabab](https://openmc.discourse.group/u/fsabab)\
**Post date:** [March 19, 2020, 3:43am UTC](https://openmc.discourse.group/t/question-regarding-temperature/579/1 "2020-03-19T03:43:41Z")

</div>

The cross sections data are given at certain temperature like 300k, 600k, 900k etc.  
When I try to simulate a model for example at 434k, it results in error as no cross sections data are there for 434k.  
Is there any way in openmc to interpolate cross-section between the temperatures ?  
Thank you!

---

<div class="post-metadata">

**Author:** ![Shurahbil](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/shurahbil/32/511_2.png) [@Shurahbil](https://openmc.discourse.group/u/Shurahbil)\
**Post date:** [March 19, 2020, 3:51am UTC](https://openmc.discourse.group/t/question-regarding-temperature/579/2 "2020-03-19T03:51:25Z")

</div>

Use NJOY

---

<div class="post-metadata">

**Author:** ![Javier\_Gonzalez](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/javier_gonzalez/32/1095_2.png) [@Javier\_Gonzalez](https://openmc.discourse.group/u/Javier_Gonzalez)\
**Post date:** [March 19, 2020, 4:23am UTC](https://openmc.discourse.group/t/question-regarding-temperature/579/3 "2020-03-19T04:23:05Z")

</div>

Hi Farshid,

You can do this defining the interpolation option in the settings:

settings = openmc.Settings()

settings.temperature = {‘method’: ‘interpolation’}

Hope this helps,

Javier

---

<div class="post-metadata">

**Author:** ![tanzim\_ttanzim](https://avatars.discourse-cdn.com/v4/letter/t/f4b2a3/32.png) [@tanzim\_ttanzim](https://openmc.discourse.group/u/tanzim_ttanzim)\
**Post date:** [March 19, 2020, 4:23am UTC](https://openmc.discourse.group/t/question-regarding-temperature/579/4 "2020-03-19T04:23:17Z")

</div>

Since the ENDF data library doesn't contain continuous energy cross sections at all the temperatures,you will have to use cross section processing codes such as NJOY to generate continuous energy cross section or multigroup cross section libraries based on evaluated nuclear data
