LumpedElementFilter

rfnetwork.elements.LumpedElementFilter

class rfnetwork.elements.LumpedElementFilter(fc, btype, prototype)

Bases: DynamicNetwork

Parameters

componentsdict

dictionary of Component objects where the keys are the reference designators.

nodeslist

list of tuples, where each tuple is a group of component ports that are connected into a single node.

cascadeslist

list of tuples, where each tuple is a group of components that are connected end to end, port 2 to port 1.

probes: dict

dictionary of probe names to the component port they attach to. Probe voltage waves are defined as the wave leaving the component from the specified port. For example, dict(probe1=c1|1), would attach a probe to port 1 of the “c1” component. Probe names will appear in the coords of the “b” dimension of s-matrix data returned by evaluate.

shuntbool, default: False

If True, port 2 is connected to ground and port 1 is transformed into a 2-port component that can be cascaded with other components.

passivebool, default: True

if True, evaluate calls evaluate_sdata instead of evaluate_data and noise correlation matrix is computed passively.

statedict, optional

dictionary of state variables specific to each component. Keys must be component designators. The state values can be read with the state property and changed later with set_state(). Attempting to set the state of variables that were not included in the initial dictionary will raise an error.

Methods

LumpedElementFilter.from_butterworth(fc, ...)

Parameters fc1 float Lower 3 dB cutoff frequency [Hz] fc2 float Upper 3 db cutoff frequency [Hz] n int Filter order (1-10). Odd n will be matched to 50 ohms, while even n requires an impedance match.

LumpedElementFilter.from_chebyshev(fc, btype, n)

Parameters fc1 float Lower 3 dB cutoff frequency [Hz] fc2 float Upper 3 db cutoff frequency [Hz] n int Filter order (1-10). Odd n will be matched to 50 ohms, while even n requires an impedance match. ripple float, default: 0.5 Passband ripple in dB

Attributes

LumpedElementFilter.cls_components

LumpedElementFilter.netlist

LumpedElementFilter.ports

LumpedElementFilter.probe_names

LumpedElementFilter.probe_netlist

LumpedElementFilter.probes