Openmc CylindricalMesh

Hi, I want to create a grid for a cylinder with a radius of 16 and a height of 15, and the number of grids in each direction is 10, but my code shows the dimension of mesh is wrong, please help me see where the problem is, I would be grateful if you can answer me.

Here’s my code:
mesh = openmc.CylindricalMesh(name=‘mesh’,)
mesh.r_grid= [0,16]
mesh.phi_grid= [0.0, 6.283185307179586]
mesh.z_grid= [0,15]
mesh.dimension = (10,10,10)
1712017945810

Perhaps try setting the grids to have 10 bins like this, then the dimensions should be 10, 10, 10.

import nump as np
mesh = openmc.CylindricalMesh(
    name=‘mesh’,
    r_grid= np.linspace(0,16, 10),
    phi_grid= np.linspace(0.0, 6.283185307179586, 10),
    z_grid=np.linspace(0,15,10)
)

print(mesh.dimension)