montepy.data_inputs.material_component module#

class montepy.data_inputs.material_component.MaterialComponent(isotope, fraction, suppress_warning=False)#

Bases: object

A class to represent a single component in a material.

For example: this may be H-1 in water: like 1001.80c — 0.6667

Deprecated since version 0.4.1: MaterialComponent has been deprecated as part of a redesign for the material interface due to a critical bug in how MontePy handles duplicate nuclides. See Migration plan for MontePy 1.0.0.

Parameters:
  • isotope (Isotope) – the Isotope object representing this isotope

  • fraction (ValueNode) – the fraction of this component in the material

  • suppress_warning (bool) – Whether to suppress the DeprecationWarning.

property fraction#

The fraction of the isotope for this component

Return type:

float

property isotope#

The isotope for this material_component

Return type:

Isotope