AttenuatorSet#

class montepy.AttenuatorSet(constant: numbers.Real, layers: list[AttenuatorLayer])#

Bases: object

An FM attenuator set: c -1 m1 px1 m2 px2 ....

Models the thin-shield line-of-sight attenuation factor exp(-sum(sigma_i * px_i)). Layers chain via & (mirrors HalfSpace’s own &; layers stack multiplicatively in the exponent, like an intersection of independent attenuating conditions):

attenuator = AttenuatorSet(1.0, [AttenuatorLayer(3, 0.05)])
attenuator = attenuator & AttenuatorLayer(4, 0.1, is_atom_density=False)

Added in version 1.6.0b2.

Attributes:

constant

The scalar constant c for this attenuator set.

layers

The attenuating layers, in order.

node

The syntax node for this attenuator set.

Parameters:
property constant: float#

The scalar constant c for this attenuator set.

property layers: list[AttenuatorLayer]#

The attenuating layers, in order.

property node: ListNode#

The syntax node for this attenuator set.

Added in version 1.6.0b3.