Ohm's & Kirchhoff's Laws
The governing equations of all resistive circuits: linear relationships, conservation of charge and energy.
Ohm's Law
Ohm's Law states that the voltage across a resistor is proportional to the current flowing through it. For a resistor with resistance \( R \) (in ohms, Ω):
\( V \) in volts, \( I \) in amperes, \( R \) in ohms (Ω)
The electrical power dissipated as heat in a resistor is:
Series and Parallel Resistors
Resistors in series (same current through each) combine as:
Resistors in parallel (same voltage across each) combine as:
For the special case of two resistors in parallel: \( R_{\text{parallel}} = \dfrac{R_1 R_2}{R_1 + R_2} \).
Voltage Divider
Two series resistors \( R_1 \) and \( R_2 \) driven by \( V_s \) produce an output at the midpoint:
Kirchhoff's Laws
Kirchhoff's laws are direct consequences of conservation of energy (KVL) and conservation of charge (KCL). Together they provide a complete framework for writing circuit equations.
Kirchhoff's Voltage Law (KVL)
The algebraic sum of all voltages around any closed loop is zero:
Equivalently: the sum of voltage rises equals the sum of voltage drops in any closed loop.
Kirchhoff's Current Law (KCL)
The algebraic sum of all currents entering any node is zero:
Equivalently: the total current entering a node equals the total current leaving it.
Node-Voltage Method
The node-voltage method is the most systematic approach to circuit analysis. Steps:
- Choose one node as the reference (ground), assign \( V_0 = 0 \).
- Assign unknown voltages \( V_1, V_2, \ldots, V_n \) to remaining nodes.
- Apply KCL at each unknown node: sum of currents leaving = 0.
- Express each branch current using Ohm's Law: \( I = (V_i - V_j)/R \).
- Solve the resulting linear system \( \mathbf{Y}\mathbf{V} = \mathbf{I}_s \).
Mesh Analysis
Mesh analysis assigns a mesh current \( I_m \) to each independent loop and writes KVL for each mesh. For a mesh with resistors \( R_{11} \) (self) and shared \( R_{12} \) (mutual):
The result is the mesh resistance matrix equation \( \mathbf{R}\mathbf{I} = \mathbf{V}_s \), dual to the node admittance system.
Python: Resistor Network Analysis
Solve a multi-node resistive network using the node-voltage method (NumPy linear algebra), plot V-I curves for several resistor values, and visualise the voltage divider output as a function of \( R_{\text{top}} \).
Node-Voltage Method, V-I Curves & Voltage Divider
PythonClick Run to execute the Python code
Code will be executed with Python 3 on the server