Sub topic 11
Current sources and the supermesh
This chapter assumes you can write KVL mesh equations with a consistent clockwise convention, put them in matrix form, and solve a small linear system. Here you handle a current source that sits in a branch shared by two meshes.
Why a current source breaks the usual method
Normal mesh equations rely on writing each resistor's voltage as R times current. A current source fixes the current in its branch, but its voltage is unknown. It depends on the rest of the circuit. You cannot write a KVL term for it without adding an extra unknown.
There are two cases:
- The source is on the outer edge of only one mesh. That mesh current equals the source value, with a sign set by direction. You know one mesh current already, so you skip that mesh's KVL equation.
- The source is in a branch shared by two meshes. Use a supermesh.
Building a supermesh
A supermesh is the loop you get by merging two meshes and leaving out the branch that holds the current source.
- Mark the mesh currents, both clockwise.
- Write one KVL equation around the outer boundary of the two meshes. The shared branch with the current source is not part of this loop, so its unknown voltage never appears.
- Write one constraint equation from the current source. The source current is the difference of the two mesh currents in the shared branch.
- Solve the two equations together. The supermesh KVL replaces the two original KVL equations, so the count of equations still matches the count of unknowns.
Worked example
Mesh 1 contains a 12 V source and R1 = 2 Ω. Mesh 2 contains R3 = 4 Ω. A 3 A current source sits in the shared branch, pointing in the direction of mesh 1's clockwise current.
- Supermesh KVL around the outer loop: 12 − 2·i1 − 4·i2 = 0, so 2·i1 + 4·i2 = 12.
- Constraint: in the shared branch, mesh 1 current flows with the source and mesh 2 current flows against it, so i1 − i2 = 3.
import numpy as np
# Supermesh example, both mesh currents clockwise.
# Mesh 1: 12 V source and R1 = 2 ohm. Mesh 2: R3 = 4 ohm.
# A 3 A current source sits in the branch shared by the two meshes.
# Equation 1 (supermesh KVL around the outer loop): 2*i1 + 4*i2 = 12
# Equation 2 (current-source constraint): i1 - i2 = 3
A = np.array([[2.0, 4.0],
[1.0, -1.0]])
b = np.array([12.0, 3.0])
i1, i2 = np.linalg.solve(A, b)
print(f"i1 = {i1:.1f} A, i2 = {i2:.1f} A")The output is i1 = 4.0 A and i2 = 1.0 A.
Recovering the hidden voltage
The source voltage was skipped, not lost. Apply KVL to mesh 1 alone: 12 − 2·4 − v = 0, so the voltage drop across the current source in the i1 direction is v = 4 V.
A power check confirms it:
| Element | Power |
|---|---|
| 12 V source | delivers 12 × 4 = 48 W |
| R1 (2 Ω) | absorbs 2 × 4² = 32 W |
| R3 (4 Ω) | absorbs 4 × 1² = 4 W |
| 3 A current source | absorbs 4 V × 3 A = 12 W |
The absorbed power is 32 + 4 + 12 = 48 W, which equals the 48 W delivered.
Exercise
A 2 A current source lies in the branch shared by mesh 1 and mesh 2, with its arrow pointing in mesh 1's clockwise direction. The outer loop has a 10 V source, a 1 Ω resistor in mesh 1 and a 3 Ω resistor in mesh 2, with both mesh currents clockwise and the 10 V source aiding i1. Find i1 and i2.
Show answer
Supermesh KVL: 1·i1 + 3·i2 = 10. Constraint: i1 − i2 = 2. Substituting i1 = i2 + 2 gives 4·i2 + 2 = 10, so i2 = 2 A and i1 = 4 A.