TExcelTAD
Home › Circuit Theory & Network Analysis › Circuit Elements, Topology and the Passive Sign Convention

Circuit Elements, Topology and the Passive Sign Convention

Two engineers analyse the same circuit. One reports that a 6 V source "delivers −1.44 W-1.44\ \text{W}", the other that it "absorbs 1.44 W1.44\ \text{W}". Both are right, and a third who writes "delivers 1.44 W1.44\ \text{W}" 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 vv and current ii:

Element Symbol (IEC) Defining relation Unit
resistor rectangle v=Riv = Ri ohm, Ω\Omega
capacitor two plates i=C dvdti = C\,\dfrac{dv}{dt} farad, F
inductor coil v=L didtv = L\,\dfrac{di}{dt} henry, H
independent voltage source circle with ++ and −- v=vs(t)v = v_s(t) for any ii volt, V
independent current source circle with an arrow i=is(t)i = i_s(t) for any vv ampere, A
dependent (controlled) source diamond vv or ii 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 λ=v/f\lambda = v/f of the highest frequency present. A rule of thumb is a size below λ/10\lambda/10; 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.

element + - v i i enters +: absorbed p = v i element + - v i i leaves +: absorbed p = -v i

The passive sign convention ties the two references together: draw the current arrow into the ++ terminal. Then

p=v iis the power absorbed by the elementp = v\,i \quad \text{is the power absorbed by the element}

A positive pp means the element takes energy from the circuit (a resistor always does); a negative pp means it delivers energy. If the arrow is drawn into the −- terminal instead, the absorbed power is p=−v ip = -v\,i. Every method in this course uses the passive convention for passive elements, so v=Riv = Ri 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 nn nodes and bb branches, the number of independent KCL equations is n−1n - 1 and the number of independent KVL equations is

ℓ=b−n+1\ell = b - n + 1

Together they give bb equations for bb branch currents. Nodal analysis uses the n−1n - 1 node voltages as unknowns and mesh analysis the ℓ\ell mesh currents, which is why each method suits a different kind of circuit (Supermeshes, and Choosing Nodal or Mesh).

+ - V1 12 V R1 10 Ohm R2 30 Ohm R3 5 Ohm + - V2 6 V 1 x 3 node 0 (reference) i1 i2 i3

Worked example: who delivers, who absorbs?

Given: the circuit above: V1=12 VV_1 = 12\ \text{V}, R1=10 ΩR_1 = 10\ \Omega, R2=30 ΩR_2 = 30\ \Omega, R3=5 ΩR_3 = 5\ \Omega, V2=6 VV_2 = 6\ \text{V} with its ++ terminal at node 3. The node voltage vx=7.2 Vv_x = 7.2\ \text{V} (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 V2V_2 delivers or absorbs.

Solve: nodes 1, x, 3 and 0 give n=4n = 4; branches V1,R1,R2,R3,V2V_1, R_1, R_2, R_3, V_2 give b=5b = 5; so ℓ=5−4+1=2\ell = 5 - 4 + 1 = 2 independent loops. Currents with the arrows drawn:

i1=12−7.210=0.48 A,i2=7.230=0.24 A,i3=7.2−65=0.24 Ai_1 = \frac{12 - 7.2}{10} = 0.48\ \text{A}, \qquad i_2 = \frac{7.2}{30} = 0.24\ \text{A}, \qquad i_3 = \frac{7.2 - 6}{5} = 0.24\ \text{A}

Powers absorbed (p=vip = vi with ii into ++):

Element vv (V) ii into ++ (A) pp absorbed (W)
R1R_1 4.84.8 0.480.48 2.3042.304
R2R_2 7.27.2 0.240.24 1.7281.728
R3R_3 1.21.2 0.240.24 0.2880.288
V2V_2 66 0.240.24 1.4401.440
V1V_1 1212 −0.48-0.48 −5.760-5.760

i3i_3 flows into the ++ terminal of V2V_2, so V2V_2 absorbs 1.44 W1.44\ \text{W}: it is being pushed backwards, as a battery on charge would be. V1V_1's current of 0.48 A0.48\ \text{A} leaves its ++ terminal, so its absorbed power is negative: it delivers 5.76 W5.76\ \text{W}.

Check: the absorbed powers add to zero, 2.304+1.728+0.288+1.440−5.760=02.304 + 1.728 + 0.288 + 1.440 - 5.760 = 0. This is Tellegen's theorem: in any circuit that obeys KCL and KVL, ∑kvkik=0\sum_k v_k i_k = 0 over all branches with passive references. It is the fastest check of any hand solution.

Topology and power balance in Python

The incidence matrix AA has one row per node and one column per branch: +1+1 where the branch reference current leaves the node, −1-1 where it enters. Its rank is n−1n - 1, which is where the count of independent KCL equations comes from (column, row and null space).

python · try it yourself
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 V1V_1 the code puts the current arrow from node 0 to node 1 through the source, so the voltage in the same direction is v0−v1=−12 Vv_0 - v_1 = -12\ \text{V}: the same −5.76 W-5.76\ \text{W} 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 +0.24 A+0.24\ \text{A} (absorbing) and V1 1 0 DC 12 shows −0.48 A-0.48\ \text{A} (delivering). Raise V2V_2 and vxv_x rises with it (vx=(36+6V2)/10v_x = (36 + 6V_2)/10 from KCL); above V2=9 VV_2 = 9\ \text{V} the current in V2V_2 changes sign and it starts delivering.

node voltages (to ground 0)112.00 Vx7.200 V36.000 VnetlistV1 1 0 DC 12R1 1 x 10R2 x 0 30R3 x 3 5V2 3 0 DC 6element currents (node 1 to node 2 through it)V11>0-480 mAR11>x480 mAR2x>0240 mAR3x>3240 mAV23>0240 mA

Guided lab: check Tellegen's theorem on the bench

Hand calculation. Scale the resistors by 100 to keep the currents small, using E24 values: R1=1.0 kΩR_1 = 1.0\ \text{k}\Omega, R2=3.0 kΩR_2 = 3.0\ \text{k}\Omega, R3=510 ΩR_3 = 510\ \Omega. The same KCL at x gives vx=7.21 Vv_x = 7.21\ \text{V} and i1=4.79 mAi_1 = 4.79\ \text{mA}, i2=2.40 mAi_2 = 2.40\ \text{mA}, i3=2.38 mAi_3 = 2.38\ \text{mA}; 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 12.0 V12.0\ \text{V} and 6.0 V6.0\ \text{V} with current limits of 20 mA20\ \text{mA} 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 2.4 mA2.4\ \text{mA} that V2V_2 must take, and their output rises instead. Put a 2.2 kΩ2.2\ \text{k}\Omega resistor across the 6 V6\ \text{V} terminals: it draws 2.73 mA2.73\ \text{mA}, more than the 2.38 mA2.38\ \text{mA} pushed in, so the supply still delivers a net 0.35 mA0.35\ \text{mA}. 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 23 mW23\ \text{mW}. Never connect a battery in the V2V_2 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 1 GHz1\ \text{GHz} is a full wavelength long; Kirchhoff's laws no longer describe it.

Practice

  1. A circuit has 6 nodes and 9 branches. How many independent KCL and KVL equations does it have?
  2. A voltage source of 9 V9\ \text{V} has 0.1 A0.1\ \text{A} flowing into its −- terminal (through the source from −- to ++). Does it deliver or absorb power, and how much?
  3. What is the largest size a lumped circuit should have at 50 MHz50\ \text{MHz}, using the λ/10\lambda/10 rule and v=2×108 m/sv = 2 \times 10^8\ \text{m/s} on a cable?
Answer
  1. n−1=5n - 1 = 5 KCL equations and ℓ=9−6+1=4\ell = 9 - 6 + 1 = 4 KVL equations.
  2. Current into −- means −0.1 A-0.1\ \text{A} into ++: p=9⋅(−0.1)=−0.9 Wp = 9 \cdot (-0.1) = -0.9\ \text{W} absorbed, so it delivers 0.9 W0.9\ \text{W}.
  3. λ=2×108/50×106=4 m\lambda = 2 \times 10^8 / 50 \times 10^6 = 4\ \text{m}, so about 0.4 m0.4\ \text{m}.

Test yourself

With the passive sign convention, an element has v=5 Vv = 5\ \text{V} and i=−2 Ai = -2\ \text{A}. It…

  1. absorbs 10 W
  2. delivers 10 W
  3. absorbs -2.5 W
  4. neither absorbs nor delivers

A connected circuit has n=5n = 5 nodes and b=8b = 8 branches. How many mesh (independent loop) equations does mesh analysis need?

  1. 3
  2. 4
  3. 5
  4. 8

Tellegen's theorem says that, with passive reference directions everywhere, …

  1. every source delivers power
  2. the sum of vkikv_k i_k over all branches is zero
  3. the incidence matrix is square
  4. every resistor carries the same current

Your computed current through a resistor is −3 mA-3\ \text{mA}. What should you do?

  1. redraw the arrow and redo the analysis
  2. nothing: 3 mA flows against the reference arrow
  3. take the absolute value and continue
  4. it is an error, currents in resistors are positive