Material#

class ansys.geometry.core.materials.material.Material(name: str, density: pint.Quantity, additional_properties: collections.abc.Sequence[ansys.geometry.core.materials.property.MaterialProperty] | None = None)#

Provides the data structure for a material.

Parameters:
name: str

Material name.

density: ~pint.Quantity

Material density.

additional_properties: Sequence[MaterialProperty], default: None

Additional material properties.

Overview#

add_property

Add a material property to the Material class.

properties

Dictionary of the material property type and material properties.

name

Material name.

Import detail#

from ansys.geometry.core.materials.material import Material

Property detail#

property Material.properties: dict[ansys.geometry.core.materials.property.MaterialPropertyType, ansys.geometry.core.materials.property.MaterialProperty]#

Dictionary of the material property type and material properties.

property Material.name: str#

Material name.

Method detail#

Material.add_property(type: ansys.geometry.core.materials.property.MaterialPropertyType, name: str, quantity: pint.Quantity) None#

Add a material property to the Material class.

Parameters:
typeMaterialPropertyType

Material property type.

name: str

Material name.

quantity: ~pint.Quantity

Material value and unit.