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:
- property fraction#
The fraction of the isotope for this component
- Return type:
float