TimberModel.assign_material

TimberModel.assign_material(material, element=None, elements=None)[source]

Assign a material to an element or a list of elements.

Parameters:
materialMaterial

The material.

elementElement, optional

The element to assign the material to.

elementslist[Element, optional]

The list of elements to assign the material to.

Returns:
None
Raises:
ValueError

If neither element or elements is provided.

ValueError

If both element and elements are provided.

ValueError

If the material is not part of the model.

ValueError

If the provided element or one of the elements in the provided element list is not part of the model.