# plot in 2D and 3D

**URL:** <https://openmc.discourse.group/t/plot-in-2d-and-3d/73>\
**Category:** User Support\
**Created:** [May 28, 2014, 10:09pm UTC](https://openmc.discourse.group/t/plot-in-2d-and-3d/73 "2014-05-28T22:09:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh\_sayer](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@josh\_sayer](https://openmc.discourse.group/u/josh_sayer)\
**Post date:** [May 28, 2014, 10:09pm UTC](https://openmc.discourse.group/t/plot-in-2d-and-3d/73/1 "2014-05-28T22:09:08Z")

</div>

hello professor Santos

please give me an example file.xml in which you can see the geometry on 2 and 3 dimensions.  
tank you very much

---

<div class="post-metadata">

**Author:** ![Matheus\_dos\_Santos](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Matheus\_dos\_Santos](https://openmc.discourse.group/u/Matheus_dos_Santos)\
**Post date:** [May 28, 2014, 11:43pm UTC](https://openmc.discourse.group/t/plot-in-2d-and-3d/73/2 "2014-05-28T23:43:33Z")

</div>

Hi Josh,

thanks for the professor, but I am not (yet ?). Maybe in another age. 😃

More info @

manual: [http://mit-crpg.github.io/openmc/usersguide/processing.html#geometry-visualization](http://mit-crpg.github.io/openmc/usersguide/processing.html#geometry-visualization)

example (more complex):  
[https://github.com/mit-crpg/openmc-workshop/blob/master/examples/demos/plotting/plots.xml](https://github.com/mit-crpg/openmc-workshop/blob/master/examples/demos/plotting/plots.xml)

A very simple example is attached.

Thanks,

Matheus

[plots.xml](https://openmc.discourse.group/uploads/short-url/JZeBnL1JwtWbUNWrKD6mKvDPoX.xml) (165 Bytes)

---

<div class="post-metadata">

**Author:** ![josh\_sayer](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@josh\_sayer](https://openmc.discourse.group/u/josh_sayer)\
**Post date:** [May 29, 2014, 12:35pm UTC](https://openmc.discourse.group/t/plot-in-2d-and-3d/73/3 "2014-05-29T12:35:18Z")

</div>

> > hi again Santos

---

<div class="post-metadata">

**Author:** ![Matheus\_dos\_Santos](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Matheus\_dos\_Santos](https://openmc.discourse.group/u/Matheus_dos_Santos)\
**Post date:** [May 29, 2014, 12:41pm UTC](https://openmc.discourse.group/t/plot-in-2d-and-3d/73/4 "2014-05-29T12:41:13Z")

</div>

Hi,

I never used the 3D plot, but[taking a look at the manual](http://mit-crpg.github.io/openmc/usersguide/processing.html#geometry-visualization) it is the same command.

The difference lies within the input file _plots.xml_.

2D:   
3D:

slice = 2D; voxel = 3D

Have fun
