# Problem with openmc.openmoc\_compatible in hexagonal lattice conversion

**URL:** https://openmc.discourse.group/t/problem-with-openmc-openmoc-compatible-in-hexagonal-lattice-conversion/995
**Category:** User Support
**Created:** [February 7, 2021, 10:34am UTC](https://openmc.discourse.group/t/problem-with-openmc-openmoc-compatible-in-hexagonal-lattice-conversion/995 "2021-02-07T10:34:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sivakorn.SSW](https://yyz2.discourse-cdn.com/free1/user_avatar/openmc.discourse.group/sivakorn.ssw/32/1424_2.png) [@Sivakorn.SSW](https://openmc.discourse.group/u/Sivakorn.SSW)
#### Post date: [February 7, 2021, 10:34am UTC](https://openmc.discourse.group/t/problem-with-openmc-openmoc-compatible-in-hexagonal-lattice-conversion/995/1 "2021-02-07T10:34:15Z")

</div>

**Greeting,**

I want to compare the result calculated from openmc with openmoc which using the method of characteristic to calculate. but I am having a problem using _openmc.openmoc\_compatible_ function to convert my geometry programmed in openmc which includes many hexagonal lattices to the openmoc. But It said

**Unable to set “openmc\_lattice” to “HexLattice” which is not of type “RectLattice”.**

Does anyone have any suggestions on my problem? and  
Is there any way to convert or create the hexagonal lattice in openmoc ?  
Thank you.

---

<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: [February 23, 2021, 10:54pm UTC](https://openmc.discourse.group/t/problem-with-openmc-openmoc-compatible-in-hexagonal-lattice-conversion/995/2 "2021-02-23T22:54:02Z")

</div>

Hi @Sivakorn.SSW and sorry for delayed response here. As far as I’m aware, OpenMOC does not support hexagonal lattices, so the only way I could see this happening is if you manually created cells with the six sides of a hexagon to mimic a lattice.

---

<div class="post-metadata">

### Author: ![clone233](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@clone233](https://openmc.discourse.group/u/clone233)
#### Post date: [January 1, 2026, 7:43pm UTC](https://openmc.discourse.group/t/problem-with-openmc-openmoc-compatible-in-hexagonal-lattice-conversion/995/3 "2026-01-01T19:43:30Z")

</div>

Hello. Is openmoc ready now? Or are there any other methods available?
