Component
rfnetwork.component.Component
- class rfnetwork.component.Component(shunt=False, passive=True, n_ports=2, state={})
Bases:
objectBase class for Network Components
Parameters
- 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,
evaluatecallsevaluate_sdatainstead ofevaluate_dataand noise correlation matrix is computed passively.- n_portint, default: 2
number of component ports
- statedict, optional
dictionary of state variables specific to the sub-class (i.e. line width, switch state etc…). The state values can be read with the
stateproperty 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
Component.equals(other)Returns True if the s-matrix data from other is equivalent to this object.
Component.evaluate([frequency, noise])Computes the component s-matrix and (optionally) the noise correlation matrix.
Component.evaluate_data(frequency)Returns s-matrix and noise correlation matrix of the component.
Component.evaluate_s([frequency])Computes the component s-matrix data
Component.evaluate_sdata(frequency)Returns s-matrix of the component.
Component.format_state(**kwargs)Get a string value of all the state variables.
Component.plot(*paths[, frequency, fmt, ...])Plots s-matrix or noise figure data over frequency
Component.port_extension(port, distance[, er])Move the s-parameter reference plane at one port of the Component.
Clears all plots added as tuning plots.
Component.set_state(**kwargs)Change the state variables.
Component.tune(tuners)Open a tuning window.
Attributes
Generic frequency vector for base components
Number of ports of the component
Dictionary of state values