CPW#

class pyedb.libraries.rf_libraries.base_functions.CPW(edb_cell: pyedb.Edb | None = None, length: str | float = 0.001, width: str | float = 0.0003, gap: str | float = 0.0001, layer: str = 'TOP', ground_net: str = 'GND', ground_width: float = 0.0001, ground_layer: str = 'GND', net: str = 'SIG', substrate: pyedb.libraries.common.Substrate = Substrate(0.0001, 4.4, 0.02, 'SUB', (0.001, 0.001)))#

Coplanar waveguide with side ground planes.

Parameters:
lengthfloat, default 1 mm

Physical length of the line.

widthfloat, default 0.3 mm

Width of the centre conductor.

gapfloat, default 0.1 mm

Gap between centre conductor and ground planes.

layerstr, default “TOP”

Layer on which the CPW is drawn.

ground_netstr, default “GND”

Net name for the ground planes.

ground_widthfloat, default 0.1 mm

Width of the side ground strips.

ground_layerstr, default “GND”

Layer for the underlying ground plane.

netstr, default “SIG”

Net name for the centre conductor.

substrateSubstrate, default 100 µm FR4

Substrate definition.

Examples

>>> cpw = CPW(length=5e-3, width=0.4e-3, gap=0.2e-3)
>>> edb = Edb("cpw.aedb")
>>> cpw._pedb = edb
>>> cpw.create()
>>> f"{cpw.analytical_z0:.1f} Ω"
'46.5 Ω'

Overview#

create

Draw the centre strip, side grounds and bottom ground plane.

analytical_z0

Characteristic impedance obtained with the conformal-mapping

Import detail#

from pyedb.libraries.rf_libraries.base_functions import CPW

Property detail#

property CPW.analytical_z0: float#

Characteristic impedance obtained with the conformal-mapping formula for CPW.

Returns:
float

Z0 in Ohm.

Attribute detail#

CPW.length#
CPW.width#
CPW.gap#
CPW.layer = 'TOP'#
CPW.ground_net = 'GND'#
CPW.ground_width = 0.0001#
CPW.ground_layer = 'GND'#
CPW.net = 'SIG'#
CPW.substrate#

Method detail#

CPW.create() bool#

Draw the centre strip, side grounds and bottom ground plane.

Returns:
bool

True on success.