Multi-segment T-line, termination rendering, tests
Physics:
- Refactor physics.js to BFS lattice-diagram solver supporting N equal-length
segments with different Z0 values; each internal boundary generates reflected
and transmitted waves
- Add exponential rise time (RC): model.riseTimeTau > 0 gives
V = V_final·(1−exp(−Δt/τ_r)) wave shape
- Guard gL against RL=Infinity so open circuit (gL=1) works correctly
UI:
- Segment count input + per-segment Z0 inputs (up to 10 segments)
- ∞ toggle button on RL field for open circuit; disables number input
and sets RL=Infinity in the model
- Remove scrub feature
Circuit diagram:
- Draw open-circuit terminals (two filled dots) when RL=Infinity
- Draw short-circuit wire when RL=0
- Add missing top terminal dot at VL port; consistent rail length
across all three termination types
Tests & docs:
- physics.test.js: smoke tests for pure physics functions
(22 cases, node --test, zero dependencies)
- README.md: usage and how to run tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>