# How to creat mesh for a hexagonal assembly?

**URL:** <https://openmc.discourse.group/t/how-to-creat-mesh-for-a-hexagonal-assembly/1192>\
**Category:** User Support\
**Created:** [May 9, 2021, 12:56pm UTC](https://openmc.discourse.group/t/how-to-creat-mesh-for-a-hexagonal-assembly/1192 "2021-05-09T12:56:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lei](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@lei](https://openmc.discourse.group/u/lei)\
**Post date:** [May 9, 2021, 12:56pm UTC](https://openmc.discourse.group/t/how-to-creat-mesh-for-a-hexagonal-assembly/1192/1 "2021-05-09T12:56:05Z")

</div>

Dears:

I apologize in advance if my question comes as naive.

I am newbie for using OpenMC. I want to creat mesh of hexagonal assembly for tally mesh filter. And this is only a simple way for reactangle assembly in the example guide.

Thanks a lot.

Lei

---

<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:** [June 2, 2021, 4:57am UTC](https://openmc.discourse.group/t/how-to-creat-mesh-for-a-hexagonal-assembly/1192/2 "2021-06-02T04:57:30Z")

</div>

Hi @lei and apologies for the slow response here. Right now we do not have any hexagonal mesh capability in OpenMC. However, if you have a cell that is repeated within that hexagonal assembly, you can use a `DistribcellFilter` to get a tally for each instance of the cell that appears within the assembly.

---

<div class="post-metadata">

**Author:** ![Indah\_Sari](https://avatars.discourse-cdn.com/v4/letter/i/5f8ce5/32.png) [@Indah\_Sari](https://openmc.discourse.group/u/Indah_Sari)\
**Post date:** [June 2, 2021, 8:29am UTC](https://openmc.discourse.group/t/how-to-creat-mesh-for-a-hexagonal-assembly/1192/3 "2021-06-02T08:29:05Z")

</div>

so we can’t get flux distribution using hexagonal pitch ike this example [Post Processing — OpenMC Documentation](https://docs.openmc.org/en/stable/examples/post-processing.html) ?

---

<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:** [June 2, 2021, 1:00pm UTC](https://openmc.discourse.group/t/how-to-creat-mesh-for-a-hexagonal-assembly/1192/4 "2021-06-02T13:00:00Z")

</div>

Correct, there is no hexagonal equivalent of the example shown in that post processing section.

---

<div class="post-metadata">

**Author:** ![Indah\_Sari](https://avatars.discourse-cdn.com/v4/letter/i/5f8ce5/32.png) [@Indah\_Sari](https://openmc.discourse.group/u/Indah_Sari)\
**Post date:** [June 2, 2021, 2:41pm UTC](https://openmc.discourse.group/t/how-to-creat-mesh-for-a-hexagonal-assembly/1192/5 "2021-06-02T14:41:41Z")

</div>

is there any other way to get flux distribution with hexagonal pitch?

---

<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:** [June 2, 2021, 2:44pm UTC](https://openmc.discourse.group/t/how-to-creat-mesh-for-a-hexagonal-assembly/1192/6 "2021-06-02T14:44:05Z")

</div>

As I suggested before, using the `DistribcellFilter` allows you to tally each instance of a cell that is repeated within a hexagonal lattice. However, there is no simple way to visualize the results of that tally at present.
