Materials#

class ansys.aedt.core.modules.material_lib.Materials(app)#

Contains the AEDT materials database and all methods for creating and editing materials.

Parameters:
appansys.aedt.core.application.analysis_3d.FieldAnalysis3D

Inherited parent object.

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.duplicate_material(material[, ...])

Duplicate a material.

Materials.duplicate_surface_material(...)

Duplicate a surface material.

Materials.exists_material(material)

Check if a material exists in AEDT or PyAEDT Definitions.

Materials.export_materials_to_file(output_file)

Export all materials to a JSON or TOML file.

Materials.get_used_project_material_names()

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.

Materials.import_materials_from_file([...])

Import and create materials from a JSON or AMAT file.

Materials.import_materials_from_workbench(...)

Import and create materials from Workbench Engineering Data XML file.

Materials.remove_material(material[, library])

Remove a material.

Attributes

Materials.conductors

Conductors in the material database.

Materials.dielectrics

Dielectrics in the material database.

Materials.gases

Return the gas materials.

Materials.liquids

Return the liquids materials.

Materials.mat_names_aedt

List material names.

Materials.mat_names_aedt_lower

List material names with lower case.

Materials.odefinition_manager

Definition Manager from AEDT.

Materials.omaterial_manager

Material Manager from AEDT.

Materials.surface_material_keys

Dictionary of Surface Material in the project.