Meshes and mesh currents
A loop is any closed path through a circuit. A mesh is a loop with no other loop inside it, like one pane of a window. Our circuit has three loops but only two meshes: mesh 1 on the left, mesh 2 on the right.
Give each mesh its own current circulating round it, clockwise by convention: i1 in mesh 1 and i2 in mesh 2. These mesh currents are our unknowns. Two numbers will describe the current in every wire.
R1 carries only i1 and R2 carries only i2. R3 sits in both meshes: i1 runs down through it while i2 runs up. So R3 carries i1 − i2, downwards. KCL holds at every node automatically.
Writing the equations
Walk mesh 1 clockwise and add the voltage drops; Kirchhoff's voltage law says they sum to zero. We enter V1 at − and leave at +, a rise, so it counts −12 V. R1 drops 2k·i1 and R3 drops 3k·(i1 − i2).
Now walk mesh 2 clockwise. R2 drops 2k·i2. We enter V2 at its + terminal, a drop, so it counts +4 V. In R3 we walk upwards, with i2, so it drops 3k·(i2 − i1). The sum is zero.
Collect terms: 5k·i1 − 3k·i2 = 12 and −3k·i1 + 5k·i2 = −4. Each diagonal entry is the total resistance round that mesh. Each off-diagonal entry is minus the resistance the two meshes share.
Solving and checking
Multiply the first equation by 5 and the second by 3, then add: 16k·i1 = 48, so i1 = 3 mA. Back-substitute: 5k·i2 = −4 + 9 = 5, so i2 = 1 mA. Both positive: both run clockwise.
Mesh currents are bookkeeping; branch currents are what a meter reads. R1 carries 3 mA, R2 1 mA and the shared R3 3 − 1 = 2 mA downwards. So node a sits at 3 kΩ × 2 mA = 6 V.
With the passive sign convention, V1 supplies 36 mW. R1 absorbs 18 mW, R2 2 mW and R3 12 mW. V2 absorbs 4 mW because i2 enters its + terminal: it is being charged. Supplied equals absorbed.
Now turn V2 from 0 to 12 V and solve again at every value. Above 7.2 V, i2 turns negative: it really runs anticlockwise and V2 starts supplying power. The method never changes; a minus sign just reverses the arrow.
What is happening
# step 1/10 · mesh # about: Mesh 1, Mesh 2 loop any closed path through the circuit mesh a loop with no other loop inside it this circuit mesh 1 V1, R1, R3 mesh 2 R3, R2, V2 outer V1, R1, R2, V2 (a loop, not a mesh) Meshes only exist in a planar circuit: one you can draw with no wires crossing.
The figure is an ideal DC circuit: V1 = 12 V and V2 = 4 V sources, R1 = 2 kΩ, R2 = 2 kΩ and R3 = 3 kΩ, and wires with no resistance. Every current, voltage and power shown is computed from these values by the lesson's model. Mesh currents are drawn clockwise by convention. Any direction works as long as each KVL walk follows its own mesh current; a negative answer then means the current runs the other way.