/** * MODEL-FAMILIES device cohort (Wave A6): coupled_inductor, njfet, pjfet, * scr, triac, opto_npn, crystal, analog_switch. * * Unlike the A4 cohorts, nothing here is moved engine code — these are the * first families implemented registry-first, so this module doubles as the * reference for how a NEW device family lands: * * - Transient stamps compose the shared companion helpers in elements.ts * (BE and trap variants selected via ctx.useTrapThisSolve(), exactly the * capacitor/inductor gating) or follow the committed-regime pattern * (regimes decided POST-SOLVE from the accepted solution, never from a * Newton iterate — the relay/regulator rule). * - Element state lives in the existing engine maps (caps/capsI, inds/indsV, * icState) under this module's composite keys, so snapshots, adaptive-step * rollback, the coarse/refined error walk, and load-by-ID carry all apply * without any engine special case. * - DC operating-point normalisation happens INSIDE commitState via * ctx.dcSolveMode() (the dc stamps are R-only shorts/opens, so companion * math would commit garbage there). The A4 kinds get the same treatment * from _commitDcOperatingPointState; owning it here keeps the engine free * of composite-key knowledge. * - Every model carries an acStamp that is the exact linearization of its * transient stamp about the held OP: conductances keep their Newton * Jacobian values (GMIN floors included), energy storage becomes exact * complex admittance, committed regimes select the same piecewise-linear * region the transient stamp would use. * - crystal and opto_npn use the Wave A6 internal-node hook (see * DeviceModel.internalNodes) for their mid-branch/base rows. * * 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"; export declare const coupledInductorModel: DeviceModel; export declare const jfetModel: DeviceModel; export declare const scrModel: DeviceModel; export declare const triacModel: DeviceModel; export declare const optoNpnModel: DeviceModel; export declare const crystalModel: DeviceModel; export declare const analogSwitchModel: DeviceModel;