Sub topic 3
Floating Voltage Sources and Supernodes
Assume you know Ohm’s law, Kirchhoff’s current law (KCL), node voltages, and basic linear systems. A floating voltage source connects two non-reference nodes. It does not provide a current directly, so ordinary resistor-current equations cannot describe either terminal separately.
Floating Voltage Sources and Supernodes
Enclose the source and its two connected nodes in a supernode. Write one KCL equation around the supernode, excluding the current through the voltage source. Add the voltage constraint separately.
For a source with positive terminal at \(V1\) and negative terminal at \(V2\):
\[ V1 - V2 = V_s \]
The supernode KCL equation includes every current crossing its outer boundary.
Dependent Sources in Nodal Analysis
A dependent source has a value controlled by another circuit voltage or current. Express its controlling quantity using node voltages. For example, a voltage-controlled current source may be:
\[ id = gm(V1-V2) \]
Place this expression directly in the appropriate KCL equation. Keep the source polarity and current direction consistent.
Checking Your Answer
For every node, substitute the solved voltages back into KCL. The algebraic sum of currents should be zero. Also check power:
\[ \sum p_k = 0 \]
A resistor absorbs \(p=V^2/R\). A source may deliver negative power under the passive sign convention.
Building the Conductance Matrix in Code
For a resistor \(R\) between nodes \(a\) and \(b\), stamp \(g=1/R\) onto both diagonal entries and \(-g\) onto the two off-diagonal entries. Ground has no matrix row.
import numpy as np
G = np.array([[1/4 + 1/2, -1/2],
[-1/2, 1/2 + 1/6]])
i = np.array([2.0, 0.0])
v = np.linalg.solve(G, i)
print(v) # [5.33333333 4. ]Singular Matrices and Floating Sub-Circuits
A singular matrix has no unique solution. This often means a group of nodes has no DC path to the reference node. Add a reference connection, or check for a missing component or equation.
Nodal Versus Mesh Analysis
Choose nodal analysis when a circuit has many current sources, few nodes, or parallel branches. Mesh analysis can be shorter when a planar circuit has few loops and many voltage sources. Supernodes make nodal analysis especially useful for floating voltage sources.
Exercise
What two equations describe a floating voltage source between V1 and V2?
Show answer
Use one KCL equation around the supernode and the constraint V1 - V2 = Vs, with the sign set by the source polarity.