mcdc.MeshUniform¶
- class mcdc.MeshUniform(name: str = '', x: tuple[float, float, int] = (-10000000000.0, 20000000000.0, 1), y: tuple[float, float, int] = (-10000000000.0, 20000000000.0, 1), z: tuple[float, float, int] = (-10000000000.0, 20000000000.0, 1))¶
Define a uniform rectilinear mesh.
Each axis is specified as
(origin, width, N_bins).Parameters¶
- namestr, optional
User label.
- xtuple of (float, float, int), optional
(x0, dx, Nx)— origin, bin width, and number of bins along x.- ytuple of (float, float, int), optional
(y0, dy, Ny)— origin, bin width, and number of bins along y.- ztuple of (float, float, int), optional
(z0, dz, Nz)— origin, bin width, and number of bins along z.
Returns¶
- MeshUniform
The uniform mesh object.
See Also¶
mcdc.MeshStructured : Creates a mesh with arbitrary bin edges. mcdc.TallyMesh : Creates a tally on a mesh.