mckit_meshes.cli.commands package¶
Submodules¶
mckit_meshes.cli.commands.mesh2npz module¶
Convert MCNP meshtal file to a number of npz files, one for each meshtal.
mckit_meshes.cli.commands.npz2vtk module¶
Convert npz files to VTK vtr-files.
- mckit_meshes.cli.commands.npz2vtk.npz2vtk(prefix, npz_files, *, override=False)[source]¶
Convert MCNP meshtal file to a number of npz files, one for each mesh tally.
Module contents¶
CLI implmentation.
- mckit_meshes.cli.commands.do_add(out, comment, number, npz_files, *, override=False)¶
Convert MCNP meshtal file to a number of npz files, one for each mesh tally.
Applicable to meshes with the same geometry.
Note
We assume that statistics is the same for all the meshes, preferably they are produced in the same run (like neutron and photon heat).
- Parameters:
out (
str|Path) – output filecomment (
str) – comment for a new fmesh npz file, if not provided, then the comment from the first mesh is usednumber (
int) – … to assign to resulting meshnpz_files (
Iterable[str|Path]) – files to process, optionaloverride (
bool) – define behaviour when output file, exists, default - rise FileExistsError.
- Return type:
- mckit_meshes.cli.commands.do_mesh2npz(prefix, mesh_tallies, *, override=False)¶
Convert MCNP meshtal file to a number of npz files, one for each mesh tally.
- mckit_meshes.cli.commands.do_npz2vtk(prefix, npz_files, *, override=False)¶
Convert MCNP meshtal file to a number of npz files, one for each mesh tally.