skrf.circuit.Circuit

class skrf.circuit.Circuit(connections, name=None)[source]

Creates a circuit made of a set of N-ports networks.

For instructions on how to create Circuit see __init__().

A Circuit object is representation a circuit assembly of an arbitrary number of N-ports networks connected together via an arbitrary topology.

The algorithm used to calculate the resultant network can be found in [1].

References

Parameters:

Attributes

C

Return the global scattering matrix of the networks.

G

Generate the graph of the circuit.

X

Return the concatenated intersection matrix [X] of the circuit.

connections_list

Return the full list of connections, including intersections.

connections_nb

Return the number of intersections in the circuit.

connections_pair

List the connections by pair.

dim

Return the dimension of the C, X and global S matrices.

edge_labels

Return a dictionary describing the port and z0 of all graph edges.

edges

Return the list of all circuit connections

intersections_dict

Return a dictionary of all intersections with associated ports and z0:

network

Return the Network associated to external ports.

networks_nb

Return the number of connected networks (port excluded).

nodes_nb

Return the number of nodes in the circuit.

port_indexes

Return the indexes of the "external" ports.

port_z0

Return the external port impedances.

s

Return the global scattering parameters of the circuit.

s_external

Return the scattering parameters for the external ports.

z0

Characteristic impedances of "internal" ports.

Methods

Ground

Return a 2-port network of a grounded link.

Open

Return a 2-port network of an open link.

Port

Return a 1-port Network to be used as a Circuit port.

SeriesImpedance

Return a 2-port network of a series impedance.

ShuntAdmittance

Return a 2-port network of a shunt admittance.

__init__

Circuit constructor.

currents

Currents at internal ports.

currents_external

Currents at external ports.

graph

Generate the graph of the circuit.

is_connected

Check if the circuit's graph is connected.

networks_dict

Return the dictionary of Networks from the connection setup X.

networks_list

Return a list of unique networks (sorted by appearing order in connections).

plot_graph

Plot the graph of the circuit using networkx drawing capabilities.

s_active

Return "active" s-parameters of the circuit's network for a defined wave excitation a.

voltages

Voltages at internal ports.

voltages_external

Voltages at external ports

vswr_active

Return the "active" VSWR of the circuit's network for a defined wave excitation a.

y_active

Return the "active" Y-parameters of the circuit's network for a defined wave excitation a.

z_active

Return the "active" Z-parameters of the circuit's network for a defined wave excitation a.