get_dimensions#

MaterialDef.get_dimensions(material_property_id)#

Get the dimensions of the tensor of a material property.

The mappings between the types of material properties and dimensions are as follows:
  • Simple -> 1x1

  • Anisotropic -> 3x1

  • Tensor -> 3x3.

Parameters:
material_property_idMaterialProperty

Material property to get the dimensions of.

Returns:
tuple of (int, int)

The tuple is of the format (col, row):

  • col: Number of rows of the material property.

  • row: Number of columns of the material property.