/** * PASSIVES device cohort (Wave A4 phase 1): resistor, resistor_array, * potentiometer, trimmer, capacitor, inductor, ferrite_bead, ldr, * thermistor, switch, push_button, spdt_switch, push_dpdt, dip_switch, * fuse, ptc_fuse. * * Every handler body below is the engine's old switch-case / if-block body * MOVED VERBATIM, with identifier access adapted through DeviceContext * (this._pinNode -> ctx.pinNode, this.state.caps -> ctx.state.caps, * out[comp.id] = v -> ctx.setElementCurrent(comp.id, v), and so on). Do not * simplify, reorder mna.add calls, or rewrite algebra here: float * accumulation order in the matrix is semantics, and the bitwise oracle * suite pins these exact trajectories. * * Kinds grouped into one model correspond exactly to switch cases that * shared a body in the engine (potentiometer/trimmer everywhere; * switch/push_button, whose separate stamp cases were textually identical * code and whose current case was already shared). * * Import layering (registry header, decision 7): pure helper FUNCTIONS and * exported consts from sim-engine.ts are safe to import despite the module * cycle because handlers dereference them only at solve time. Never read * sim-engine bindings at module evaluation time from this file. */ import type { DeviceModel } from "../device-registry.js"; /** * Smallest share of a pot's power rating any one track segment gets. The * proportional share models a segment that sheds heat only along its own * length; a short segment also spreads heat into the substrate and the track * beside it, so its safe dissipation stops shrinking with length. Without a * floor the rule is a fixed wiper-current limit of sqrt(p_max / rTotal), * 4.5 mA for a 10 kΩ 0.2 W pot, and a 5 V pot feeding an LED through 220 Ω * failed in the last few percent of travel and at the stop, where the * segment's share was zero. That circuit peaks at 13 mW in one segment; a * rheostat pushing hundreds of milliwatts through a short segment, or a wiper * shorted across the supply at a stop, still fails. */ export declare const POT_SEGMENT_MIN_RATING_SHARE = 0.25; export declare const resistorModel: DeviceModel; export declare const capacitorModel: DeviceModel; export declare const inductorModel: DeviceModel; export declare const switchModel: DeviceModel; export declare const spdtSwitchModel: DeviceModel; export declare const pushDpdtModel: DeviceModel; export declare const dipSwitchModel: DeviceModel; export declare const potentiometerModel: DeviceModel; export declare const fuseModel: DeviceModel; export declare const ptcFuseModel: DeviceModel; export declare const ferriteBeadModel: DeviceModel; export declare const resistorArrayModel: DeviceModel; export declare const ldrModel: DeviceModel; export declare const thermistorModel: DeviceModel;