Geometry with openmc

I’m trying to recreate the geometry shown in my attached image using OpenMC and Python.

It consists of several concentric layers (like squares with rounded corners), each one representing different materials — fuel, cladding, and water regions. I want to build this as a 3D or 2D

model in OpenMC.

So far, I’ve tried using openmc.model.rectangular_prism() and Boolean operations between surfaces, but I’m not sure how to get the rounded-square (filleted corner) shape or how to organize multiple layers cleanly.

Can anyone please guide me or share an example of how to draw this kind of geometry (possibly using cylinders or arcs for the corners)?
Any help or code snippet would be greatly appreciated!

Thanks in advance!

Hi Fakhar, I think this discussion will be interesting for you

thank you so much , can i get your email , i want your help

hi , can you help me with this issue at layer 1

test.ipynb (172.9 KB)