circuit (skrf.circuit
)¶
The Circuit class represents a circuit of arbitrary topology, consisting of an arbitrary number of N-ports networks.
Like in an electronic circuit simulator, the circuit must have one or more ports connected to the circuit. The Circuit object allows one retrieving the M-ports network, where M is the number of ports defined.
The results are returned in Circuit
object.
Building a Circuit¶
|
Creates a circuit made of a set of N-ports networks. |
|
Return a 1-port Network to be used as a Circuit port. |
|
Return a 2-port network of a series impedance. |
|
Return a 2-port network of a shunt admittance. |
|
Return a 2-port network of a grounded link. |
|
Return a 2-port network of an open link. |
Representing a Circuit¶
|
Plot the graph of the circuit using networkx drawing capabilities. |
Network Representations¶
Return the Network associated to external ports. |
|
Return the global scattering parameters of the circuit. |
|
Return the scattering parameters for the external ports. |
|
Return "active" s-parameters of the circuit's network for a defined wave excitation a. |
|
Return the "active" Z-parameters of the circuit's network for a defined wave excitation a. |
|
Return the "active" Y-parameters of the circuit's network for a defined wave excitation a. |
|
Return the "active" VSWR of the circuit's network for a defined wave excitation a. |
|
Return the external port impedances. |
Voltages and Currents¶
|
Voltages at internal ports. |
|
Voltages at external ports |
|
Currents at internal ports. |
|
Currents at external ports. |
Circuit internals¶
|
Return the dictionary of Networks from the connection setup X. |
|
Return a list of unique networks (sorted by appearing order in connections). |
Return the number of intersections in the circuit. |
|
Return the full list of connections, including intersections. |
|
Return the number of nodes in the circuit. |
|
Return the dimension of the C, X and global S matrices. |
|
Return a dictionary of all intersections with associated ports and z0: |
|
Return the indexes of the "external" ports. |
|
Return the global scattering matrix of the networks. |
|
Return the concatenated intersection matrix [X] of the circuit. |
Graph representation¶
Generate the graph of the circuit. |
|
Generate the graph of the circuit. |
|
Return the list of all circuit connections |
|
Return a dictionary describing the port and z0 of all graph edges. |