Materials#
- class pyedb.grpc.database.definition.materials.Materials(edb: pyedb.Edb)#
Bases:
objectManages EDB methods for material management accessible from Edb.materials property.
Overview#
Add a new material. |
|
Add a new conductor material. |
|
Add a new dielectric material in library. |
|
Add a dielectric using the Djordjevic-Sarkar model. |
|
Add a dielectric with the Debye model. |
|
Add a dielectric with the Multipole Debye model. |
|
Duplicate a material from the database. |
|
.deprecated: pyedb 0.32.0 use delete instead. |
|
Remove a material from the database. |
|
Update material attributes. |
|
Load material. |
|
Convert a material property name to a material property ID. |
|
Load materials from an AMAT file. |
|
Iterate over material description in an AMAT file. |
|
Read materials from an AMAT file. |
|
Read a specific material from syslib AMAT file. |
|
Update material properties from syslib AMAT file. |
Import detail#
from pyedb.grpc.database.definition.materials import Materials
Property detail#
Attribute detail#
- Materials.default_conductor_property_values#
- Materials.default_dielectric_property_values#
Method detail#
- Materials.__contains__(item)#
- Materials.__getitem__(item)#
- Materials.add_conductor_material(name, conductivity, **kwargs) Material#
Add a new conductor material.
- Materials.add_dielectric_material(name, permittivity, dielectric_loss_tangent, **kwargs) Material#
Add a new dielectric material in library.
- Materials.add_djordjevicsarkar_dielectric(name, permittivity_at_frequency, loss_tangent_at_frequency, dielectric_model_frequency, dc_conductivity=None, dc_permittivity=None, **kwargs) Material#
Add a dielectric using the Djordjevic-Sarkar model.
- Parameters:
- Returns:
MaterialMaterial object.
- Materials.add_debye_material(name, permittivity_low, permittivity_high, loss_tangent_low, loss_tangent_high, lower_freqency, higher_frequency, **kwargs) Material#
Add a dielectric with the Debye model.
- Parameters:
- name
str Name of the dielectric.
- permittivity_low
float,int Relative permittivity of the dielectric at the frequency specified for
lower_frequency.- permittivity_high
float,int Relative permittivity of the dielectric at the frequency specified for
higher_frequency.- loss_tangent_low
float,int Loss tangent for the material at the frequency specified for
lower_frequency.- loss_tangent_high
float,int Loss tangent for the material at the frequency specified for
higher_frequency.- lower_freqency
str,float,int Value for the lower frequency.
- higher_frequency
str,float,int Value for the higher frequency.
- name
- Returns:
MaterialMaterial object.
- Materials.add_multipole_debye_material(name, frequencies, permittivities, loss_tangents, **kwargs) Material#
Add a dielectric with the Multipole Debye model.
- Parameters:
- Returns:
MaterialMaterial object.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> freq = [0, 2, 3, 4, 5, 6] >>> rel_perm = [1e9, 1.1e9, 1.2e9, 1.3e9, 1.5e9, 1.6e9] >>> loss_tan = [0.025, 0.026, 0.027, 0.028, 0.029, 0.030] >>> diel = edb.materials.add_multipole_debye_material("My_MP_Debye", freq, rel_perm, loss_tan)
- Materials.duplicate(material_name, new_material_name) Material#
Duplicate a material from the database.
- Materials.delete_material(material_name)#
.deprecated: pyedb 0.32.0 use delete instead.
- Parameters:
- material_name
str Name of the material to delete.
- material_name
- Materials.update_material(material_name, input_dict)#
Update material attributes.
- Materials.material_property_to_id(property_name)#
Convert a material property name to a material property ID.
- Parameters:
- property_name
str Name of the material property.
- property_name
- Returns:
Any
- Materials.iterate_materials_in_amat(amat_file=None)#
Iterate over material description in an AMAT file.