set_property#

MaterialDef.set_property(material_property, value, component_id=None, col=None, row=None)#

Set a material property value.

Material properties can be defined in 3 ways:
  1. Simple: A constant value.
    • To define a simple material property, the material_property and value parameters should be provided.

  2. Anisotropic: A 3x3 tensor consisting of only diagonal entries.
    • To define a component of an anisotropic material property, the material_property, value, and component_id parameters should be provided.

    • component_id specifies the anisotropic component ID of the component to set the value of.

  3. Tensor: A 3x3 tensor consisting of diagonal and off-diagonal entries.
    • To define an entry in a tensor material property, the material_property, value, col and row parameters should be provided. The entry at T[row,col] will be set to the provided value.

Parameters:
material_propertyMaterialProperty

ID of the material property.

valueValueLike

New value.

component_idint, default: None

ID of the anisotropic component (only used for anisotropic material properties).

rowint, default: None

Tensor row (only used for tensor material properties).

colint, default: None

Tensor column (only used for tensor material properties).