f4enix.output.meshtal.mesh_parser.CDGSMeshParser#
- class f4enix.output.meshtal.mesh_parser.CDGSMeshParser(filename: str | Path)#
Bases:
ParserRead CDGS formatted file.
Methods
__init__(filename)get_FMesh(tally[, norm, filter])Return Fmesh object representing a CDGS source.
Return list of mesh stored in the CDGS file.
- get_FMesh(tally: int, norm: str | None = None, filter: list[int] | None = None) Fmesh#
Return Fmesh object representing a CDGS source. The tally number is the source mesh number.
- Parameters:
tally (int) – The source mesh number to retrieve.
norm (str | None, optional) – Normalization option, not used in CDGS meshes.
filter (list[int] | None, optional) – Filter options, not used in CDGS meshes.
- Returns:
An Fmesh object containing the mesh data.
- Return type:
- get_meshlist() tuple#
Return list of mesh stored in the CDGS file.
- Returns:
A tuple containing the CDGS mesh ids.
- Return type:
tuple