Circuit Elements, Topology and the Passive Sign Convention
Two engineers analyse the same circuit. One reports that a 6 V source "delivers ", the other that it "absorbs ". Both are right, and a third who writes "delivers " has made a sign error that will flip a battery-charger design upside down. Circuit theory is mostly bookkeeping, and the bookkeeping rules in this lesson (reference directions, the passive sign convention, and how nodes, branches and loops are counted) are what make every later method mechanical and checkable.
Ideal elements
Circuit theory replaces real parts with ideal two-terminal elements, each defined by one relation between its voltage and current :
| Element | Symbol (IEC) | Defining relation | Unit |
|---|---|---|---|
| resistor | rectangle | ohm, | |
| capacitor | two plates | farad, F | |
| inductor | coil | henry, H | |
| independent voltage source | circle with and | for any | volt, V |
| independent current source | circle with an arrow | for any | ampere, A |
| dependent (controlled) source | diamond | or set by another voltage or current in the circuit |
Real resistors have some inductance, real capacitors leak, real sources sag under load. Each of those is modelled by adding more ideal elements, for example a source with an internal resistance (Ideal, Practical and Dependent Sources). The components themselves, with their tolerances and markings, are covered in Capacitors and Inductors as Components and Reading Schematics and IEC Symbols.
When is a circuit model valid? A lumped model assumes that a current entering a wire leaves it at the same instant, which holds when the circuit is much smaller than the wavelength of the highest frequency present. A rule of thumb is a size below ; beyond that, wires become transmission lines (a topic of Electromagnetic Theory).
Reference directions and the passive sign convention
Before you know any value, you draw an arrow for each current and a pair for each voltage. These are reference directions: guesses. If the computed value comes out negative, the real current flows against the arrow; nothing has to be redrawn.
The passive sign convention ties the two references together: draw the current arrow into the terminal. Then
A positive means the element takes energy from the circuit (a resistor always does); a negative means it delivers energy. If the arrow is drawn into the terminal instead, the absorbed power is . Every method in this course uses the passive convention for passive elements, so keeps its plus sign.
Topology: nodes, branches, loops
- A node is a point where two or more elements connect, including all the wire joined to it (a wire has no voltage drop, so one node can look like a long line on a schematic).
- A branch is one element (or a series string treated as one) between two nodes.
- A loop is any closed path that passes no node twice. A mesh is a loop that encloses no other element in a planar drawing.
For a connected circuit with nodes and branches, the number of independent KCL equations is and the number of independent KVL equations is
Together they give equations for branch currents. Nodal analysis uses the node voltages as unknowns and mesh analysis the mesh currents, which is why each method suits a different kind of circuit (Supermeshes, and Choosing Nodal or Mesh).
Worked example: who delivers, who absorbs?
Given: the circuit above: , , , , with its terminal at node 3. The node voltage (we will learn to find it in Node-Voltage Analysis).
Find: the topology counts, every branch current, the power of every element with the passive convention, and whether delivers or absorbs.
Solve: nodes 1, x, 3 and 0 give ; branches give ; so independent loops. Currents with the arrows drawn:
Powers absorbed ( with into ):
| Element | (V) | into (A) | absorbed (W) |
|---|---|---|---|
flows into the terminal of , so absorbs : it is being pushed backwards, as a battery on charge would be. 's current of leaves its terminal, so its absorbed power is negative: it delivers .
Check: the absorbed powers add to zero, . This is Tellegen's theorem: in any circuit that obeys KCL and KVL, over all branches with passive references. It is the fastest check of any hand solution.
Topology and power balance in Python
The incidence matrix has one row per node and one column per branch: where the branch reference current leaves the node, where it enters. Its rank is , which is where the count of independent KCL equations comes from (column, row and null space).
import numpy as np
# branch: (name, from-node, to-node) in the direction of the reference current (into + for passive refs)
branches = [("V1", "0", "1"), ("R1", "1", "x"), ("R2", "x", "0"), ("R3", "x", "3"), ("V2", "3", "0")]
nodes = ["0", "1", "x", "3"]
A = np.zeros((len(nodes), len(branches)), dtype=int)
for k, (_, a, b) in enumerate(branches):
A[nodes.index(a), k] = 1 # current leaves node a
A[nodes.index(b), k] = -1 # and enters node b
print(A)
n, b = A.shape
r = np.linalg.matrix_rank(A)
print(f"n = {n}, b = {b}, rank(A) = {r}, independent loops = {b - r}")
v_node = {"0": 0.0, "1": 12.0, "x": 7.2, "3": 6.0}
i_branch = np.array([0.48, 0.48, 0.24, 0.24, 0.24])
print("KCL residuals:", np.round(A @ i_branch, 12) + 0.0)
for (name, a, b_), i in zip(branches, i_branch):
v = v_node[a] - v_node[b_] # + at the node the current enters from
print(f"{name}: v = {v:6.2f} V, i = {i:5.2f} A, p absorbed = {v * i:7.3f} W")
p = sum((v_node[a] - v_node[b_]) * i for (_, a, b_), i in zip(branches, i_branch))
print(f"sum of absorbed powers = {p:.2e} W")[[ 1 0 -1 0 -1]
[-1 1 0 0 0]
[ 0 -1 1 1 0]
[ 0 0 0 -1 1]]
n = 4, b = 5, rank(A) = 3, independent loops = 2
KCL residuals: [0. 0. 0. 0.]
V1: v = -12.00 V, i = 0.48 A, p absorbed = -5.760 W
R1: v = 4.80 V, i = 0.48 A, p absorbed = 2.304 W
R2: v = 7.20 V, i = 0.24 A, p absorbed = 1.728 W
R3: v = 1.20 V, i = 0.24 A, p absorbed = 0.288 W
V2: v = 6.00 V, i = 0.24 A, p absorbed = 1.440 W
sum of absorbed powers = 0.00e+00 W
For the code puts the current arrow from node 0 to node 1 through the source, so the voltage in the same direction is : the same as the table, reached with the other pair of references.
Interactive: the same circuit
The netlist lab reports element currents from the first node to the second through the element, which is the passive convention for the order written. V2 3 0 DC 6 therefore shows (absorbing) and V1 1 0 DC 12 shows (delivering). Raise and rises with it ( from KCL); above the current in changes sign and it starts delivering.
Guided lab: check Tellegen's theorem on the bench
Hand calculation. Scale the resistors by 100 to keep the currents small, using E24 values: , , . The same KCL at x gives and , , ; every power is about a hundredth of the table's.
Simulation. The lab above shows the unscaled circuit; scaling every resistor by the same factor leaves the node voltages unchanged and divides every current by that factor, which you can confirm with the Python code by editing i_branch.
What you would measure. Two bench supply channels at and with current limits of and the negative terminals joined. Measure each element's voltage with the DMM, red lead on the terminal you marked , and each current with the meter in series, current entering the red lead along your arrow. Expect readings within about 1 to 2 % of the table and a power sum within a few hundredths of a milliwatt of zero once you multiply them out. Note that a bench supply cannot always sink current: many single-quadrant supplies cannot absorb the that must take, and their output rises instead. Put a resistor across the terminals: it draws , more than the pushed in, so the supply still delivers a net . Or check the supply's manual for sink capability.
Hazards and safe setup. 12 V maximum, current-limited channels, quarter-watt resistors dissipating at most . Never connect a battery in the position: forcing current into a cell is a charging experiment, which this track excludes.
Pitfalls
- Reading a reference arrow as a fact. A negative answer only means the current flows against the arrow.
- Mixing conventions inside one power sum. Use the passive convention for every element, sources included, and the sum must be zero.
- Counting a long wire as several nodes. All points joined by wire are one node.
- Using a lumped model outside its range. A 30 cm wire at is a full wavelength long; Kirchhoff's laws no longer describe it.
Practice
- A circuit has 6 nodes and 9 branches. How many independent KCL and KVL equations does it have?
- A voltage source of has flowing into its terminal (through the source from to ). Does it deliver or absorb power, and how much?
- What is the largest size a lumped circuit should have at , using the rule and on a cable?
Answer
- KCL equations and KVL equations.
- Current into means into : absorbed, so it delivers .
- , so about .
Test yourself
With the passive sign convention, an element has and . It…
- absorbs 10 W
- delivers 10 W
- absorbs -2.5 W
- neither absorbs nor delivers
A connected circuit has nodes and branches. How many mesh (independent loop) equations does mesh analysis need?
- 3
- 4
- 5
- 8
Tellegen's theorem says that, with passive reference directions everywhere, …
- every source delivers power
- the sum of over all branches is zero
- the incidence matrix is square
- every resistor carries the same current
Your computed current through a resistor is . What should you do?
- redraw the arrow and redo the analysis
- nothing: 3 mA flows against the reference arrow
- take the absolute value and continue
- it is an error, currents in resistors are positive