pyaedt.modules.MaterialLib.Materials#

class pyaedt.modules.MaterialLib.Materials(app)[source]#

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

Parameters:
apppyaedt.application.Analysis3D.FieldAnalysis3D

Inherited parent object.

Examples

>>> from pyaedt import Hfss
>>> app = Hfss()
>>> materials = app.materials

Methods

Materials.add_material(materialname[, props])

Add a material with default values.

Materials.add_material_sweep(swargs, matname)

Create a sweep material made of an array of materials.

Materials.add_surface_material(material_name)

Add a surface material.

Materials.check_thermal_modifier(mat)

Check a material to see if it has any thermal modifiers.

Materials.checkifmaterialexists(mat)

Check if a material exists in AEDT or PyAEDT Definitions.

Materials.duplicate_material(material, new_name)

Duplicate a material.

Materials.duplicate_surface_material(...)

Duplicate a surface material.

Materials.export_materials_to_file(...)

Export all materials to a JSON file.

Materials.import_materials_from_file(...)

Import and create materials from a JSON 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.surface_material_keys

Dictionary of Surface Material in the project.