duplicate_material#

Materials.duplicate_material(material, name=None, properties=None)#

Duplicate a material.

Parameters:
materialstr

Name of the material.

namestr

Name for the copy of the material. If a new name is not specified, the new material name is material_name plusa “_clone”`` suffix.

propertieslist

List of properties to parameterize when the material is duplicated. Parameterized properties have project scope. Options are:

  • ‘permittivity’

  • ‘permeability’

  • ‘conductivity’

  • dielectric_loss_tan’

  • magnetic_loss_tan’

Returns:
ansys.aedt.core.modules.material.Material

References

>>> oDefinitionManager.AddMaterial

Examples

>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> hfss.materials.add_material("MyMaterial")
>>> hfss.materials.duplicate_material("MyMaterial","MyMaterial2")