duplicate_material#

Materials.duplicate_material(material_name, new_name=None, props=None)[source]#

Duplicate a material.

Parameters:
material_namestr

Name of the material.

new_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.

propslist

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:
pyaedt.modules.Material.Material

References

>>> oDefinitionManager.AddMaterial

Examples

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