A Thévenin Model Can Match the Load and Miss the Internal Heating

Download and extract the reader ZIP archive (a compressed collection of files). Links labelled “reader ZIP; extract …” download this archive; after extraction, open the named file. It includes the offline article, full-size Portable Network Graphics (PNG) images, editable Scalable Vector Graphics (SVG) diagrams, complete source code, tests and worksheets.

Circuit models · complete offline experiment

Two circuits can give an external resistor the same voltage, current and power while dissipating different power inside their own boxes. Calculate both circuits and find exactly which agreement the simplified model promises.

Verification scope: This is a numerical experiment with ideal direct-current (DC) circuits, whose values are constant in time. All data and plots are calculated. No circuit was assembled, load shorted, resistor temperature measured or target firmware built or run. The complete application and its host tests execute on a normal computer.

Define the port and the model’s job

A port is the pair of terminals where an external circuit connects. Here they are A and B. The load is the external part connected between them; in this experiment it is a resistor called RL. Port voltage means A’s voltage relative to B. Positive load current IL leaves A, passes through RL and returns at B.

A Thévenin model replaces a linear circuit, as viewed from its port, with an ideal voltage source in series with one resistance. An ideal voltage source maintains its stated voltage in the mathematical model. Series means the source and model resistor carry the same load current. Our original circuit uses constant resistors; scaling the source voltage scales its currents and voltages proportionally. That is the relevant linear behavior here.

The useful promise is a matching relationship between port voltage and current. It does not specify every internal quantity. The Massachusetts Institute of Technology (MIT) Fall 2023 circuit recitation on Thévenin and Norton models, particularly page 3, explicitly separates terminal behavior from power dissipated inside the modeled box. We will test that boundary using a simple divider.

Set up two alternative ideal circuits

Use a computer with Python 3.9 or later and a text editor. The delivered host checks ran on Python 3.9.6 using only its standard library, the modules supplied with Python. No physical components or electrical supply are required. The nominal source is 5 volts (V), R1 is 1 kilohm (kΩ, 1000 ohms) and R2 is 2 kΩ. Resistance in ohms (Ω) relates the voltage across a resistor to its current through Ohm’s law, V = IR.

In the original circuit, source positive connects through R1 to A; R2 connects from A to B; source negative connects to B. The external load also connects from A to B, so it shares those two endpoints with R2. The dashed box encloses the original source, R1 and R2, leaving RL outside. The alternative model has its own source and series resistor inside its box. Compare these as separate circuits; joining their outputs would create a different circuit.

Two alternative ideal circuits share an A–B load definition. The original 5 V source feeds R1 of 1 kΩ, with R2 of 2 kΩ from A to B. The model uses a 10/3 V source and a series 2000/3 Ω resistor. A lower analysis inset shows R1 and R2 in parallel after setting the ideal source to zero. — reader ZIP; extract assets/divider-and-port-model.png
Figure 1. Original functional schematics with source polarities, current direction and model boundaries. The lower inset is a mathematical resistance calculation; no physical supply is shorted. Editable Scalable Vector Graphics (SVG) original — reader ZIP; extract assets/divider-and-port-model.svg · Full-size Portable Network Graphics (PNG) image — reader ZIP; extract assets/divider-and-port-model.png.

Derive the two model parameters

An open circuit at the port means no external load current flows. R1 and R2 still form a path through the original source. The open-port voltage is the divider result:

Vth = Vs × R2/(R1 + R2) = 5 × 2000/3000 = 10/3 V ≈ 3.333333 V.

The subscript “th” labels a Thévenin-model quantity. To find Rth for this network, deactivate its independent ideal voltage source: set the source value to 0 V in the analysis. Its two terminals are then at the same potential and are represented by a wire. This is a modeling operation, not an instruction to short a real supply. R1 and R2 now both connect between A and B, so their parallel combination is:

Rth = R1 ∥ R2 = R1R2/(R1 + R2) = 2000/3 Ω ≈ 666.666667 Ω.

The symbol ∥ means parallel, sharing both endpoints. Keep the exact fractions for the experiment. A convenient physical resistance such as 680 Ω is an approximation, which we will deliberately try later. Its familiar value does not make it exactly equal to 2000/3 Ω.

With IL defined as leaving A, the model’s port relationship is Vport = Vth − ILRth. For a positive finite RL, its current is IL = Vth/(Rth + RL), and Vport = ILRL. The supplied application calculates the original circuit separately from its return conductance, the reciprocal-resistance terms of R2 and RL. It does not obtain the original result by copying the equivalent model’s answer.

Check a 1 kΩ load before running code

Attach a 1 kΩ load in the numerical model. In the original circuit, R2 and RL combine to 2000/3 Ω. Together with R1, the source sees 5000/3 Ω. Source current is therefore 5/(5000/3) = 3 milliamperes (mA, thousandths of an ampere). The drop across R1 is 3 V, leaving 2 V at A. R2 takes 1 mA and RL takes 2 mA.

Kirchhoff’s current rule says that currents entering a connection equal those leaving it, so the source’s 3 mA splits into 1 mA and 2 mA. The OpenStax University Physics discussion of Kirchhoff’s rules explains this charge balance and the matching voltage balance around closed paths.

For the equivalent model, IL = (10/3)/(2000/3 + 1000) = 2 mA, again giving 2 V at the load. Its source carries that 2 mA. It has no second internal resistor branch corresponding to the original R2 current. The matching load current does not make the two source currents identical.

Power is energy transferred per unit time. One watt (W) is one joule of energy per second; a milliwatt (mW) is one thousandth of a watt. For a constant resistor, electrical power converted to heat, called its dissipation, is P = VI = I²R = V²/R. OpenStax §9.5, Electrical Energy and Power derives these relationships.

Both loads receive 2 V × 2 mA = 4 mW. Inside the original box, R1 dissipates (3 mA)² × 1 kΩ = 9 mW and R2 dissipates (2 V)² / 2 kΩ = 2 mW. Its source delivers 5 V × 3 mA = 15 mW. Inside the model box, Rth dissipates (2 mA)² × (2000/3 Ω) = 8/3 mW ≈ 2.666667 mW. Its source delivers (10/3 V) × 2 mA = 20/3 mW ≈ 6.666667 mW.

Each circuit balances its own power: 15 = 9 + 2 + 4 mW for the original, and 20/3 = 8/3 + 4 mW for the model. Mixing the original source’s power with the model resistor’s dissipation would combine quantities from different circuits.

Include open and short boundary cases

With the external port open, the original divider still draws 5 V / 3 kΩ = 5/3 mA. Its two internal resistors dissipate a total of 25/3 mW ≈ 8.333333 mW, even though external load power is zero. The equivalent model’s open loop carries zero current, so its series resistor dissipates zero power. Both ports nevertheless show 10/3 V.

A short circuit in this calculation is the ideal RL = 0 boundary. Port voltage is zero while the positive internal resistance limits load current to 5 mA. Original R1 dissipates 25 mW; R2 has zero voltage and dissipates zero. Model Rth dissipates 50/3 mW ≈ 16.666667 mW. The ideal short receives zero power because its voltage is zero. These are numerical boundaries of the two resistor models, not a procedure for shorting a bench supply or a battery.

Load Port voltage, both Load current, both Load power, both
Open 3.333333 V 0 mA 0 mW
10 kΩ 3.125000 V 0.312500 mA 0.976563 mW
2 kΩ 2.500000 V 1.250000 mA 3.125000 mW
1 kΩ 2.000000 V 2.000000 mA 4.000000 mW
Ideal short 0 V 5.000000 mA 0 mW
Load Original R1 Original R2 Model Rth Original source Model source
Open 2.777778 mW 5.555556 mW 0 mW 8.333333 mW 0 mW
2 kΩ 6.250000 mW 3.125000 mW 1.041667 mW 12.500000 mW 4.166667 mW
1 kΩ 9.000000 mW 2.000000 mW 2.666667 mW 15.000000 mW 6.666667 mW
Ideal short 25.000000 mW 0 mW 16.666667 mW 25.000000 mW 16.666667 mW
Calculated original and model terminal points lie on the same decreasing voltage-current line. Separate bars show the original R1 and R2 dissipations and the model Rth dissipation for open, 2 kΩ, 1 kΩ and ideal-short loads; the internal totals differ by 8.333 mW.
Figure 2. Original calculated ideal-model comparison. Left: matching port values. Right: original internal resistor powers versus model-series power, excluding external load power. Source powers are listed separately in the table. Editable SVG — reader ZIP; extract assets/port-match-and-internal-power.svg · Full-size PNG.

For this particular divider, original internal dissipation minus model-series dissipation is Vs²/(R1 + R2) = 25/3000 W = 8.333333 mW at every resistive load. Expanding the two internal-power expressions cancels their load-dependent terms. This constant is the original open-port standing dissipation. It is a property of this setup, not a universal correction to apply to every equivalent circuit.

Run the complete computer experiment

Extract the reader contents and reproduction instructions — reader ZIP; extract README.txt. Open a terminal, a program for running typed commands, in the extracted directory. The application writes named results as JavaScript Object Notation (JSON), a text format with fields and lists. An optional comma-separated values (CSV) export provides a plain-text table. All outputs are calculated data.

python3 -m unittest discover -s code -p 'test_*.py'
python3 code/port_equivalence.py
python3 code/port_equivalence.py --loads open,2000,1000,0 --csv-out new-comparison.csv
python3 code/port_equivalence.py --loads 1000 --model-r-ohm 680
python3 code/port_equivalence.py --source-v 2.5 --loads open,1000,0

The open token means no external load; numeric 0 means the ideal short boundary. Positive finite numbers are resistances in ohms. In JSON, an open load is also represented by null, a value meaning that no finite load resistance was supplied. The default sweep uses open, 10 kΩ, 2 kΩ, 1 kΩ and short. The provided JSON cases — reader ZIP; extract data/calculated-load-cases.json, CSV cases — reader ZIP; extract data/calculated-load-cases.csv and dense port sweep — reader ZIP; extract data/calculated-port-sweep.csv are reproducible calculations from this application.

  1. Check the 1 kΩ row against the hand calculation. Then verify each circuit’s source power equals its own internal resistor power plus its own load power. Do not substitute the load current for the original source current.
  2. Compare the open and short rows. Keep matching external voltage/current separate from each circuit’s source and resistor powers. Fill the blank model-review sheet — reader ZIP; extract data/model-review-blank.csv with your calculations; it is not a measurement log.
  3. Try the 680 Ω model override at a 1 kΩ load. Vth remains 10/3 V, but model voltage becomes (10/3) × 1000/(680 + 1000) = 125/63 V ≈ 1.984127 V. This is about 0.794% below the original 2 V. The override deliberately leaves the exact Thévenin resistance, so the port match is no longer assured.
  4. Halve the source voltage. With unchanged resistors and load, current and voltage halve, while each nonzero power falls to one quarter. Double all three resistances together instead: load voltage stays fixed, while currents and powers halve. Predict these changes before running them.
  5. Try a negative or nonfinite resistance and a nonzero literal such as 1e-999. They must be refused rather than silently changing into the special zero-ohm case. Existing CSV output files are also refused; use a new filename.

Full supplied application

The editable executable is code/port_equivalence.py — reader ZIP; extract code/port_equivalence.py and the tests are code/test_port_equivalence.py — reader ZIP; extract code/test_port_equivalence.py. The original solver uses a sum of reciprocal resistances and current balance. The model solver uses its separate source/series-resistor loop. Each reports load, source and internal powers under distinct names.

The program accepts a finite nonnegative source voltage, positive finite divider resistances and an open, zero or positive finite load. An optional model resistance must be positive. It rejects detected arithmetic overflow, a value too large to represent, and underflow, a nonzero intermediate value lost to zero. Decimal input spelling is checked when conversion to a binary floating-point number produces zero, preserving genuine 0 and -0 while refusing a nonzero decimal lost to zero. Floating-point arithmetic remains rounded; the program makes no arbitrary-precision promise.

#!/usr/bin/env python3
"""Compare a resistive divider with its two-terminal Thevenin model.

Python3.9+, standard library only. Ideal DC calculations, no hardware control.
Open and zero-ohm loads are mathematical boundaries, never bench instructions.
"""
import argparse
import csv
from decimal import Decimal, InvalidOperation
import json
import math
from pathlib import Path


def number(value, name, zero=False):
    if isinstance(value,bool) or not isinstance(value,(int,float)):
        raise ValueError(name+' must be a number')
    try:
        value=float(value)
    except OverflowError:
        raise ValueError(name+' is outside floating-point range') from None
    if not math.isfinite(value) or value<0 or (value==0 and not zero):
        raise ValueError(name+' must be finite and '+('nonnegative' if zero else 'positive'))
    return value


def checked(value, name, nonzero=False):
    if not math.isfinite(value) or (nonzero and value==0):
        raise ValueError(name+' is outside floating-point range')
    return value


def add(a,b):
    return checked(a+b,'Sum')


def multiply(a,b):
    return checked(a*b,'Product',a!=0 and b!=0)


def divide(a,b):
    return checked(a/b,'Quotient',a!=0)


def derive(vs, r_top, r_bottom):
    """Open voltage and source-deactivated parallel resistance."""
    vs=number(vs,'source voltage',True)
    r_top=number(r_top,'top resistance');r_bottom=number(r_bottom,'bottom resistance')
    vth=multiply(vs,divide(r_bottom,add(r_top,r_bottom)))
    rth=divide(1.0,add(divide(1.0,r_top),divide(1.0,r_bottom)))
    return vth,rth


def original(vs,r_top,r_bottom,load):
    """Solve the original network through its return conductance.

    For finite/open load: V = Vs / (1 + Rtop*(1/Rbottom + 1/Rload)).
    The open case omits load conductance. The ideal short is handled explicitly.
    """
    if load==0:
        port=0.0;source_i=divide(vs,r_top);bottom_i=0.0;load_i=source_i
        top_drop=vs
    else:
        return_g=divide(1.0,r_bottom)
        if load is not None:
            return_g=add(return_g,divide(1.0,load))
        port=divide(vs,add(1.0,multiply(r_top,return_g)))
        source_i=multiply(port,return_g)
        bottom_i=divide(port,r_bottom)
        load_i=0.0 if load is None else divide(port,load)
        top_drop=multiply(source_i,r_top)
    top_p=multiply(source_i,top_drop);bottom_p=multiply(bottom_i,port)
    load_p=multiply(load_i,port);source_p=multiply(vs,source_i)
    return {'port_v':port,'load_a':load_i,'source_a':source_i,'bottom_a':bottom_i,
            'top_w':top_p,'bottom_w':bottom_p,'load_w':load_p,'source_w':source_p,
            'internal_w':add(top_p,bottom_p)}


def model(vth,series_r,load):
    """Independently solve the alternative ideal source/series-resistor path."""
    if load is None:
        current=0.0;port=vth;drop=0.0
    elif load==0:
        current=divide(vth,series_r);port=0.0;drop=vth
    else:
        current=divide(vth,add(series_r,load));port=multiply(current,load)
        drop=multiply(current,series_r)
    return {'port_v':port,'load_a':current,'source_a':current,
            'series_w':multiply(current,drop),'load_w':multiply(port,current),
            'source_w':multiply(vth,current)}


def compare(vs=5.0,r_top=1000.0,r_bottom=2000.0,load=None,model_r_ohm=None):
    vs=number(vs,'source voltage',True)
    r_top=number(r_top,'top resistance');r_bottom=number(r_bottom,'bottom resistance')
    if load is not None:
        load=number(load,'load resistance',True)
    vth,rth=derive(vs,r_top,r_bottom)
    series_r=rth if model_r_ohm is None else number(model_r_ohm,'model resistance')
    a=original(vs,r_top,r_bottom,load);b=model(vth,series_r,load)
    return {'load_ohm':load,'load_label':'open' if load is None else ('short' if load==0 else str(load)),
            'vth_v':vth,'derived_rth_ohm':rth,'used_model_r_ohm':series_r,
            'model_resistance_is_derived':model_r_ohm is None,
            'original':a,'model':b,
            'differences':{'port_v':a['port_v']-b['port_v'],'load_a':a['load_a']-b['load_a'],
                           'load_w':a['load_w']-b['load_w'],'internal_w':a['internal_w']-b['series_w'],
                           'source_w':a['source_w']-b['source_w']}}


def parse_literal(text):
    """Keep nonzero command-line decimals from silently becoming boundary zero."""
    try:
        value=float(text)
        if value==0 and Decimal(str(text))!=0:
            raise ValueError('Nonzero numeric literal is outside floating-point range')
    except (InvalidOperation,OverflowError):
        raise ValueError('Numeric literal is outside floating-point range') from None
    return value


def parse_loads(text):
    values=[]
    for token in text.split(','):
        if token.strip().lower()=='open':
            values.append(None)
        else:
            try:
                value=parse_literal(token)
            except ValueError as exc:
                if 'range' in str(exc):
                    raise
                raise ValueError('Each load must be open,0,or a positive resistance in ohms') from None
            values.append(number(value,'load resistance',True))
    return values


def main():
    parser=argparse.ArgumentParser(description=__doc__)
    parser.add_argument('--source-v',default='5')
    parser.add_argument('--r-top-ohm',default='1000')
    parser.add_argument('--r-bottom-ohm',default='2000')
    parser.add_argument('--loads',default='open,10000,2000,1000,0',help='comma-separated open,0,and finite resistances')
    parser.add_argument('--model-r-ohm',help='deliberate resistance override; no longer promises equivalent port behavior')
    parser.add_argument('--csv-out',type=Path,help='write a NEW calculated table; existing files refused')
    args=parser.parse_args()
    try:
        loads=parse_loads(args.loads)
        source=parse_literal(args.source_v);top=parse_literal(args.r_top_ohm);bottom=parse_literal(args.r_bottom_ohm)
        override=None if args.model_r_ohm is None else parse_literal(args.model_r_ohm)
        records=[compare(source,top,bottom,load,override) for load in loads]
        report={'scope':'Calculated ideal DC models only; no physical measurements or thermal model.',
                'source_v':source,'r_top_ohm':top,'r_bottom_ohm':bottom,
                'loads':records}
        if args.csv_out:
            rows=[]
            for r in records:
                a,b=r['original'],r['model']
                rows.append({'load':r['load_label'],'original_port_v':a['port_v'],'model_port_v':b['port_v'],
                             'original_load_a':a['load_a'],'model_load_a':b['load_a'],
                             'original_load_w':a['load_w'],'model_load_w':b['load_w'],
                             'original_r1_w':a['top_w'],'original_r2_w':a['bottom_w'],
                             'model_series_w':b['series_w'],'original_source_w':a['source_w'],
                             'model_source_w':b['source_w']})
            with args.csv_out.open('x',newline='')as stream:
                writer=csv.DictWriter(stream,fieldnames=list(rows[0]),lineterminator='\n')
                writer.writeheader();writer.writerows(rows)
        print(json.dumps(report,indent=2,allow_nan=False))
    except (ValueError,OSError,csv.Error,ZeroDivisionError,OverflowError)as exc:
        parser.exit(2,'Calculation refused: '+str(exc)+'\n')
    return 0


if __name__=='__main__':
    raise SystemExit(main())

The 24 host tests exercise independent analytic cases, a rational-number nodal reference, complete port matching, current and per-circuit power balances, open/short behavior, constant dissipation difference for this divider, source/resistance scaling, the deliberate 680 Ω mismatch, numeric failures and actual command-line CSV/refusal paths. Those checks verify this code’s behavior. They do not measure a resistor, a physical source, its current limit or a temperature rise.

Challenge and answer

Challenge: At a 2 kΩ load, both circuits give 2.5 V and 1.25 mA. A learner assigns the model resistor’s 1.041667 mW dissipation to the original R1 and calls that R1’s heating estimate. Find the original R1 and R2 dissipations and both source powers. What agreement remains useful?

Answer

Original source current is (5 − 2.5) V / 1 kΩ = 2.5 mA, so R1 dissipates 6.25 mW. R2 dissipates (2.5 V)² / 2 kΩ = 3.125 mW, and load power is also 3.125 mW. Original source power is 12.5 mW. Model Rth dissipates (1.25 mA)² × (2000/3 Ω) = 1.041667 mW, and model source power is 4.166667 mW. The same external load receives the same voltage, current and 3.125 mW in both models. The original component powers require the original network.

Keep the scope of the replacement visible

This result concerns steady ideal sources and fixed resistors. It excludes source current limiting, resistor tolerance and resistance changes with temperature. A computed dissipation is an energy-conversion rate, not a measured temperature; temperature rise would require additional component and cooling information. The simplified resistor is a port parameter, not a label for a hidden physical resistor inside the original network.

MIT’s recitation supports the port-only equivalence and source-deactivation method. OpenStax supports the current, voltage and power balances. The circuits, nominal values, detailed calculations, code and figures here are original teaching work. Official primary documents were checked and retained separately as research evidence; they are linked rather than redistributed in the public reader.

Continue through Tricky Circuit Learn and Circuitpedia for supporting terminology. Proposed English dictionary terms remain candidates for coordinated multilingual work, not claims of live dictionary changes. Local authoring, independent technical review, browser delivery and any later publication are separate gates.

📡Broadcast the signal — amplify the connection.

Leave a Reply