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:
- Simple: A constant value.
To retrieve a simple material property, the
material_property
parameter should be provided.
- Anisotropic: A 3x3 tensor consisting of only diagonal entries.
To retrieve a component of an anisotropic material property, the
material_property
andcomponent_id
parameters should be provided.component_id
specifies the anisotropic component ID of the component to get the value of.
- Tensor: A 3x3 tensor consisting of diagonal and off-diagonal entries.
To retrieve an entry in a tensor material property, the
material_property
,col
androw
parameters should be provided. The entry atT[row,col]
will be returned.
- Parameters:
- material_property
MaterialProperty
ID of the material property.
- component_id
int
, default:None
ID of the anisotropic component (only used for anisotropic material properties).
- row
int
, default:None
Tensor row (only used for tensor material properties).
- col
int
, default:None
Tensor column (only used for tensor material properties).
- material_property
- Returns: