metallurgy.alloy.Alloy.add_element(element: str, percentage: float | None = 0.0)[source] Adds an element to the alloy composition. Parameters:¶ element: str¶Element to be added. percentage: float | None = 0.0¶Percentage of the new element. If zero or not set, is given the value of 1.0/(number of elements +1). Last update: Jun 08, 2023