Openmc Room Simulation for X-Ray

Hi, this is my first time using Openmc
Currently I want to simulate a room inside openmc to measure radiation levels inside an xray exposure room. I have tried finding tutorials online on how to build such a room but alas, I still have no clue how to do it

Is there anyone that can guide me on how to simulate a room ?

I just took a picture off google as reference,

I define all my planes first

You can add boundary conditions here on your x1, x4, y1, and y4 with vacuum condition if your wall thickness is thick enough to attenuate most radiation making it insignificant, or if you do not care about outside the room, if you are simulating this to check the amount of x-rays that escape you would not apply any boundary conditions. If you are modelling in 3D and not just 2D you will need 4 more planes in the z-direction, made the same way as x and y.

Next you make the cells, start by making each wall into rectangular slabs like so,

For the z direction it is much the same process.

If you want to model the door open, or if its made from different material you will need to separate the wall it’s on into separate slabs like so,
This,


becomes this,

In which you would have needed 3 additional planes, 1 for the top of the door, and the other 2 for the sides of the door, where you can make the cells by using the method i showed before.

Let me know if you need any more assistance!

1 Like

You can also look at these example notebooks if you are new to CSG model and openmc