f4enix.output.meshtal.mesh_parser.MeshtalParser#

class f4enix.output.meshtal.mesh_parser.MeshtalParser(filename: str | Path)#

Bases: Parser

Read meshtal formatted file (support block, column or CuV format).

Methods

__init__(filename)

get_FMesh(tally[, norm, filter])

Returns Fmesh object representing a eshtally.

get_meshlist()

Return list of mesh stored in the CUV file.

get_FMesh(tally: int, norm: str | None = None, filter: list[int] | None = None) Fmesh#

Returns Fmesh object representing a eshtally.

Parameters:
  • tally (int) – The mesh tally number to retrieve.

  • norm (str | None, optional) – Normalization option for CUV meshes, not used.

  • filter (list[int] | None, optional) – List of cells with which voxels in CUV meshes are filtered, not used.

Returns:

An Fmesh object containing the mesh data.

Return type:

Fmesh

get_meshlist() tuple#

Return list of mesh stored in the CUV file.

Returns:

A tuple containing the tally numbers of the meshes.

Return type:

tuple