AttenuatorLayer#

class montepy.AttenuatorLayer(material: numbers.Integral, areal_density: numbers.Real, is_atom_density: bool = True)#

Bases: object

One layer of an FM attenuator set: m px.

Added in version 1.6.0b2.

Parameters:
  • material (Integral) – Material number identified on an Mm card.

  • areal_density (Real) – Density times thickness of the attenuating layer. Always stored positive (like montepy.Material.is_atom_fraction’s convention) — the atom-vs-mass distinction is carried separately in is_atom_density, not via sign.

  • is_atom_density (bool) – True if areal_density is an atom density (atoms/barn-cm), False if it’s a mass density (g/cm3). Corresponds to the sign of the raw MCNP px value (positive = atom, negative = mass).

Attributes:

areal_density

Density times thickness of this layer (always positive).

is_atom_density

True if areal_density is an atom density, False if mass density.

material

The material number for this layer, from an Mm card.

property areal_density: float#

Density times thickness of this layer (always positive).

property is_atom_density: bool#

True if areal_density is an atom density, False if mass density.

property material: int#

The material number for this layer, from an Mm card.