MaterialDef#

class ansys.edb.core.definition.material_def.MaterialDef(msg)#

Represents a material and all its properties.

Methods

MaterialDef.create(database, name, **kwargs)

Create a material definition in a given database.

MaterialDef.delete()

Delete the material definition.

MaterialDef.find_by_name(database, name)

Find a material definition by name in a given database.

MaterialDef.get_anisotropic_thermal_modifier(...)

Get the thermal modifier of an anisotropic material property.

MaterialDef.get_dimensions(material_property_id)

Get the dimensions of the tensor of a material property.

MaterialDef.get_property(material_property)

Get a material property value.

MaterialDef.get_thermal_modifier(...)

Get the thermal modifier of a material property.

MaterialDef.remove_property(material_property)

Remove a property from the material definition.

MaterialDef.set_anisotropic_thermal_modifier(...)

Set the thermal modifier of an anisotropic material property.

MaterialDef.set_property(material_property, ...)

Set a material property value.

MaterialDef.set_thermal_modifier(...)

Set the thermal modifier of the material property.

Attributes

MaterialDef.all_properties

list of MaterialProperty: All properties defined in the material definition.

MaterialDef.definition_type

DefinitionObjType: Definition object type.

MaterialDef.dielectric_material_model

DielectricMaterialModel: Dielectric material model of the material definition.

MaterialDef.id

int: Unique ID of the EDB object.

MaterialDef.is_null

bool: Flag indicating if the object exists in the database.

MaterialDef.msg

EDBObjMessage: Protobuf message that represents the object's ID.

MaterialDef.name

str: Name of the material definition.