Provides Media super-Class and instances of Media Class’s for various transmission-line mediums.
Instances of the Media Class are objects which provide methods to create network objects. See media for more detailed information.
contains CPW class
Bases: mwavepy.media.media.Media
Coplanar waveguide class
This class was made from the the documentation from the qucs project ( qucs.sourceforge.net/ ).
intermediary parameter. see qucs docs on cpw lines.
characterisitc impedance
losses due to conductor resistivity
intermediary parameter. see qucs docs on cpw lines.
propagation constant
intermediary parameter. see qucs docs on cpw lines.
A transmission line defined in terms of distributed circuit components
Bases: mwavepy.media.media.Media
and admittance values. This class takes the following information,
distributed Capacitance, C distributed Inductance, I distributed Resistance, R distributed Conductance, G
from these the following quantities may be calculated, which are functions of angular frequency (w):
distributed Impedance, Z’(w) = wR + jwI distributed Admittance, Y’(w) = wG + jwC
from these we can calculate properties which define their wave behavior:
characteristic Impedance, Z0(w) = sqrt(Z(w)/Y’(w)) [ohms] propagation Constant, gamma(w) = sqrt(Z(w)*Y’(w)) [none]
given the following definitions, the components of propagation constant are interpreted as follows:
positive real(gamma) = attenuation positive imag(gamma) = forward propagation
distributed Admittance,in ohms^-1 /m
Y’(w) = wG + jwC
distributed Impedance, ohms/m.
Z’(w) = wR + jwI
The characteristic impedance in ohms
initializer which creates DistributedCircuit from a Media instance
A Plane-wave in Freespace.
Bases: mwavepy.media.distributedCircuit.DistributedCircuit
Represents a plane-wave in a homogeneous freespace, defined by [possibly complex] values of relative permativity and relative permeability.
The field properties of space are related to a disctributed circuit transmission line model given in circuit theory by:
distributed_capacitance = real(ep_0*ep_r) distributed_resistance = imag(ep_0*ep_r) distributed_inductance = real(mu_0*mu_r) distributed_conductance = imag(mu_0*mu_r)
Contains Media class.
Bases: object
The super-class for all transmission line media.
It provides methods to produce generic network components for any transmision line medium, such as line, delay_short, etc.
Network Components specific to an instance of the Media super-class such as cpw_short, microstrip_bend, are implemented within the Media instances themselves.
A lumped capacitor
creates a Network for a delayed load transmission line
Gamma0: reflection coefficient of load (not in dB) d: the length (see unit argument) [number] unit: string specifying the units of d. possible options are
‘m’: meters, physical length in meters (default) ‘deg’:degrees, electrical length in degrees ‘rad’:radians, electrical length in radians
note: this just calls, self.line(d,**kwargs) ** self.load(Gamma0, **kwargs)
creates a Network for a delayed open transmission line
d: the length (see unit argument) [number] unit: string specifying the units of d. possible options are
‘m’: meters, physical length in meters (default) ‘deg’:degrees, electrical length in degrees ‘rad’:radians, electrical length in radians
note: this just calls, self.line(d,**kwargs) ** self.open(**kwargs)
creates a Network for a delayed short transmission line
d: the length (see unit argument) [number] unit: string specifying the units of d. possible options are
‘m’: meters, physical length in meters (default) ‘deg’:degrees, electrical length in degrees ‘rad’:radians, electrical length in radians
note: this just calls, self.line(d,**kwargs) ** self.short(**kwargs)
calculates the electrical length for a given distance, at the center frequency.
guess length of physical length of a Delay Short given by aNtwk
returns a two-port network for a impedance mis-match
A lumped inductor
creates a Network for a section of matched transmission line
d: the length (see unit argument) [number] unit: string specifying the units of d. possible options are
‘m’: meters, physical length in meters (default) ‘deg’:degrees, electrical length in degrees ‘rad’:radians, electrical length in radians
creates a Network for a Load termianting a transmission line
Gamma0: reflection coefficient of load (not in db) nports: number of ports. creates a short on all ports,
default is 1 [int]
creates a Network for a perfect matched transmission line (Gamma0=0)
nports: number of ports [int] z0: characterisitc impedance [number of array]. defaults is
None, in which case the Media’s z0 is used. Otherwise this sets the resultant network’s z0. See Network.z0 property for more info
**kwargs: key word arguments passed to Network Constructor
creates a Network for a ‘open’ transmission line (Gamma0=1)
creates a Network for a short transmission line (Gamma0=-1)
returns a shunted ntwk. this creates a ‘tee’, connects ‘ntwk’ to port 1, and returns the result
a shunt capacitor
a shunted delayed load:
a shunted delayed open:
a shunted delayed short:
a shunt inductor
returns an ideal, lossless n-way splitter.
nports: number of ports [int] **kwargs: key word arguments passed to match(), which is
called initially to create a ‘blank’ network.
makes a ideal, lossless tee. (aka three port splitter)
converts electrical length to physical distance. The electrical length is given at center frequency of self.frequency
deg: is theta in degrees? [boolean]
creates a Network for a thru
creates a complex zero-mean gaussian white-noise signal of given standard deviations for phase and magnitude
Rectangular Waveguide class
Bases: mwavepy.media.media.Media
Rectangular Waveguide medium.
Can be used to represent any mode of a homogeneously filled rectangular waveguide of arbitrary cross-section, mode-type, and mode index.
the characteristic impedance of a given mode
the permativity of the filling material
characteristic wave number
cut-off wave number
eigen value in the ‘a’ direction
eigen-value in the ‘b’ direction
the permeability of the filling material