Hi,
Does anyone have experience with RectilinearMesh?
I’m trying to tally reaction rates in a core which consists of 8X8 fuel assemblies, but the corner assemblies are missing (see attached).
If use RegularMesh it will count also the corners, which I want to leave out.
I understand that the rectilinear mesh is defined by the x_grid/y_grid/z_grid variables, but I could not quite get the shape and the resolution that I want.
Thanks,
Shai
Hi Shai,
Are you trying to get a mesh that has 6 cells in the first row but then 8 cells in the second row and so on? Unfortunately that isn’t possible with either our regular mesh or rectilinear mesh models. The way we handle rectilinear meshes matches with this image from Wikipedia:

If there are nx cells in the x-direction on row 1, then there are also nx cells on row 2, and so on.
What application are you using the mesh results for that the corners need to be cut-out? I’ve run into that issue before with xy-mesh plotting utilities and sometimes you can get around it by manually changing the values in that position to a NaN before giving it to the plotting code.
Hi Sterling,
Thanks for the answer.
I do wish to define a mesh with varied number of cells in each row, I understand now it is not possible.
I’m using the plotter tool in the openmc-dev git to plot the mesh.
I can also plot the mesh manually (using e.g. python), and then replace the corner cells with NaN.
I do like however to use the plotter, I find it very convenient, and it shows the core geometry in the background which is nice. I guess I can use the NaN idea by modifying the python script of the plotter.
Thank,
Shai