TallyType#

class montepy.TallyType(*values)#

Bases: Enum

The MCNP tally type: which mnemonic/digit/modifier combination an input uses (e.g. the last digit of an F-card’s number, or a leading + for a modified variant like +F6).

Added in version 1.6.0b2.

Changed in version 1.6.0b3: Values changed from a bare digit to a (mnemonic, modulo, modifier) tuple, so a modifier-prefixed variant (e.g. +F6 collision heating vs. plain F6 energy deposition) can be a distinct member that still shares its digit with the unmodified card – and so this enum can eventually grow to cover non-F-card tallies (e.g. FMESH) without another redesign.

Attributes:

CELL_FLUX

CHARGE_DEPOSITION

COLLISION_HEATING

CURRENT

DETECTOR

ENERGY_DEPOSITION

ENERGY_DETECTOR_PULSE

FISSION_ENERGY_DEPOSITION

SURFACE_FLUX

mnemonic

The card mnemonic, e.g. "F".

modifier

The classifier's leading modifier symbol, if any (e.g. "+").

modulo

The last digit of the card's number, if it dispatches by digit.

CELL_FLUX = ('F', 4, None)#
CHARGE_DEPOSITION = ('F', 8, '+')#
COLLISION_HEATING = ('F', 6, '+')#
CURRENT = ('F', 1, None)#
DETECTOR = ('F', 5, None)#
ENERGY_DEPOSITION = ('F', 6, None)#
ENERGY_DETECTOR_PULSE = ('F', 8, None)#
FISSION_ENERGY_DEPOSITION = ('F', 7, None)#
SURFACE_FLUX = ('F', 2, None)#
property mnemonic: str#

The card mnemonic, e.g. "F".

property modifier: str | None#

The classifier’s leading modifier symbol, if any (e.g. "+").

property modulo: int | None#

The last digit of the card’s number, if it dispatches by digit.