get_property#

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

Get a material property value.

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

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

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

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

Parameters:
material_propertyMaterialProperty

ID of the material property.

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).

Returns:
Value