A7 · Lesson 20 · Mesh analysis
Solving a circuit with loop currents
Nodal analysis picks node voltages as the unknowns, one for every node except ground. Lesson 19 found a second set of unknowns hiding in the same circuit: the left null space of the incidence matrix, whose vectors are currents that circulate around loops and automatically satisfy KCL. Choose one current per independent loop, write KVL around each, and you get mesh analysis: a different square system for the same circuit, often a smaller one.
- A 10 V source drives two meshes that share the resistor . The meters read the current in (mesh 1's current), in (mesh 2's current) and in (their difference).
- Make small. It shorts mesh 2 out, and almost nothing flows in .
- Make large. Mesh 1's current now has to flow through mesh 2's resistors, and the two mesh currents approach each other.
Predict
The shared resistor rises from 100 Ω to 10 kΩ. What happens to mesh 2's current, the current in ?
It rises. A small is nearly a short across mesh 2, so mesh 2's current is small. As grows, less current can take the shortcut, and in the limit all of the source's current goes round through , and : mA. With = 2 kΩ it's 2.5 mA, in between.
Name it
Mesh currents
In a planar circuit, each mesh (a loop with no other loop inside it) gets a current , all drawn clockwise. A branch on the boundary of one mesh carries that mesh's current; a branch shared by two meshes carries their difference. KCL is then satisfied automatically, so only KVL is left: one equation per mesh.
The mesh matrix
KVL around mesh gives , where:
- is the total resistance around mesh ;
- ;
- is the sum of source voltages around mesh , counted positive when they push current clockwise.
It's the mirror image of nodal analysis's : symmetric, positive on the diagonal, negative off it.
The loop matrix
Collect the branches each mesh runs through in a loop matrix , one row per mesh, with where a branch points along the mesh direction and where it points against. Branch currents are , and KVL around every mesh is . With branch resistances on the diagonal of :
the same pattern as . The rows of span the left null space of the incidence matrix, which is why there are of them.
Which to use
Nodal analysis has unknowns and mesh analysis has . Pick the smaller. Current sources favor nodal analysis and voltage sources favor mesh analysis, because each fixes one unknown directly. Circuit simulators use modified nodal analysis, which works for any circuit, planar or not.
Worked example
Find the mesh currents in the circuit above with = 2 kΩ.
Show the solution
- Mesh 1. In kilohms, milliamps and volts, mesh 1 runs through and , total 3.
- Mesh 2. It runs through , and , total 4, and shares = 2 with mesh 1.
- The mesh equations. The source pushes mesh 1 clockwise:
- Solve. The determinant is , so and carries = 2.5 mA.
- Check by nodal analysis. Node a sits at = 5 V, and = 2.5 mA flows down .
Answer = 5 mA and = 2.5 mA, so 2.5 mA flows in .
Worked example
Build the mesh matrix of that circuit from its loop matrix.
Show the solution
- Orient the branches. Take them in the order , , , , with pointing toward node a, and pointing down and pointing right.
- Write the loop matrix. Mesh 1 runs along and down ; mesh 2 runs up , along and down :
- Multiply. the matrix written down by inspection.
- Branch currents.
Answer , the same mesh matrix as by inspection.
Worked example
A circuit has 6 nodes and 9 branches, with three voltage sources. Which method gives fewer unknowns?
Show the solution
- Nodal unknowns. Nodal analysis needs node voltages.
- Mesh unknowns. Mesh analysis needs mesh currents, so it wins by one.
- Current sources. If a mesh's outside branch is a current source, that mesh's current is simply the source's value, so the system shrinks again.
- Voltage sources. They do the same for nodal analysis: a source from a node to ground fixes that node's voltage.
Answer mesh analysis, with 4 unknowns to nodal analysis's 5.
Check
A 12 V source drives mesh 1 through = 1 kΩ; = 1 kΩ is shared with mesh 2, which also has = 4 kΩ. What is mesh 1's current?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
Check
In the same circuit, what is mesh 2's current?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
Check
A planar circuit has 7 nodes and 13 branches. How many mesh currents does mesh analysis need?
Check
Mesh 1 contains 1 kΩ and 3.3 kΩ; the 3.3 kΩ resistor is shared with mesh 2, which also has 1.5 kΩ. What is the off-diagonal entry of the mesh matrix?
Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.
Check
A current source of 2 mA forms the outside branch of mesh 2, pointing clockwise. Mesh 1 has a 10 V source, 1 kΩ of its own, and 1 kΩ shared with mesh 2.
(a)
What is mesh 2's current?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
(b)
What is mesh 1's current?
Check
Two meshes have totals and around them and share . A 1 V source drives mesh 1.
Step 1
What is the determinant of the mesh matrix?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is ?
Step 3
What is ?
Explain why
A circuit has several voltage sources and only a few loops, but many nodes. Why does mesh analysis suit it, and why do simulators still use nodal analysis?
Mesh analysis has one unknown per independent loop, , against nodal analysis's , so a circuit with many nodes and few loops (a long chain of series parts, say) gives a smaller system. Voltage sources sit naturally in KVL equations, adding a known term to a mesh's right side, while in nodal analysis each floating voltage source needs special handling. Simulators use modified nodal analysis anyway, because meshes are only defined for planar circuits (ones you can draw without crossings), while every circuit has nodes, and because building from a netlist part by part is simpler than finding meshes.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.