# material problem

**URL:** <https://openmc.discourse.group/t/material-problem/445>\
**Category:** User Support\
**Created:** [June 9, 2019, 9:56am UTC](https://openmc.discourse.group/t/material-problem/445 "2019-06-09T09:56:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_Spa](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@J\_Spa](https://openmc.discourse.group/u/J_Spa)\
**Post date:** [June 9, 2019, 9:56am UTC](https://openmc.discourse.group/t/material-problem/445/1 "2019-06-09T09:56:44Z")

</div>

hi all

i think i have a probleme that influences the keff ,

here when i give this input python:

UO2= openmc.Material(material\_id=3, name=‘UO2 fuel at 2% wt enrichment’)  
UO2.set\_density(‘g/cc’, 10.24)  
UO2.add\_element(‘U’ , 0.0208924, ‘wo’)  
UO2.add\_element(‘U’ , 0.8606417, ‘wo’)  
UO2.add\_element(‘O’, 0.1184610, ‘wo’)

i get this output XML

Any help ?. Thank you

---

<div class="post-metadata">

**Author:** ![khurrum](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@khurrum](https://openmc.discourse.group/u/khurrum)\
**Post date:** [June 9, 2019, 3:10pm UTC](https://openmc.discourse.group/t/material-problem/445/2 "2019-06-09T15:10:49Z")

</div>

UO2.set\_density('g/cc', 10.24)  
UO2.add\_nuclide('U235' , 0.0208924, 'wo')  
UO2.add\_nuclide('U238' , 0.8606417, 'wo')  
UO2.add\_element('O', 0.1184610, 'wo')

I think this will solve your problem.
