Skip to content
Electrical Engineering

Nodal analysis and mesh analysis

The node voltage method with an example, the matrix form, mesh analysis, dependent sources and checking the power balance.

Kirchhoff’s laws applied to every branch give a system of 2b equations: too many to write by hand even for a modest circuit. Systematic methods cut the unknowns drastically by choosing the right quantities: the node voltages (nodal analysis) or the mesh currents (mesh analysis). Nodal analysis in particular is the method used by SPICE and every circuit simulator.

Nodal analysis

  1. Choose a reference node (ground), at zero potential.
  2. The unknowns are the node voltages v_1, v_2, \dots of the other nodes relative to the reference: there are n - 1 of them.
  3. Write the current law at every node other than the reference, expressing each current through the node voltages: the current in a resistor between nodes a and b is (v_a - v_b)/R.
  4. Solve the linear system.
A circuit with two unknown nodes, a voltage source, a current source and four resistors
The circuit has three nodes: the reference (ground) and the nodes with voltages v₁ and v₂. Source E sets the input voltage, J injects current into node 2.

Example. In the circuit of the figure source E is connected between ground and the left end of R_1. Current law at node 1 (outgoing currents positive):

    \[ \frac{v_1 - E}{R_1} + \frac{v_1}{R_2} + \frac{v_1 - v_2}{R_3} = 0 \]

and at node 2, where the current J enters:

    \[ \frac{v_2 - v_1}{R_3} + \frac{v_2}{R_4} = J \]

With E = 10 V, J = 1 mA and all resistors 1 kΩ (currents in mA and voltages in V):

    \[ 3v_1 - v_2 = 10,\qquad -v_1 + 2v_2 = 1 \]

giving v_1 = 4.2 V and v_2 = 2.6 V. Two equations instead of the twelve of the general method (6 branches).

Matrix form

With only resistors and current sources the system has a structure that can be written “by inspection”:

    \[ G\,\mathbf v = \mathbf j \]

  • on the diagonal, G_{kk} is the sum of the conductances connected to node k;
  • off the diagonal, G_{kh} is minus the conductance between nodes k and h;
  • j_k is the sum of the source currents entering node k.

The matrix G is symmetric, diagonally dominant and sparse (each node connects to few others): the properties that make it fast to solve with the methods of the Numerical Analysis lesson on linear systems. Voltage sources are handled by turning them into current sources (if they have a series resistance) or by adding their current as an unknown: this is modified nodal analysis (MNA), used by SPICE.

Mesh analysis

It is the dual method, handy for planar circuits with many voltage sources.

  1. Assign to each “window” mesh (meshes that contain no others) a fictitious mesh current flowing round it.
  2. The current in a branch is the algebraic sum of the currents of the meshes it belongs to.
  3. Write the voltage law in each mesh.

There are b - n + 1 unknowns. Here too the matrix can be written by inspection: on the diagonal the sum of the mesh’s resistances, off the diagonal minus the shared resistances.

Which to choose. Count: nodal analysis has n - 1 unknowns, mesh analysis b - n + 1. Choose the one with fewer, bearing in mind that current sources simplify nodal analysis and voltage sources mesh analysis.

Dependent sources

Many models of electronic components (transistors, operational amplifiers) contain controlled sources: their voltage or current depends on another quantity in the circuit. For example the small-signal model of a bipolar transistor contains a current source g_m v_{be}, proportional to the base-emitter voltage. In nodal analysis they are treated like ordinary sources, then the controlling quantity is expressed through the node voltages: the matrix loses its symmetry, but the method stays the same.

An always useful check

After solving, it is worth checking the power balance: the total power delivered by the sources must equal the total power dissipated in the resistors. In the example: R_1 carries (10 - 4.2)/1 = 5.8 mA, so E delivers 10\cdot 5.8 = 58 mW; J delivers v_2 J = 2.6 mW. The dissipated powers: 5.8^2 + 4.2^2 + 1.6^2 + 2.6^2 = 33.64 + 17.64 + 2.56 + 6.76 = 60.6 mW, equal to the 60.6 mW delivered. It adds up.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x