ComponentPart#

class pyedb.component_libraries.ansys_components.ComponentPart(name, index, sbin_file)#

Handle component part definition.

Overview#

write_touchstone

Export the component S-parameters to a Touchstone .s2p file.

s_parameters

Return a skrf.network.Network object.

esr

Return the equivalent serial resistor for capacitor only.

f0

Return the capacitor self resonant frequency in Hz.

esl

Return the equivalent serial inductor for capacitor only.

cap_value

Returns the capacitance value.

ind_value

Return the inductance value.

Import detail#

from pyedb.component_libraries.ansys_components import ComponentPart

Property detail#

property ComponentPart.s_parameters: skrf.network.Network#

Return a skrf.network.Network object.

See scikit-rf documentation.

property ComponentPart.esr: float#

Return the equivalent serial resistor for capacitor only.

property ComponentPart.f0: float#

Return the capacitor self resonant frequency in Hz.

property ComponentPart.esl: float#

Return the equivalent serial inductor for capacitor only.

property ComponentPart.cap_value: float#

Returns the capacitance value.

property ComponentPart.ind_value: float#

Return the inductance value.

Attribute detail#

ComponentPart.name#
ComponentPart.nb_ports = 2#
ComponentPart.nb_freq = 0#
ComponentPart.ref_impedance = 50.0#
ComponentPart.type = ''#

Method detail#

ComponentPart.write_touchstone(output_path: str) str#

Export the component S-parameters to a Touchstone .s2p file.

The binary sdata.bin data is read on demand and then written to output_path using scikit-rf’s Touchstone writer so the file can be consumed by the existing EDB S-parameter assignment pipeline.

Parameters:
output_pathstr

Destination file path. The .s2p extension is appended automatically when output_path has no suffix.

Returns:
str

Absolute path of the written Touchstone file.

Raises:
ImportError

If scikit-rf is not installed.

Examples

part = lib.capacitors[“Murata”][“GRM15”][“GRM155R71C104KA88”] path = part.write_touchstone(“/tmp/GRM155R71C104KA88.s2p”)