Sub topic 1
Circuit elements and terminology: nodes, branches, loops
Mesh analysis starts with reading a circuit diagram correctly. Before you can pick mesh currents or write equations, you have to say exactly what a node, a branch, a loop, and a mesh are. Mistakes here lead to missing equations or extra ones. This chapter fixes the vocabulary and gives you a counting rule to check your work.
Prerequisites
This chapter assumes you already know:
- What voltage, current, and resistance are, and their units (volts, amperes, ohms).
- Ohm's law, v = iR.
- How to combine resistors in series and in parallel.
- How to solve a system of two or three linear equations.
You do not need to know Kirchhoff's laws yet. The next chapters introduce them.
Circuit elements
A circuit element is a two-terminal part that you treat as a single unit. Each element has a current through it and a voltage across it. In DC resistive analysis you use only two kinds.
| Element | Symbol | What it does | Defining relation |
|---|---|---|---|
| Resistor | R | Opposes current and turns electrical energy into heat | v = iR |
| Independent voltage source | V | Holds a fixed voltage across its terminals. The current depends on the rest of the circuit | v = V |
| Independent current source | I | Forces a fixed current through itself. The voltage depends on the rest of the circuit | i = I |
| Dependent source | diamond | Voltage or current set by another voltage or current in the circuit | covered in a later chapter |
An ideal wire is not an element. It has zero resistance, so every point on a wire is at the same voltage. This fact decides what counts as a node.
Nodes
A node is a point where two or more elements connect. Everything joined by ideal wire is one node, however long the wire is or however it bends on the page.
Two points drawn far apart but connected by a plain wire are the same node. Two points drawn close together but with a resistor between them are different nodes.
Some nodes join only two elements. Others join three or more. The second kind matters most for analysis, so it gets a name.
- A simple node joins exactly two elements. The same current flows through both.
- An essential node (also called a principal node) joins three or more elements. The current can split or merge there.
Branches
A branch is one element, or several elements in series, that carries a single current. A branch runs from one essential node to the next.
In practice, count branches between essential nodes. Suppose a 10 V source and a 2 Ω resistor are in series, with nothing else attached at the point between them. The same current flows through both, so they form one branch. The point between them is a simple node, and you do not count it as a junction.
The distinction matters because mesh analysis needs one current per independent loop. It does not need one current per element.
Loops and meshes
A loop is any closed path that starts at a node, passes through elements, and returns to the starting node without visiting any other node twice. Direction does not matter for the definition, but you will need to pick one when you write equations.
A mesh is a loop that contains no other loop inside it. Think of the "windows" in the circuit drawing. A mesh is the smallest kind of loop.
The difference matters because a circuit usually has more loops than meshes. Larger loops can be built by combining meshes. They give no new information.
Here is the circuit used throughout this tutorial. A 10 V source V1 and a 2 Ω resistor R1 form the left branch. A 4 Ω resistor R2 forms the middle branch. A 6 Ω resistor R3 and a 5 V source V2 form the right branch. All three branches join at a top node and a bottom node.
This circuit has these loops:
- The left window: branch 1 and branch 2. This is a mesh.
- The right window: branch 2 and branch 3. This is also a mesh.
- The outer loop: branch 1 and branch 3. It encloses branch 2, which lies between them, so it is a loop but not a mesh.
Three loops exist, but only two are meshes. The outer loop is the left mesh and right mesh combined, with the shared branch 2 cancelling out.
Counting rule
Draw the circuit as a connected graph with n essential nodes and b branches. The number of independent loops is:
l = b - n + 1
Here is why this works. A tree that connects n nodes needs n - 1 branches. Every branch beyond those n - 1 closes one new independent loop. So the loops number b - (n - 1), which is b - n + 1.
For the circuit above, b = 3 and n = 2, so l = 3 - 2 + 1 = 2. This matches the two windows. For a planar circuit, the number of meshes equals the number of independent loops. This gives the number of mesh currents, and so the number of equations you must write.
The script below applies the rule. It takes a list of branches, each labeled with its two end nodes, and counts the independent loops.
# Each branch is (label, node at one end, node at the other end).
# Nodes here are essential nodes only.
branches = [
("B1: V1 + R1", "top", "bottom"),
("B2: R2", "top", "bottom"),
("B3: R3 + V2", "top", "bottom"),
]
nodes = {end for _, a, b in branches for end in (a, b)}
b = len(branches)
n = len(nodes)
loops = b - n + 1 # valid for a connected circuit
print(f"branches b = {b}, essential nodes n = {n}")
print(f"independent loops (meshes in a planar circuit) = {loops}")The output is branches b = 3, essential nodes n = 2 and independent loops (meshes in a planar circuit) = 2. The formula assumes the circuit is connected, meaning every part is reachable from every other part through elements. A circuit split into separate pieces must be counted one piece at a time.
Worked example: a three-window circuit
Take a circuit with four essential nodes, labeled A, B, C, and D. Six branches connect them: A–B, B–C, C–D, D–A, A–C, and B–D. That is a square with both diagonals drawn.
- Count the essential nodes. n = 4.
- Count the branches. b = 6.
- Apply the rule. l = 6 - 4 + 1 = 3.
You need three independent loops. If you draw this circuit on paper, you can place one diagonal inside the square and the other outside it, so that no two branches cross. The drawing then has three windows, so there are three meshes. The next chapters cover what to do when a circuit cannot be drawn without crossings.
This example also shows a trap. Counting windows by eye is easy to get wrong when a drawing is crowded. The formula is a second check. If your count of windows disagrees with b - n + 1, either you have missed a branch or the circuit is not planar.
Common errors
- Treating two points joined by a wire as different nodes. Redraw the wire as a single point and re-count.
- Counting a simple node as a junction. Merge elements in series into one branch first.
- Calling every loop a mesh. A mesh has no other loop inside it.
- Forgetting that a current source is also a branch. It counts in b, even though it will need special handling later.
- Applying the formula to a disconnected circuit.
Where this leads
You now have the vocabulary. The next chapters use these ideas in order. Ohm's law and Kirchhoff's laws give the rules for each element and each loop. Then a mesh current is assigned to each of the l independent loops, and the equations follow.
Exercise
A circuit has 5 essential nodes and 8 branches. It is connected and planar. How many independent loops does it have, and how many mesh currents will mesh analysis need?
Show answer
Use l = b - n + 1 = 8 - 5 + 1 = 4. The circuit has 4 independent loops. For a planar circuit this equals the number of meshes, so mesh analysis needs 4 mesh currents and 4 equations.
Exercise
In a circuit, a 3 Ω resistor and a 9 V source are connected end to end, and nothing else attaches at the point where they meet. Is that point an essential node? How many branches do the two elements form?
Show answer
No. Only two elements meet there, so it is a simple node. The same current flows through both elements, so they form one branch.