Materials#
- class ansys.aedt.core.modules.material_lib.Materials(app)[source]#
Contains the AEDT materials database and all methods for creating and editing materials.
- Parameters:
- app
ansys.aedt.core.application.analysis_3d.FieldAnalysis3D
Inherited parent object.
- app
Examples
>>> from ansys.aedt.core import Hfss >>> app = Hfss() >>> materials = app.materials
Methods
Materials.add_material
(name[, properties])Add a material with default values.
Materials.add_material_sweep
(assignment, name)Create a sweep material made of an array of materials.
Materials.add_surface_material
(name[, ...])Add a surface material.
Materials.check_thermal_modifier
(material)Check a material to see if it has any thermal modifiers.
Materials.checkifmaterialexists
(material)Check if a material exists in AEDT or PyAEDT Definitions.
Materials.duplicate_material
(material[, ...])Duplicate a material.
Duplicate a surface material.
Materials.export_materials_to_file
(output_file)Export all materials to a JSON or TOML file.
Get list of material names in current project.
Materials.import_materials_from_excel
(input_file)Import and create materials from a csv or excel file.
Import and create materials from a JSON or AMAT file.
Import and create materials from Workbench Engineering Data XML file.
Materials.remove_material
(material[, library])Remove a material.
Attributes
Conductors in the material database.
Dielectrics in the material database.
Return the gas materials.
Return the liquids materials.
List material names.
List material names with lower case.
Definition Manager from AEDT.
Material Manager from AEDT.
Dictionary of Surface Material in the project.