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:
name (str, optional) – User label.
x (tuple of (float, float, int), optional) –
(x0, dx, Nx)— origin, bin width, and number of bins along x.y (tuple of (float, float, int), optional) –
(y0, dy, Ny)— origin, bin width, and number of bins along y.z (tuple of (float, float, int), optional) –
(z0, dz, Nz)— origin, bin width, and number of bins along z.
- Returns:
The uniform mesh object.
- Return type:
See also
mcdc.MeshStructuredCreates a mesh with arbitrary bin edges.
mcdc.TallyMeshCreates a tally on a mesh.