Materials#
- class pyedb.dotnet.database.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 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. |
|
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.dotnet.database.materials import Materials
Property detail#
- property Materials.syslib#
Get the project sys library.
- property Materials.materials#
Get materials.
Attribute detail#
- Materials.default_conductor_property_values#
- Materials.default_dielectric_property_values#
Method detail#
- Materials.__contains__(item)#
- Materials.__getitem__(item)#
- Materials.add_material(name: str, **kwargs)#
Add a new material.
- Parameters:
- name
str Material name.
- name
- Returns:
pyedb.dotnet.database.materials.Material
- Materials.add_conductor_material(name, conductivity=58000000, **kwargs)#
Add a new conductor material.
- Materials.add_dielectric_material(name, permittivity, dielectric_loss_tangent, **kwargs)#
Add a new dielectric material in library.
- Materials.add_djordjevic_sarkar_dielectric(name: str, permittivity_at_frequency: int | float, loss_tangent_at_frequency: int | float, dielectric_model_frequency: int | float, dc_conductivity: int | float | None = None, dc_permittivity: int | float | None = None, **kwargs) pyedb.dotnet.database.definition.definition_obj.MaterialDef#
Add a dielectric using the Djordjevic-Sarkar model.
- Parameters:
- name
str Name of the dielectric.
- permittivity_at_frequency
str,float,int Relative permittivity of the dielectric.
- loss_tangent_at_frequency
str,float,int Loss tangent for the material.
- dielectric_model_frequency
str,float,int Test frequency in GHz for the dielectric.
- dc_conductivity
str,float,int,optional DC conductivity for the material.
- dc_permittivity
str,float,int,optional DC relative permittivity for the material.
- name
- Returns:
pyedb.dotnet.database.materials.Material
- Materials.add_djordjevicsarkar_dielectric(name, permittivity_at_frequency, loss_tangent_at_frequency, dielectric_model_frequency, dc_conductivity=None, dc_permittivity=None, **kwargs)#
Add a dielectric using the Djordjevic-Sarkar model.
Deprecated since version 0.7.0: This method name contains a typo and is deprecated. Use
add_djordjevic_sarkar_dielectric()instead.
- Materials.add_debye_material(name, permittivity_low, permittivity_high, loss_tangent_low, loss_tangent_high, lower_freqency, higher_frequency, **kwargs)#
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:
pyedb.dotnet.database.materials.Material
- Materials.add_multipole_debye_material(name, frequencies, permittivities, loss_tangents, **kwargs)#
Add a dielectric with the Multipole Debye model.
- Parameters:
- Returns:
pyedb.dotnet.database.materials.Material
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)#
Duplicate a material from the database.
- Materials.delete_material(material_name)#
Remove a material from the database.
- 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.load_amat(amat_file)#
Load materials from an AMAT file.
- Materials.iterate_materials_in_amat(amat_file=None)#
Iterate over material description in an AMAT file.
- Materials.read_materials(amat_file)#
Read materials from an AMAT file.
- Materials.read_syslib_material(material_name)#
Read a specific material from syslib AMAT file.