A Thévenin model can match the load and miss the internal heating
Reader contents and reproduction instructions

This is a numerical experiment with ideal direct-current (DC) circuits. All tables/plots are calculated. No circuit was assembled, physical load shorted, resistor temperature measured or target firmware built/run. Open and zero-ohm loads are mathematical boundaries; do not treat the source-deactivation diagram as an instruction to short a real supply.

Open preview.html for the styled standalone lesson and local category-menu example. Hypertext Markup Language (HTML) is the page format; article.css supplies the appearance. article.html contains the body alone, including the full executable program. Every teaching file is available locally after extraction. External links lead to official references or existing Tricky Circuit pages.

Requirements: Python 3.9 or later, standard library only. Actual author host tests used Python 3.9.6. No additional Python package, microcontroller or network access is needed to run the calculations.

From this extracted directory:
  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 command-line loads are in ohms. open is no external load; numeric 0 is the ideal short boundary; positive finite numbers are resistor loads. The source defaults to 5 V, R1 to 1000 Ω and R2 to 2000 Ω. You may set --source-v, --r-top-ohm and --r-bottom-ohm. --model-r-ohm deliberately replaces only the model-series resistance while retaining its derived open voltage, so equivalence is no longer assured. A CSV output file must not already exist.

Named results use JavaScript Object Notation (JSON). Comma-separated values (CSV) output is a plain-text table. An open load has load_ohm:null in JSON. Original R1/R2, model-series, external-load and source powers are separately named. For the model, source_a is load current. For the original, source_a includes the current in R2 as well. Each circuit must balance its OWN source, resistor and load powers. A matching terminal relation supplies no original internal heating or temperature estimate.

The intended model has a finite nonnegative source voltage, positive divider resistances and an open/zero/positive load. Nonfinite values, invalid resistances and detected intermediate numeric-range failures are refused. Nonzero decimal input spelling lost to zero is refused before it can become the special 0 Ω case; genuine 0/-0 remain valid. Rounded binary floating-point arithmetic is still used, with no arbitrary-precision promise.

data/calculated-load-cases.json and .csv are actual application outputs for the default five loads. data/calculated-rounded-model.json is the deliberate 680 Ω case. data/calculated-port-sweep.csv contains 103 calculated cases for the plotted port curve. data/model-review-blank.csv is a BLANK worksheet for your own calculations/assumptions; it is not a measurement log.

assets/ contains two original editable Scalable Vector Graphics (SVG) functional figures and their full-size Portable Network Graphics (PNG) renderings. research/build_figures.py regenerates the SVGs and dense calculated sweep using the actual application and Python's standard library. The supplied PNGs are ready to view. A compatible SVG renderer can export changed figures; different fonts/renderers can change pixels without changing the underlying circuit/graph geometry.

code/test_port_equivalence.py contains 24 actual behavior tests, including independent analytic/rational cases, per-circuit power and current balances, exact port matching, source/resistance scaling, open/short cases, deliberately approximate model resistance and real command-line output/refusal paths. evidence/host-tests.txt and host-verification.json record the host run. A semantic mutation that incorrectly uses external-load current for the original source power is rejected by the delivered suite; its clean summary is included. Raw failure tracebacks remain external project evidence.

source-index.json lists owned teaching files and primary links. The complete official MIT five-page recitation and OpenStax power/Kirchhoff pages were checked. Their raw PDF/web snapshots are retained outside this public reader for research evidence and are linked rather than redistributed. No owner workstation paths, credentials, native post IDs or affiliate links are included. External independent/root-layout acceptance and any later queue/native/publication action are separate project records; this reader does not claim author self-acceptance.
