MaterialProperty#

class ansys.geometry.core.materials.property.MaterialProperty(type: beartype.typing.Union[MaterialPropertyType, str], name: str, quantity: beartype.typing.Union[pint.Quantity, ansys.geometry.core.typing.Real])#

Provides the data structure for a material property.

Parameters:
typeUnion[MaterialPropertyType, str]

Type of the material property. If the type is a string, it must be a valid material property type - though it might not be supported by the MaterialPropertyType enum.

name: str

Material property name.

quantity: Union[~pint.Quantity, Real]

Value and unit in case of a supported Quantity. If the type is not supported, it must be a Real value (float or integer).

Overview#

type

Material property ID.

name

Material property name.

quantity

Material property quantity and unit.

Import detail#

from ansys.geometry.core.materials.property import MaterialProperty

Property detail#

property MaterialProperty.type: beartype.typing.Union[MaterialPropertyType, str]#

Material property ID.

If the type is not supported, it will be a string.

property MaterialProperty.name: str#

Material property name.

property MaterialProperty.quantity: beartype.typing.Union[pint.Quantity, ansys.geometry.core.typing.Real]#

Material property quantity and unit.

If the type is not supported, it will be a Real value (float or integer).