MaterialDef#

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

Represents a material definition.

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_all_properties()

Get all properties of the material.

MaterialDef.get_anisotropic_thermal_modifier(...)

Get the anisotropic thermal modifier of a given material definition.

MaterialDef.get_dimensions(material_property_id)

Get dimensions of a given material definition.

MaterialDef.get_property(material_property)

Set a property value of the material.

MaterialDef.get_thermal_modifier(...)

Get the thermal modifier of a given material definition.

MaterialDef.remove_property(material_property)

Remove the value from a material property.

MaterialDef.set_anisotropic_thermal_modifier(...)

Set the anisotropic thermal modifier of a given material definition.

MaterialDef.set_property(material_property, ...)

Set a material property for a given component.

MaterialDef.set_thermal_modifier(...)

Set the thermal modifier of the material definition.

Attributes

MaterialDef.definition_type

DefinitionObjType: Type of the material definition.

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.