TallyType#
- class montepy.TallyType(*values)#
Bases:
EnumThe 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.+F6collision heating vs. plainF6energy 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:
The card mnemonic, e.g.
"F".The classifier's leading modifier symbol, if any (e.g.
"+").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)#