| |
- __builtin__.object
-
- WorkingBand
class WorkingBand(__builtin__.object) |
|
A WorkingBand is an high-level object which exists solely to make
working with and creation of Networks within the same band,
more concise and convenient.
A WorkingBand object has two properties:
frequency information (Frequency object)
transmission line information (transmission line-like object)
the methods of WorkingBand simply calls functions from createNetwork,
but it saves the user the hassle of repetitously providing a
tline and frequency type for every network creation.
note: frequency and tline classes are copied, so they are passed
by value and not by-reference. |
|
Methods defined here:
- __init__(self, frequency, tline)
- delay_load(self, d, Gamma0, **kwargs)
- creates a delayed load of length 'd' and refelction coefficient
Gamma0, Network object
takes:
d: length of delay [m]
Gamma0: reflection coefficient [not dB]
returns:
Network object
- delay_short(self, d, **kwargs)
- creates a Network for a delayed short transmission line
takes:
d: the length (in meters)
**kwargs: key word arguments passed to Network Constructor
returns:
a 1-port Network class, representing a shorted transmission
line of length d
- guess_length_of_delay_short(self, aNtwk)
- guess length of physical length of a Delay Short given by aNtwk
takes:
aNtwk: a mwavepy.ntwk type . (note: if this is a measurment
it needs to be normalized to the reference plane)
tline: transmission line class of the medium. needed for the
calculation of propagation constant
- line(self, d, **kwargs)
- creates a Network for a section of transmission line
takes:
d: the length (in meters)
**kwargs: key word arguments passed to Network Constructor
returns:
a 2-port Network class, representing a transmission line of length d
note: the only function called from the tline class is
propagation_constant(f,d), where f is frequency in Hz and d is
distance in meters. so you can use any class which provides this
and it will work .
- load(self, Gamma0, **kwargs)
- creates a Network for a Load termianting a transmission line
takes:
Gamma0: reflection coefficient of load (not in db)
**kwargs: key word arguments passed to Network Constructor
returns:
a 1-port Network class, where S = Gamma0*ones(...)
- match(self, **kwargs)
- creates a Network for a perfect matched transmission line (Gamma0=0)
takes:
**kwargs: key word arguments passed to Network Constructor
returns:
a 1-port Network class, representing a perfect match
- open(self, **kwargs)
- creates a Network for a 'open' transmission line (Gamma0=1)
takes:
**kwargs: key word arguments passed to Network Constructor
returns:
a 1-port Network class, an open
- short(self, **kwargs)
- creates a Network for a short transmission line (Gamma0=-1)
takes:
**kwargs: key word arguments passed to Network Constructor
returns:
a 1-port Network class, a short
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- frequency
- tline
| |