add_material_sweep#
- Materials.add_material_sweep(swargs, matname)[source]#
Create a sweep material made of an array of materials.
If a material needs to have a dataset (thermal modifier), then a dataset is created. Material properties are loaded from the XML file database
amat.xml
.- Parameters:
- Returns:
int
Index of the project variable.
References
>>> oDefinitionManager.AddMaterial
Examples
>>> from pyaedt import Hfss >>> hfss = Hfss() >>> hfss.materials.add_material("MyMaterial") >>> hfss.materials.add_material("MyMaterial2") >>> hfss.materials.add_material_sweep(["MyMaterial", "MyMaterial2"], "Sweep_copper")