Definitionintro
Kirchhoff's circuit laws
Also called KCL and KVL, Kirchhoff's current law, Kirchhoff's voltage law.
The currents into a node sum to zero and the voltages around a loop sum to zero, the constraints that every circuit simulator writes as equations.
Kirchhoff's circuit laws are the two linear constraints that the wiring of a lumped circuit puts on its branch currents and branch voltages: the current law (KCL) says that the currents leaving any node sum to zero, and the voltage law (KVL) says that the branch voltages around any closed loop sum to zero. They depend only on the graph of the circuit, not on the elements, so a circuit simulator writes them once from the netlist and adds the element laws. This page belongs to the circuit simulation half of the logic and circuit simulation sub-area, which works with nodal equations rather than with gate values. The same laws on a resistor network give the electrical flow of graph algorithms, where Ohm's law, the Laplacian matrix and Thomson's principle are worked out.
Definition
Circuit graph. A lumped circuit has nodes, numbered , with node 0 as the ground (reference) node, and two-terminal branches. Each branch has a chosen direction from its first node to its second node, so the circuit is a connected directed graph, possibly with parallel edges. Branch carries a current , counted positive from the first node through the element to the second node, and a voltage , the potential of the first node minus the potential of the second. This pairing of directions is the associated reference direction: with it, is the power that branch absorbs.
Reduced incidence matrix. has if branch leaves node , if it enters node , and otherwise. It is the signed incidence matrix with the row of ground deleted.
Kirchhoff's current law. A current vector satisfies KCL when the net current leaving every node is zero:
The row of ground is the negative sum of the other rows, so it holds too. Summing the rows of a set of nodes gives the cut set form: the net current through the branches with one end in and one end outside is zero.
Kirchhoff's voltage law. A voltage vector satisfies KVL when the signed sum of the branch voltages around every closed loop is zero, a branch counting when the loop runs along its direction and against it. Equivalently, there are node voltages (with ) such that
Why the two forms agree. If , each loop sum telescopes to . Conversely, if every loop sum is zero, define as the signed sum of along any path from node to ground. Two such paths together form a closed walk, whose signed sum is zero, so does not depend on the path, and for every branch.
Counting. On a connected circuit graph has rank : it has rows, and the columns of a spanning tree are independent. To see this, take a leaf of the tree. Among the tree columns, row has one nonzero, in the column of its leaf branch, so a zero combination of tree columns gives that column the coefficient 0; delete the leaf and repeat. So KCL is independent equations. KVL is independent equations, one for each fundamental cycle of a spanning tree. Together with one law for each element, this gives equations in the branch unknowns, the count that sparse tableau analysis writes out in full.
Examples and non-examples
A four-branch circuit. Take nodes 1, 2 and ground, and the branches , , , . Then
KCL reads and . KVL reads , , , , so the two independent loops give and . With the branch voltages are , and satisfies KCL. Branch has , so it delivers power, as a source does.
Non-example: a current vector that breaks KCL. In the same graph, has at node 1, so one ampere would have to collect at node 1.
Non-example: laws that cannot hold together with the elements. Two ideal voltage sources of 1 V and 2 V in parallel between node 1 and ground force and on the two branches of a two-branch loop. No voltage vector satisfies KVL and both element laws, so the circuit has no solution. Simulators reject such a loop of voltage sources, and the dual case, a cut set made only of current sources whose currents do not sum to zero.
Non-example: outside the lumped model. The laws assume that no charge collects at a node and that no changing magnetic flux links a loop. On a wire whose length is a fair fraction of the signal wavelength, or around a loop that a changing magnetic field passes through, the voltage between two points depends on the path, and KVL in the form above does not hold. Such parts are modeled with distributed models or with extra lumped elements.
Related definitions
- Flow conservation in network flows is KCL with demands: the same equation with a right-hand side.
- Tellegen's theorem follows from KCL and KVL alone: for any that satisfies KVL and any that satisfies KCL on the same graph.
- Modified nodal analysis uses the node voltages to satisfy KVL by construction and writes KCL at each node; sparse tableau analysis keeps both laws as separate rows.
- The KVL space and the KCL space are orthogonal complements in , the cut space and the cycle space of the graph. The cycle basis page builds bases of the cycle space.
- For a diagonal of branch conductances, is the weighted Laplacian matrix with the row and the column of ground deleted. KCL becomes plus source terms after Ohm's law is substituted.
References
- G. Kirchhoff, Ueber den Durchgang eines elektrischen Stromes durch eine Ebene, insbesondere durch eine kreisförmige, Annalen der Physik und Chemie 64, 497 to 514, 1845, the passage that states the two laws for a network of linear conductors, their first statement
- G. Kirchhoff, Ueber die Auflösung der Gleichungen, auf welche man bei der Untersuchung der linearen Vertheilung galvanischer Ströme geführt wird, Annalen der Physik und Chemie 72, 497 to 508, 1847, the whole paper (the independent equations of a network, counted with spanning trees)
- Farid N. Najm, Circuit Simulation, Wiley-IEEE Press, 2010, Chapter 2, Section 2.2 (topological constraints) and Section 2.3 (cycle space and bond space)
- Leon O. Chua and Pen-Min Lin, Computer-Aided Analysis of Electronic Circuits, Prentice-Hall, 1975, the chapter on the topological formulation of network equations (incidence, loop and cut set matrices)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag YT4QF0 Edit this page History Report an error Markdown