Sub topic 10
Recovering branch currents and voltages
Mesh currents are bookkeeping quantities. They are not always the current in a real component. This chapter assumes you can write and solve mesh equations (the previous chapters) and apply Ohm's law. Here you convert mesh currents into the branch currents and voltages that you usually want.
The rule for branch currents
Each branch belongs to one or two meshes.
- A branch on the outer edge belongs to one mesh. Its branch current equals that mesh current, with the same direction.
- A branch shared by two meshes carries the algebraic sum of both mesh currents. Take one mesh direction as the reference. Add the current from that mesh and subtract the current from the other, because the other flows the opposite way through the shared branch when both meshes are clockwise.
A negative result is not an error. It means the real current flows opposite to the reference direction you picked.
Worked example
Use the two-mesh circuit from the solving chapter. Both mesh currents are clockwise. Mesh 1 has V1 = 10 V, R1 = 2 Ω and the shared R2 = 4 Ω. Mesh 2 has R2, R3 = 6 Ω and V2 = 5 V opposing the clockwise current. Solving gives i1 ≈ 1.818 A and i2 ≈ 0.227 A.
| Branch | Current | Value |
|---|---|---|
| R1 | i1 | 1.818 A |
| R2 (mesh 1 direction) | i1 − i2 | 1.591 A |
| R3 | i2 | 0.227 A |
The voltages follow from Ohm's law, v = iR. Use the passive sign convention: current enters the resistor at the positive terminal.
- V(R1) = 2 × 1.818 = 3.636 V
- V(R2) = 4 × 1.591 = 6.364 V
- V(R3) = 6 × 0.227 = 1.364 V
Check KVL on mesh 1: 10 − 3.636 − 6.364 = 0. Check mesh 2: 6.364 − 1.364 − 5 = 0. Both close, so the numbers are consistent.
Doing it in code
The script below solves the system, then derives the branch currents and voltages.
import numpy as np
R1, R2, R3 = 2.0, 4.0, 6.0
V1, V2 = 10.0, 5.0
R = np.array([[R1 + R2, -R2],
[-R2, R2 + R3]])
v = np.array([V1, -V2])
i1, i2 = np.linalg.solve(R, v)
# Branch currents, referenced to the mesh 1 direction for R2.
branch_i = {"R1": i1, "R2": i1 - i2, "R3": i2}
resistance = {"R1": R1, "R2": R2, "R3": R3}
for name, i in branch_i.items():
print(f"{name}: i = {i:.4f} A, v = {i * resistance[name]:.4f} V")Common errors
- Using i1 + i2 for a shared branch when both meshes are clockwise. The currents oppose each other there, so subtract.
- Reporting a mesh current as the current in a shared resistor.
- Forgetting that the sign of a voltage depends on the reference direction. If you reverse the current, reverse the polarity.
- Skipping the KVL check. Plugging the answers back into each mesh loop takes under a minute and catches most slips.
Exercise
In a two-mesh circuit with both mesh currents clockwise, i1 = 3 A and i2 = 5 A. The shared resistor is 2 Ω. What is the current through the shared resistor in the mesh 1 direction, and what is the voltage across it with that direction as the reference?
Show answer
The current is i1 − i2 = 3 − 5 = −2 A, so 2 A actually flows opposite to the mesh 1 direction. The voltage in the mesh 1 reference is v = 2 × (−2) = −4 V, meaning the terminal where mesh 1 current would enter is 4 V lower than the other terminal.