RatRace#
- class pyedb.libraries.rf_libraries.base_functions.RatRace(edb_cell: pyedb.Edb | None = None, z0: float | str = 50, freq: float | str = 10000000000.0, layer: str = 'TOP', bottom_layer: str | None = None, net: str = 'RR', width: float | str = 0.0002, nr_segments: int = 32)#
180° rat-race (ring) hybrid coupler.
- Parameters:
- z0
float,default50 Ω Characteristic impedance of the ring.
- freq
float,default10GHz Centre frequency.
- layer
str,default“TOP” Layer on which the ring is drawn.
- bottom_layer
str|None Layer for the ground plane (if None, no ground is drawn).
- net
str,default“RR” Net name.
- width
float,default0.2mm Micro-strip width for the ring and port stubs.
- nr_segments
int,default32 Number of straight segments per 90° arc.
- z0
Examples
>>> rr = RatRace(freq=5e9) >>> edb = Edb("ratrace.aedb") >>> rr._pedb = edb >>> rr.create() >>> f"{rr.circumference * 1e3:.2f} mm" '45.00 mm'
Overview#
Draw the discretised ring and four 50 Ω port stubs. |
Physical circumference of the ring. |
|
Mean radius of the ring. |
Import detail#
from pyedb.libraries.rf_libraries.base_functions import RatRace
Property detail#
Attribute detail#
- RatRace.z0#
- RatRace.freq#
- RatRace.layer = 'TOP'#
- RatRace.bottom_layer = None#
- RatRace.net = 'RR'#
- RatRace.width#
- RatRace.nr_segments = 32#
- RatRace.substrate#