# How to use the openmc.examples module

**URL:** <https://openmc.discourse.group/t/how-to-use-the-openmc-examples-module/569>\
**Category:** User Support\
**Created:** [March 13, 2020, 4:09am UTC](https://openmc.discourse.group/t/how-to-use-the-openmc-examples-module/569 "2020-03-13T04:09:58Z")\
**Posts on this page:** 2\
**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 13, 2020, 4:09am UTC](https://openmc.discourse.group/t/how-to-use-the-openmc-examples-module/569/1 "2020-03-13T04:09:58Z")

</div>

I was trying to use openmc.examples module to see the reactor models like openmc,examples.pwr\_core , openmc.examples.pwr\_assembly, and openmc.examples.pwr\_pincell in the python api. I first imported the openmc.examples module in the python api then entered the reactor models. But the output result says something shown in the screen shot attached. My question is like the openmc.model module, does the openmc.examples module module have any input parameter or anything else. Thank you!

![Screenshot from 2020-03-13 10-09-17.png](https://global.discourse-cdn.com/free1/uploads/openmc/original/1X/11022b85a086769aca8f029b0e76cf2ad61bf485.png)

---

<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:** [March 13, 2020, 12:09pm UTC](https://openmc.discourse.group/t/how-to-use-the-openmc-examples-module/569/2 "2020-03-13T12:09:57Z")

</div>

Each of the functions in the openmc.examples module gives you a Model object, which has geometry, materials, settings, and tallies attributes. It also has an export\_to\_xml() method that will write out each of those objects to an XML file, as well as a run() method that will both export the XML and then run OpenMC. The full API for this class is given [here](https://docs.openmc.org/en/stable/pythonapi/generated/openmc.model.Model.html).

Best,  
Paul
