Sub topic 4
Kirchhoff's Current Law and Why Mesh Currents Satisfy It
This chapter assumes you know Ohm's law, can read a circuit diagram with nodes and branches, and have seen Kirchhoff's Voltage Law (KVL). It explains why mesh analysis needs no current equations at the nodes.
Kirchhoff's Current Law
Kirchhoff's Current Law (KCL) says the currents entering a node add up to the currents leaving it. A node is a point where two or more branches meet. Charge does not pile up at a node in a DC circuit, so whatever flows in must flow out.
Written as a sum, with currents leaving the node counted as positive:
sum of currents leaving a node = 0You can also write it as "total in = total out". Both forms say the same thing. Pick one and use it throughout a problem.
Why mesh currents satisfy KCL automatically
A mesh current is a loop of current that circulates around one mesh. A mesh current that reaches a node must also leave it, because the loop is closed. Each mesh current therefore adds zero net current to every node it passes through.
If every branch current is built from mesh currents, KCL holds at every node by construction. This is why mesh analysis needs only KVL equations. KCL is already built into the choice of variables.
Branch currents in a shared branch
A branch on the outer edge of the circuit belongs to one mesh. Its current equals that mesh current, with the sign set by the direction you chose.
A branch shared by two meshes carries both mesh currents. With both mesh currents clockwise, they run in opposite directions through the shared branch. The branch current is their difference.
A worked check
Take the two-mesh circuit from the code example in this tutorial: V1 = 10 V, R1 = 2 Ω, R2 = 4 Ω (shared), R3 = 6 Ω, V2 = 5 V. Both mesh currents are clockwise. Solving the mesh equations gives i1 ≈ 1.818 A and i2 ≈ 0.227 A.
Clockwise mesh 1 goes up the left branch and down the shared branch. Clockwise mesh 2 goes up the shared branch and down the right branch. At the top node:
- The left branch brings current i1 into the node.
- The shared branch takes away i1 − i2 (downward).
- The right branch takes away i2 (downward).
The current leaving is (i1 − i2) + i2 = i1, which equals the current entering. KCL holds for any values of i1 and i2, not only for the solved ones. Numerically, 1.591 A + 0.227 A = 1.818 A.
i1, i2 = 80 / 44, 10 / 44 # solution of the two mesh equations
current_in = i1
current_out = (i1 - i2) + i2
print(f"in = {current_in:.4f} A, out = {current_out:.4f} A")
print("KCL holds:", abs(current_in - current_out) < 1e-12)Common errors
- Forgetting the subtraction in a shared branch. If you treat the shared branch current as i1 alone, KCL fails at the nodes it touches. Use i1 − i2 when the mesh currents oppose each other in that branch, and i1 + i2 if you chose opposite directions for the two meshes.
- Mixing "in" and "out" conventions. Pick one way to write KCL and keep it for the whole problem.
- Using KCL to find mesh currents. KCL gives no new equations here, because it is already satisfied. The equations that determine the mesh currents come from KVL.
Exercise
A circuit has two meshes with clockwise mesh currents i1 = 3 A and i2 = 1 A. A resistor is shared by both meshes. What is the current through the shared resistor, and in which direction does it flow in relation to i1? Confirm KCL at one of the nodes at the ends of the shared branch.
Show answer
Both currents are clockwise, so they oppose each other in the shared branch. The current is i1 − i2 = 3 − 1 = 2 A, in the direction of i1. At the node where the shared branch meets the outer branches, 3 A arrives from mesh 1's outer branch, 2 A leaves through the shared branch, and 1 A leaves through mesh 2's outer branch. Current in (3 A) equals current out (2 A + 1 A).