Element.add_modifier

Element.add_modifier(target_element, modifier_type=None, **kwargs)

Computes the modifier to be applied to the target element.

Parameters:
target_elementElement

The target element creates a modifier from a method with a neighbor Element name. For example _add_modifier_with_beam, _add_modifier_with_plate, etc.

modifier_typetype[Modifier] | None

The type of Modifier to be used. If not provided, the default modifier will be used.

kwargsdict

The keyword arguments to be passed to the contact interaction.

Returns:
Modifier

The ContactInteraction that is applied to the neighboring element. One pair can have one or multiple variants.

Raises:
ValueError

If the target element type is not supported.