MultiplierSet#

class montepy.MultiplierSet(constant: numbers.Real, material: TypeAliasForwardRef('numbers.Integral') | Material | None, reactions: list[ReactionExpression])#

Bases: object

An FM multiplier set: c m (reaction list 1) (reaction list 2) ....

Added in version 1.6.0b2.

Parameters:
  • constant (Real) – The scalar constant c. If negative (type-4 tallies only), MCNP replaces |c| with |c| times the tallying cell’s atom density.

  • material (Union[Integral, Material, None]) – Material number from an Mm card. None/0 means “the material of the current cell.”

  • reactions (list[ReactionExpression]) – One entry per output bin this set creates (MCNP creates one bin per reaction list, per FM spec footnote 4).

Attributes:

constant

The scalar constant c for this multiplier set.

material

The material number, or None for "current cell's material".

node

The syntax node for this multiplier set.

reactions

One ReactionExpression per output bin this set creates.

property constant: float#

The scalar constant c for this multiplier set.

property material: int | None#

The material number, or None for “current cell’s material”.

Resolved live from the linked Material if this set was built from one (e.g. mat & Reaction.CAPTURE), so a later renumber of that material is reflected here too.

property node: ListNode#

The syntax node for this multiplier set.

Added in version 1.6.0b3.

property reactions: list[ReactionExpression]#

One ReactionExpression per output bin this set creates.