Known limitations of Pulsim 2.1¶
This page lists the defects and gaps that Pulsim 2.1 ships with (the rows written for 2.0 were re-checked on the 2.1 code base; the fixed ones are gone). Each row gives the measured effect and one workaround. Where a test pins the defect, the row names it. These tests are strict xfails, so the suite fails as soon as the defect is fixed and the row has to be updated.
The usage traps are not repeated here. They are behaviour by design
that returns a plausible wrong number: a diode V_th that is not a
forward drop, .mean() on the variable-step grid, SwitchStateMask(n)
taking a size, MOSFET bit numbering, undriven switches that close, a
broad except around simulate. They are in the
AI usage guide, section 5 (python -m
pulsim.guide). How to check a result is in its
section 6. Newton failures and
their messages are covered in Gotchas.
Opt-in features of 2.1 with open findings¶
These options default off; with default options none of this is reached.
The numbers are in the Known limitations part of the 2.1.0 entry of the
changelog.
-
A located diode turn-off with the split (
discontinuity_restart=True, enable_substep_state_correction=True): the event is taken at the crossing by moving the current of each uncoupled linear inductor the turn-off pins (one the move takes to zero current: the diode's series branch) along its slope by at mostsplit_snap·dt; capacitors and other inductors are not moved, their rate being continuous at a zero-current turn-off. This applies inside a step and within the snap of either step edge. What is moved is that inductor's history (what the next step integrates from) and the event's right-limit row, which is solved from it. The solved statexis not moved: the stored grid row at the same instant, the loss booking, a transmission line's history and a snapshot'sxkeep the locator's leftover, at most the inductor's slope timessplit_snap·dt(about 26 µA between the two rows at one instant on the 10 V half-wave RL load atsplit_snap=0.01). Not moved at all, and so keeping the locator's leftover current in the state and in the row (at most its slope timessplit_snap·dt, read through1/g_off: 25.6 V on a 10 V half-wave RL load atsplit_snap=0.01, under 0.003 V at the default1e-6): every circuit with coupled windings or with any device the engine refreshes each solve (Newton devices such as the level-1 MOSFET, the Shockley / Lauritzen diode and external devices; stateful ones such as an IGBT tail, a Coss, a machine; nonlinear capacitors; saturable cores), and a crossing whose shift comes out beyondsplit_snap·dt. Each such crossing is counted inresult.counters["restart_crossings_unmoved"], the first one's time in"restart_crossing_unmoved_t"(None when there is none). A row that is not a pure located turn-off (another diode flipping, a gate edge at the same instant) is solved in its decided mode and counted inn_right_limit_fallbacks. The pinned inductor is found by size, not topology: one the move takes halfway to zero, or, when none is, the one whose move is nearest the diode's leftover current (within half of it; an inductor a leakage holds off zero, as on the DCM buck). When exactly one is pinned it is moved by the leftover itself, so the right-limit row reads the OFF law to round-off; two or more are each moved by their own slope. Transmission-line and other line histories are not moved either. Two turn-offs inside one snap share one shift (the larger signal's); the other keeps at most its slope times the gap between the crossings. A fast relaxation the flip excites is no longer overshot on the piece that starts at it (fixed: the SDIRK step is L-stable but not monotone, R(z) < 0 for z < −(1 + √2); the 24 V DCM buck stored V(sw) = 26.48 V 2 ns after a turn-off). When the flipped diode's signal reads a mode in that range and a backward-Euler re-take of the second stage has the smaller local error in the stored-energy norm, with the one-mode fit's misfit on the re-take counted against it (an under-resolved oscillation or a second mode on the piece is left to SDIRK), the piece keeps SDIRK's slow content with the re-take's fast mode, counted inresult.counters["restart_monotone_pieces"](with the sensitivities on: the backward-Euler stage itself). Still open: when the piece is too short for the mode (z > −(1 + √2) on it), the next restart step and the trapezoidal steps after it overshoot and ring instead (the same buck at dt = 2 ns stores 25.52 V). A start-up transient faster than the step (a capacitor charged from 0 V through a diode, τ = dt/10) is sub-stepped when the backward-Euler re-take's own fast error decides the sign it keeps (result.counters["restart_substeps"], at most 2^max_dt_halvingspieces per step): the turn-off lands within 6e-4·dt of the truth; a later step whose turn-off is real but decided by such a mode is sub-stepped too (it was located on single SDIRK trials, 0.02–0.04·dt early at τ = dt/5 – dt/2.5; now within 3.1e-4·dt). A sub-stepped step keeps every piece as a line: its turn-off is aninner_eventsrow and its losses are booked per piece (above 1024 pieces,max_dt_halvings> 10, the step keeps its ends only). A charge faster than γ²·dt (τ < 0.0858·dt), which the start's probe reads as a jump, is sub-stepped too when the capacitor's terminals carry PWL diodes only and the step (or the split's piece) does not start at a time event (a gate edge, a source jump; a pulse ramp's corner is none) or a located diode crossing (it was acapacitor_looprecord at t = 0 with no turn-off: v(dt) off by 0.24 V of 20.6 V just below that τ, 0.04 V at τ = dt/100; now within 4e-4 V from τ = dt/5 to dt/1000, no record). A switch closing onto a charged capacitor keeps its impulse (also with a diode in series), and so does the rule without the split. Still open: a mode of −(1 + √2) < z < 0 is not judged at all; and past the restart window the trapezoidal steps under-resolve the same tail (τ = 0.8·dt – 3.2·dt: the turn-off 0.45 – 0.15·dt early, the method's own error, converging). -
Restart rule with branch-form diodes (
discontinuity_restart=True): an ON branch-form diode whose current stays inside the noise band (about 1e-8 A) over the solved interval, or reads inside it at a solve of a cut's pieces, keeps its state, so the sign of a leak-level current no longer decides cuts. A crossing slower than the band per step is therefore held until it leaves the band, with the reverse current bounded by the band. -
Restart rule (
discontinuity_restart=True): the ideal-switch flyback on the fixed engine gets worse under step refinement; an edge off thedtgrid stays first order without event splitting. 2.1.0 (the released version) can also return a wrong steady state with the rule on: a diode that turns off inside the restart step's second stage is not located, and the stage starts from an extrapolated capacitor voltage. Measured on a boost with a 1 nH residual inductance: 51.34 V with the rule on, against 42.11 V (an independent ODE solve;trbdf2reads 42.111 V, the fixed engine with the rule off 41.86 V). This line fixes it: the turn-off is located and the restart step is cut there (counted inresult.counters["n_restart_cuts"]; the same boost reads 42.75 V; re-measured on this line with the 0.5001 h gate sample: 42.750 V 0.1 us after the edge, 42.114 V at 0.4 us against 41.48 V). On 2.1.0 the rule is off by default; with it on, compare againsttrbdf2before trusting it on a converter whose diode commutates right after a gate edge. Without event splitting, a diode that turns off inside a restart step's first stage is not located either: the step keeps a first-order kick (half_bridge_transformer_dc, dt = 100 ns: up to 3.3e-6 V on V(out) per such turn-off; withenable_substep_state_correction=Trueit is located). Without event splitting, a sample of an algebraic signal that is discontinuous at a rounded edge is the pre-edge value:scr_halfwave_ronpwlwith the rule reads 0.0271 against its analytic truth (1.47e-16 with the rule off). - Restart rule, the step after a C_oss collapse:
with_right_limits(result, collapse=True)rebuilds the post-collapse row x(t_e+) from the next step's line (the engine does not export it); where that step has an event, a record or another mode, the row is the step's end state, h·x' off. The loss readers (step_start_states) still read that step as its end power times h. Starting it at the post-collapse row instead was measured and not taken: on the PSFB and LLC references (dt = 10 ns, both restart options) it movesdevice_loss_summary'sP_avg/i_rmsby at most 9e-5 relative (the PSFB's lightly loaded D3 / D4: 1.1e-3 / 5.9e-3), and against the exact engine (1 ns) it is closer for S1, S3, D1 and D3 but farther for D5, each by at most a fifth of the run's own error (D3i_rms−9.4e-2 → −8.9e-2). The PSFB reference's switching energies meet the exact truth's trapezoid within 3.2e-3 at dt = 10 ns (Soft switching). - Fixed engine without the restart rule, C_oss turn-on: a switch
closing across its charged C_oss discharges it inside one step and the
½·C·v² is lost to numerical damping, booked to no device (−96 % of one
edge's energy at dt 1e-8). With
discontinuity_restart=Trueit is acapacitor_looprecord booked to the switch asE_impulse, notE_cond_electrical(each record within 8e-4 of E_oss on the 48 V C_oss buck at dt 1e-7 / 5e-8, the run's energy balance over a turn-on closed to second order in dt); see Losses and thermal. - TR-BDF2, C_oss turn-on, cost: the step resolves the discharge mode
(tau about 1 ps at 1 mOhm, 1 nF) instead of stepping over it: about 170
accepted steps within 10 tau of each turn-on at the default tolerances
(48 V, 1 nF, 5 Ohm: 172 with a nonlinear C_oss, 163 with a linear
capacitor; re-measured 2026-12-03). This is the requested tolerance, not
an estimator artefact: the capacitor voltage (or charge) decays with the
mode, so
atol + rtol·|v|shrinks as fast as the error, and the step sits at about 0.057 tau where TR-BDF2's true local error is 0.72 of that tolerance (the estimate reads 0.73). The count grows asrtol^(-1/3)whileatol/rtolis below the steady voltage (82, 172, 355 atrtol1e-4 to 1e-6); atrtol1e-8 the defaultatolfloors the scale at 1 V: 1092 (1630 withatol=1e-11). Fewer steps: a largeratol(a looser absolute tolerance on every state; 24 per edge atatol=1e-2) orintegrator='esdirk43'(26 per edge at the defaults, 2 to 22 with the linear capacitor; 1.4x the linear solves per run here). - Restart rule, recorders (finding F-Z-12): the in-loop feed and the
stored-array pass agree bit for bit on every sample-type output (kept
rows,
min/maxand their times) and on the event rows. The integral-type readings (integral,avg,rms) are two different quadratures: the in-loop record is the method's own SDIRK quadrature, which keeps∫i_C dt = C·Δvand the energy ledgers closed to round-off; the stored-array pass is the trapezoid of the state values. They are equal off restart steps and differ on a restart step by the leading-order estimate (smooth piece) or the bound (mixed-mode step) derived in the recorders section of API reference. A window that ends inside a mixed-mode restart step is first order in that end (the charge∫i_CagainstC·Δvof the read states: 2.6e-5 relative at 1 µs on a PWM buck, half that at 0.5 µs; 1.7e-3 before the fix). On the measured DCM buck (restart rule, no split, dt = 1 µs) the stored trapezoid was the closer of the two to the truth (the exact engine at dt = 25 ns): the window integral of i(L) is +2.9e-5 relative from the stored arrays, −1.97e-4 in the loop (on a smooth gate-switched RL cell the two agree to 1e-9). The gap is a cancellation, not a better quadrature: it comes from the steps whose mode changes without a located event (a diode turn-off inside the step), where the two quadratures are equally far from the truth with opposite signs (sum −1.14e-4 in the loop, +1.10e-4 stored, over 160 such steps); the stored sign happens to cancel the other steps' −7.8e-5. The feeds' agreement is asserted inpython/tests/test_release_findings_b2.py. The result now stores each restart (sub)step's quadrature start (result.quadrature_starts), and the time integrals ofdevice_loss_summary(PWL diodes and switches, resistors, inductors, branch-form ideal elements), the thermal summary's power of the PWL diodes and switches,pulsim.design'sp_inand the stored-array recorder pass (res.avg,res.integral,res.rms) start their lines there: they equal the in-loop record except on the held lines named below. With the restart rule and the split, on the 325 V / 1 mΩ bridge (470 µF ‖ 1 kΩ,dt= 1 µs, 60 ms) the summary's diode charge againstC·Δv + ∫i(RL)moved from 3.1e-4 to 2.9e-12 (5.6e-5 → 5.9e-12 at 0.5 µs; transformer rectifier at 2 µs 1.46e-4 → 2.9e-12). Still from the state values: a trapezoid overwith_event_limits(it shows the trajectory), the summary's Newton devices andpulsim.design's other readings (v_out, the declared node averages); a line that ends at a mixed-mode step's held-pieces row (quadrature_starts["held"]) keeps its old start too (on the boost below with 100 nF the diode charge reads −7.98e-4, the in-loop record −8.08e-4: both are the diode's turn-on collapse of the capacitor from V_th, which the run records inreinit_records, not in the window integrals). A step that carries a re-initialisation record starts from its stored quadrature start where it has one, not from its end sample. Without the rule nothing is stored and every reader reads 3e-12, because the trapezoid is then the method. A snubbed boost (1 nF across the diode,dt= T/400, rule + split) closes to −9.98e-6 atV_th = 0.7(−2.2e-7 with the recorded turn-on collapses added; summary −9.98e-6) and +4.3e-9 atV_th = 0(summary −3.1e-7): its turn-on inside the first stage of the gate-edge restart step is located. Without the split nothing locates it: the capacitance's charging ramp up to the turn-on is carried as a move that no integral holds (the rule alone: +1.95e-4 of the diode charge atV_th= 0 and 0.7). - Restart rule, a stateful device's current in a recorder (fixed
engine): the current of a nonlinear capacitor or a Lauritzen diode
(
i(Coss),p(X)) is given by the engine at the restart lines' points like a linear capacitor's, and its window integral is the device's charge change (C_oss turn-off on the 48 V buck ofpython/tests/test_release_findings_de.py: 3.5436e-8 C, equal to q(v) at the window ends to 4e-16 relative). Two things remain. Without the event split the turn-off's charge-up is carried as a move that no line holds, soi(Coss)over that window reads 2.4e-12 C, not 3.54e-8 C (the run's trajectory, not the recorder). At an event's right limit, solved by Newton for such a circuit, KCL across the event row holds to that solve's own tolerance (1e-9 V times the node's conductance, C/ε for a capacitor at the node: 1.7e-9 A beside a 1 A capacitor current on the Lauritzen recovery ofpython/tests/test_recorder_probe_interference.py), not to round-off. - Restart rule, a capacitor loop closed at the start (finding F-Y-7):
two charged capacitors closed by a 0 V source at t = 0 get a
reinit_recordsentry with the right|lambda_|anddWon both engines, and each engine'ssampleis the stored row that ends the pulse (pwl: row 1, the end of the pulse step, whose row 0 is the start solved and already reads the shared charge; the exact engine stores the right limit itself as row 0). The fixed engine names no device (it names only switches and Newton devices at the dominant state's terminals, never the source that closes the loop; the exact engine namesV0), and the two engines signlambda_oppositely (the fixed engine: the charge moved into the dominant state; the exact engine's constraint record: along the loop's constraint). Readabs(lambda_). - A capacitance across a switch at its turn-off (restart rule +
split), measured on the 48 V buck with a nonlinear C_oss and a
branch-form diode of
python/tests/test_release_findings_de.py: the load current charges C_oss to 48 V in 2.164 ns, a lossless transfer (the source gives V·Q_oss = 2.19·E_oss, C_oss keeps 1.00, the inductor gets 1.19). The restart step is cut where the diode clamps that ramp (at 2.164 ns, as a finetrbdf2run), and the ramp is integrated as ONE piece of that length whateverdt: its own truncation leaves about +0.0117·E_oss per turn-off in the energy balance (0.2 µs around the edge: +0.0175 / +0.0120 / +0.0117·E_oss atdt= 100 / 25 / 12.5 ns, +0.0023 at 1 ns oncedtresolves the ramp; 5 µs from 1 µs before it, with the ON interval's second-order line: +0.060 / +0.024 / +0.015 at 100 / 50 / 25 ns; over 0.4 ms +1.87e-5 / +7.6e-6 of the source energy at 100 / 50 ns). Without the split nothing locates that ramp: the turn-off step carries it as a move that no integral and no record holds, about −1·E_oss per turn-off whatever the step (the inductor misses the ramp's ∫v·dt).pulsim.design's energy balance books noE_impulse: on a 100 kHz buck with 1 nF across its switch it reads +1.0e-3 ofp_in, the turn-on collapse (C·V²/2 per period). - A gate edge exactly at
t_end: the stored last row is its left limit ontrbdf2and on the fixed engine under the restart rule, and the loss port's half-open window (t_from <= t < t_to) leaves the edge to the next run; both engines' kernel counters,E_on/E_offand junction heat follow that window too (19 turn-ons on the C_oss buck over 0.4 ms; a resume to 0.41 ms reads 20, as the uninterrupted run).trbdf2still books the edge in its loss state, which the snapshot carries to the resumed run. The rule-off fixed engine books it one step early (its first-order edge, in its trajectory). - Event splitting (with the restart rule): a retried step is re-taken
without its interior events; an even number of edges of an opaque
switch_fninside one step is not seen. A diode flip in the restart window after an event is located (turn-on and turn-off), except: a flip in the first stage of a sub-step that starts at an event (taken at the event) unless the start probe carried a state's ramp up to that flip as a move (a switch-node capacitance charged to a diode's threshold: located), and a second flip in the rest of an already cut restart step (a turn-off in the run's first step whose transient is faster than the step, such asthree_phase_diode_rectifier's at 0.63·dt, is located on sub-steps:python/tests/test_restart_startup_substeps.py). The rule alone dates a diode flip inside a step at the step end (no locator): onforward_converterthe D_fw hand-over after the switch turn-on costs the exact grade 1.5e-4 / 3.3e-5 / 3.5e-5 at dt = 100 / 50 / 25 ns (first order, phase dependent); with the split 1.0e-6 / 3.2e-7 / 2.7e-7 (the waveform's own level). (F-R-4, fixed: the D_rect re-conduction 6.1 ns after the turn-off was held off for a step because the edge's projection fitted one of the two winding modes; it now conducts from the edge.) Locating an event costs trial solves, each a factorisation: 4–7 trials per located event. A current that ramps to zero inside a restart piece after a switch turn-off (an exponential freewheel diode: there is no diode state to locate) was read by the restart probe as a jump when it ended within 1.185·γh of the event: the step recorded acut_setand dropped the current as an impulse (ll15_boost_closed_loopat dt = 0.5 us: 60 mA conducting 84 ns, V(vout) 4.3e-3 V low). With the split the piece is now cut where the ramp ends (fixed: ll15 V(vout) offset 2.2e-4 V, the charge over the edge step 0.52 -> 2.51 nC). Still open: a ramp shorter than γ²h ≈ 0.086·h stays an impulse (the probe cannot tell it from a fast mode; ll15's start-up edges, 413 records). One ending between 1.185·γh and 3γh ≈ 0.88·h is read from the probe's stages (at rest by its third, or a kink in its third confirmed at rest by one more stage) and cut there too (fixed: +17 % charge at 0.70·h, −24 % at 0.36·h, now within 0.5 %); one ending after 0.88·h is still integrated across by SDIRK (+6.5 % of its charge at 0.88·h, +2.1 % at 0.95·h,python/tests/test_restart_ramp_end_cut.py). The rule alone keeps the impulse and the late window (an edge on the grid: +17.8 % at 0.5·h; an edge off the grid is sampled at the step start, so its pulse is lost). The probe runs only where a rate can jump inside a piece (a PWL diode, a Newton device or stateful history, ab_extra_fn, a pulse, PWM or current-waveform source). A pulse source's ramp corners (rise and fall start and end, a non-zero rise or fall time) are events of the split (not time events: the state is continuous there), so no piece integrates across one: a 24 V ramp into a diode-only 1 mF capacitor (τ = dt/1000, tr = 0.1·dt) books its conduction energy within 2.4e-5 (was −74 %; −91 % with the edge off the grid, its samples 0.08 V off); the ramp's own piece is sub-stepped from the probe's reading of its fast mode (within 0.26 % over τ = dt/1000 … dt/30, tr = 0.01 … 0.3·dt).python/tests/test_restart_pulse_ramp_corners.py. A current waveform's corners are not landed (only its jumps). In a circuit with a Newton law corners are landed only when its Newton devices are level-1 MOSFETs / IGBTs without a tail and every ramped pulse source drives their gates (directly or through resistors), atmax_dt_halvings≥ 6 (fewer pieces left up to 3.1 J of a 5 J cut booked nowhere): each piece inside such a ramp is sub-stepped at the cap (2^max_dt_halvingspieces; the gate creates the fast mode inside the ramp, so no probe reads its rate; counted incounters["restart_gate_ramp_caps"]) and the decay after the ramp's end is followed on the inductor's current. An IGBT or MOSFET cutting 100 A in 1 mH (5 J) with a 1 ps or 100 ps gate fall then books no record and puts each device within 1e-3 of the 5 J of a tight variable-step run atmax_dt_halvings=8(set_device_losseson the MOSFET / IGBT reads its ∫v·i). At the default cap (6) the residual is second order in the pieces: the IGBT's share off by 0.8–2.1 %, the MOSFET's by 6.4 % (100 ps), up to 1.2 % of the 5 J not conserved by the pieces; a mode faster than the pieces' probe window (the MOSFET's 1 ps fall at the default cap) is the cut-set record, caused by the device, as before. Only ramps inside the restart's steps are sub-stepped (a gate ramp longer than the restart window's three steps is integrated as before past them). Every other Newton law (saturable inductors, nonlinear capacitors, Lauritzen diodes, an IGBT tail, machines, external devices) keeps the corners unlanded: the ramp's own piece and the decay after its end are not sub-stepped there (the rules that do it read linear diode-only capacitors); a ramp through a diode into a nonlinear capacitor, or into a capacitor with a saturable inductor at its node, would lose its conduction energy (−100 % at τ = dt/1000). Without corners the ramp stays a jump: a cut set's record holds its energy, and a ramp into such a diode-capacitor books the ideal edge's energy as acapacitor_looprecord (50–76× the true conduction energy at τ = dt/1000, tr = 0.1·dt; ½CV² for a linear C), its sample at a ramp end on the grid 3.4–5.2 V off (τ = dt/30, tr = 0.1·dt). With the rule off these circuits are worse: an IGBT cut books 4.97 J of the 5 J nowhere (so does the rule withenable_substep_state_correction=False: a 1 ps gate fall inside a restart step leaves 0.478 A in the inductor and books no record,test_release_findings_c2.py), and the diode-capacitor charges to 45–62 V from 24 V (samples 21–38 V off to the end of the run); the diode's conduction energy is off with either setting (DECISIONS ofadd-discontinuity-restart-rule,python/tests/test_restart_newton_gate_ramp.py). At a located turn-off under the rule, a diode left at a tie (|v_D| at the 1e-14 V level) can still add or remove one restart cut. On the single-phase bridge both outcomes agree to 2.3e-11 V (n_restart_cuts4 or 5). - Exact engine output rule (
engine='exact', output_rtol=...): what it bounds is each STORED COLUMN's line between two samples — the states and the recovered node voltages and branch currents alike — withinmax(output_rtol · range, atol, floor),rangethe column's range over the run so far (at least 1e-3 of its peak). Not bounded: a quantity computed nonlinearly from columns (a powerv·iorg·v²read as the line through its end values: a boost switch's on-time is one stored line, and that line overstated itsg·v²integral by 0.22 % at 1e-5; the thermal summary now integrates the product exactly, itsT_j_avg / (R_th · P_cond_avg)within 1.1e-4 of the fixed engine's). The bound is relative to the column's whole range: a 20 mV conduction drop on a node that swings 24 V is held to 2.4e-4 V at 1e-5, a three-phase line current swinging ±10 A to 2e-4 A. The first line after an event obeys it (1.5e-5 of the bound oncl_buck_piat 1e-5, 3.5e-4 at 1e-6). Closed-loop units sit at the promise:cl_buck_pireads 1.08 raw / 0.999 on the reference's chord at 1e-5; at 1e-6 it reads 2.93 raw / 1.25 on the chord, which the referee cannot resolve (inside_band;buck_dcm1.14 / 1.000), not a pass. - Sensitivities are refused by name at a recorded cut-set jump (a
DCM buck on
pwlwith splitting that returned a number before). - Exact engine: twelve paralleled bridges are refused by name; the phase-shifted full bridge does not run with device capacitances nor in ideal form.
On default options: probe-sized rows on the variable-step engine¶
In a circuit with no branch-form device, engine='trbdf2' (and auto
without dt when nothing routes it to pwl) stores probe-sized rows: right after an edge the stored row is a step of
1e-12 s or less, where an inductor's 2L/h row can be taken as a node's
pivot and that node's KCL then holds only to about eps·(2L/h)·|i_L|:
3.1e-5 A on a 1.3e-13 s row of a conductance-form diode bridge with a
20 mH, 2.5 A load. Branch-form runs refine those solves (2026-12-01); the
conductance form is left bit-identical by default. Of the 129 linear
circuits of the trbdf2 identity set with such rows, at least 7 lose more
than 1e-9 of their peak current there (worst 4.5e-6; a lower bound: two
more, active_clamp_forward and half_bridge_transformer_dc, are
undecided by the survey's metric). The C++ option
TrBdf2Options::refine_probe_solves (low-level
run_transient_trbdf2(..., refine_probe_solves=True)) refines them too,
where a solve's componentwise backward error is above 1e-9: 3.1e-5 A ->
9e-16 A on the bridge above (a smaller loss can remain: full_bridge_dc
1.2e-8 A -> 7.0e-9 A). Newton runs do not show the loss (Newton's own
iteration corrects it: 1.6e-16 A on the same rows; with the option on, none
of the 17 Newton circuits measured moved). It stays off by default
(measured 2026-12-03 on the 145 benchmark circuits that run on trbdf2): on,
12 circuits move, none resolvably less accurate against the exact engine
(ll10_full_bridge_inverter_lc 6.5e-5 -> 6.2e-6 against it; unchanged
against a tight trbdf2 run), but
the residual check on every probe-sized solve costs +16 to +21 % wall time
on the circuits whose solves are nearly all probe-sized (flyback_converter,
forward_converter, synchronous_flyback, ll09_half_bridge_inverter_leg,
half_bridge_transformer_dc), and synchronous_flyback takes 11 more
steps (+0.03 %). Numbers: CHANGELOG [Unreleased].
On default options: nonlinear output capacitance on the variable-step engine¶
A MOSFET with a nonlinear output capacitance on engine='trbdf2' (and on
auto without dt, which lands there): in 2.1.0 the conduction energy after
a gate edge read +3.91 % against its closed form (a Coss buck). Since
[Unreleased] it reads +0.057 % at the defaults (+0.007 % at rtol 1e-8): the
step after the edge starts from the consistent post-edge point. For a tighter
number, lower rtol or pass dt (fixed step). That reference is a trapezoid
over the run's own rows, so it is coarser on a sparser grid: with
integrator='esdirk43' (2484 rows against 7591) it reads +0.14 %, but
against the converged energy (both integrators at rtol 1e-8 agree within
1.3e-6) the in-kernel number is +0.018 % with esdirk43 and +0.041 % with
TR-BDF2 (re-measured 2026-12-03). The same row sparsity makes waveforms and
trapezoid KPIs read from an esdirk43 run coarser than TR-BDF2's at the same
rtol (switching energy of the LLC benchmark: +3.2 % against +0.2 %).
Engine capability matrix¶
Which engine simulates which device kind. This table is the kernel's
(pulsim.engine_capabilities()); test_engine_conformance.py checks
that it equals this page and that every "yes" agrees with engine='pwl'
within 1 % of the observable's span and every "no" raises
pulsim.UnsupportedError naming the engine and the branch. ac_sweep is
the kernel AC sweep (run_mna_sweep with freqs=): a "yes" Newton kind is
linearised at the DC operating point from its device law
(test_ac_linearize.py checks each against its closed form and a
small-signal transient). NonlinearDiode is retired: add_nonlinear_diode refuses
unless called with allow_non_passive=True.
| Kind | Class | pwl | trbdf2 | dsed | bdf1 | ac_sweep |
|---|---|---|---|---|---|---|
| Resistor | Linear | yes | yes | yes | yes | yes |
| VoltageSource | Source | yes | yes | yes | yes | yes |
| Switch | Switch | yes | yes | yes | yes | yes |
| Capacitor | Linear | yes | yes | yes | yes | yes |
| Inductor | Linear | yes | yes | yes | yes | yes |
| Diode | PwlDiode | yes | yes | yes | no | yes |
| NonlinearDiode | NewtonStatic | yes | yes | no | no | yes |
| CurrentSource | Source | yes | yes | yes | yes | yes |
| PWMVoltageSource | Source | yes | yes | yes | yes | yes |
| SineVoltageSource | Source | yes | yes | yes | yes | yes |
| PulseVoltageSource | Source | yes | yes | yes | yes | yes |
| MosfetLevel1 | NewtonStatic | yes | yes | no | no | yes |
| IgbtLevel1 | NewtonStatic | yes | yes | no | no | yes |
| VCVS | Linear | yes | yes | yes | yes | yes |
| SaturableInductor | NewtonStateful | yes | yes | no | no | yes |
| NonlinearCapacitor | NewtonStateful | yes | yes | no | no | yes |
| ShockleyDiode | NewtonStatic | yes | yes | no | no | yes |
| LauritzenDiode | NewtonStateful | yes | yes | no | no | yes |
| PmsmMna | NewtonStateful | yes | yes | no | no | yes |
| IdealTransformer | Linear | yes | yes | yes | yes | yes |
| VCCS | Linear | yes | yes | yes | yes | yes |
| CCCS | Linear | yes | yes | yes | yes | yes |
| CCVS | Linear | yes | yes | yes | yes | yes |
| Gyrator | Linear | yes | yes | yes | yes | yes |
| SineCurrentSource | Source | yes | yes | yes | yes | yes |
| PulseCurrentSource | Source | yes | yes | yes | yes | yes |
| PwlCurrentSource | Source | yes | yes | yes | yes | yes |
| InductionMachineMna | NewtonStateful | yes | yes | no | no | no |
| ExternalDevice | NewtonStateful | yes | yes | no | no | yes |
| ExcessLoss | NewtonStatic | yes | yes | no | no | yes |
| TransmissionLine | LinearDelay | yes | yes | no | no | yes |
Option capability matrix¶
Which engine honours which simulate() keyword. This table is the
kernel's (sim::kRunOptionTable, pulsim.option_capabilities());
test_simulation_object.py checks that it equals this page and that
every "refused" cell raises pulsim.UnsupportedError naming the engine
and the keyword (feature) when the keyword is set to a value that asks
for something (None, False, store_every=1, max_dt_halvings=0,
mode_selection='legacy', control_tick='label' ask for nothing). No
engine accepts a keyword and ignores it. The defaults are
sim::Defaults (core/include/pulsim/sim/defaults.hpp).
| Keyword | pwl | trbdf2 | exact (dsed) | default |
|---|---|---|---|---|
engine |
yes | yes | yes | 'auto' |
rtol |
refused | yes | yes | 1e-5 (trbdf2), 1e-6 (exact) |
atol |
refused | yes | yes | 1e-8 (trbdf2), 1e-9 (exact) |
dt_init |
refused | yes | yes | kernel's choice (trbdf2), 1e-9 (exact) |
integrator |
refused | yes | yes | 'auto' (exact), TR-BDF2 (trbdf2) |
stiffness_threshold |
refused | refused | yes | 10.0 |
h_bdf2 |
refused | refused | yes | 1e-6 |
t_start |
yes | yes | yes | 0.0 |
switch_fn |
yes | yes | yes | None |
b_extra_fn |
yes | yes | yes | None |
step_observer |
yes | yes | yes | None |
start_from_dc_op |
yes | refused | refused | False |
enable_nonlinear_refresh |
yes | yes | refused | None (stamp the Newton devices when there are any) |
max_newton_iterations |
yes | yes | refused | 50 |
max_event_iterations |
yes | yes | refused | 16 |
strict_event_iterations |
yes | refused | refused | False |
max_dt_halvings |
yes | refused | refused | 6 |
voltage_sanity_factor |
yes | yes | yes | 100 |
store_every |
yes | yes | refused | 1 |
auto_regularize |
yes | yes | yes | True |
tol_newton_dx |
yes | yes | refused | 1e-9 |
tol_newton_res |
yes | yes | refused | 1e-9 |
enable_newton_line_search |
yes | yes | refused | False |
enable_newton_lm |
yes | yes | refused | False |
newton_roundoff_budget |
yes | yes | refused | 130 |
enable_substep_state_correction |
yes | refused | refused | False |
discontinuity_restart |
yes | refused | refused | False |
split_snap |
yes | refused | refused | 1e-6 (2.1.0: 0.01) |
resolution_diagnostics |
yes | refused | refused | False |
on_impulse |
yes | yes | yes | 'record' |
inductor_freeze_di_max |
yes | refused | refused | None (off) |
inductor_abs_clamp |
yes | refused | refused | None (off) |
progress |
yes | yes | yes | False |
initial_state |
yes | yes | yes | None (the circuit's ICs) |
should_continue |
yes | yes | refused | None |
closed_loops |
yes | yes | yes | None |
live_stream |
yes | yes | refused | None |
mmc_arms |
yes | refused | refused | None |
on_cache |
yes | refused | refused | None |
controller_period |
yes | yes | yes | None |
resume_from |
yes | yes | yes | None |
solver |
yes | yes | yes | None |
sensitivities |
yes | yes | yes | None |
mode_selection |
yes | yes | yes | None ('legacy') |
allow_implicit_segments |
refused | refused | yes | None |
output_rtol |
refused | refused | yes | None (today's samples) |
undriven |
yes | yes | yes | None (each engine's own) |
recorders |
yes | yes | yes | None |
dt_out |
refused | refused | yes | None (the steps are the rows) |
record_currents |
yes | yes | refused | None |
control_tick |
yes | yes | yes | 'label' |
device_path |
yes | yes | refused | 'legacy' |
t_end |
yes | yes | yes | required |
dt |
yes | yes | yes | None (pwl: required; trbdf2: kernel ceiling; exact: 1e-5) |
store_every on trbdf2 decimates after the run (rows 0, n, 2n, ..., both rows of every mode change): peak memory is a full run's, the post-run missed-commutation warning reads the kept rows only, a failed run's partial result is not decimated, and the exact engine refuses it.
The charge laws ChargeLaw.table / .vdmos_cgd are the
NonlinearCapacitor row. add_power_mosfet is a composite of the
MosfetLevel1, Capacitor, NonlinearCapacitor, Resistor, Inductor and
Shockley / Lauritzen diode rows: it runs on pwl and trbdf2 and is
refused on dsed, bdf1 and the kernel AC sweep, naming the channel.
With fq_device=True (opt-in) it is ONE f/q device (channel, C_gd,
C_ds, body diode: the ExternalDevice row) plus the Resistor, Inductor
and Capacitor rows of R_d, R_g, L_s, C_gs: it runs on pwl, trbdf2,
the DC operating point and the kernel AC sweep, and is refused on dsed
and bdf1, naming the device.
The branch form of a switch or diode (add_ideal_switch,
add_diode(form='branch'), YAML form: branch; opt-in) has its own
column; "no" raises UnsupportedError(feature='branch_form'). A mode
whose ideal elements (R_on = 0 or g_off = 0) make a state dependent
(an inductor cut-set, a capacitor loop) runs on pwl with
discontinuity_restart=True and on trbdf2 (always: three SDIRK(2,2)
steps after the entry), and an impulsive entry is recorded in
res.reinit_records (on_impulse='error' refuses it with
feature='impulse'; on dsed a jump is recorded only above 1e-9 of the
circuit's current or voltage scale, so a tiny cut in a circuit with a
very large current scale is projected without a record; a conductance-form
switch that cuts an inductor current into its g_off, whose L·g_off transient the
exact engine's event projection settles at the event, writes the same cut_set
record with the energy the projection removed, when it moves a state by more than
1e-3 of its scale); on pwl without the rule, and on trbdf2 with a
Coss, Lauritzen, IGBT-tail, PMSM or saturable-inductor history, it is
refused with feature='dependent_states'; a node bounded only by open ideal elements with
g_off = 0 is refused with feature='floating_node' (on dsed, default mode selection, an island whose OFF diodes bound it from both sides runs at the centre of that interval; there its boundary diodes' predicates are min / max of smooth pair sums, so the locator's no-crossing certificate does not cover them (two crossings inside one scan interval rely on the scan alone), the output rule does not certify linear interpolation of the island's potential across an instant where the bounding diode changes (the stored samples are exact), and periodic_steady_state / sensitivities= refuse such a mode), a loop of closed
ideal elements and voltage sources with feature='ideal_voltage_loop'.
| Form | pwl | trbdf2 | dsed | bdf1 | ac_sweep |
|---|---|---|---|---|---|
| Switch | yes | yes | yes | no | yes |
| Diode | yes | yes | yes | no | yes |
The gated PWL devices are a form of the Diode row with their own column
(add_igbt(reverse_blocking=True) and add_gto: GateHeld;
add_thyristor and add_triac: Latching); "no" raises
UnsupportedError(feature='gated_diode'). Not modelled: turn-off time
t_q and commutation failure, dv/dt and break-over firing, a latching
current distinct from I_H, gate power, reverse recovery and switching
energies. I_H > 0 chops an inductive current into R_off (a voltage
I_H·R_off without a snubber).
| Form | pwl | trbdf2 | dsed | bdf1 | ac_sweep |
|---|---|---|---|---|---|
| GateHeld | yes | yes | no | no | yes |
| Latching | yes | yes | no | no | yes |
Circuit-level limits, also raised as UnsupportedError (with feature
set): coupled inductors (add_transformer, add_inductor_coupling) on
dsed and bdf1; PWL diodes with integrator='bdf2' on dsed;
capacitor loops (parallel capacitors) on dsed; C blocks, an every-step
step_observer (no controller_period), device_path='interface',
start_from_dc_op, store_every,
live_stream, max_dt_halvings, mmc_arms, on_cache, the inductor
guards, enable_substep_state_correction and discontinuity_restart on
dsed; the fixed-step keywords (discontinuity_restart among them) on
trbdf2; a control-graph Rate with a compute_delay time
(compute_delay) on trbdf2; a b_extra_fn.next_jump_after declaration is read by pwl
only (a no-op on trbdf2 / dsed, which control the step on their own
error estimate); enable_nonlinear_refresh=False with a smooth /
Shockley diode, MOSFET or IGBT on every transient engine;
sensitivities= on every engine but dsed, and on dsed a parameter
that is not an R, L, C, DC-source value or the duty of a single-switch
trailing-edge PWM (sensitivity_parameter; a dead-time pair's duty is
refused), a time-varying source, a Newton device, an opaque gate or
b_extra_fn, a mode without an exact propagator, an RK45 step, a
grazing diode event (grazing_event), and a KPI window edge on a moving
event where the signal jumps.
Engines¶
| Limitation | Measured | Workaround |
|---|---|---|
trbdf2 on the active-clamp forward converter (ll13_active_clamp_forward): every switch turn-off edge costs tens of steps below 1e-11 s at the defaults, hundreds at rtol=1e-8. The committed trapezoidal edge probe (dtp = 34 to 1.2e4 tau, amplification -0.89 to -0.9998) carries the parasitic mode (tau ~ 2e-13 s, L/R_off of the 1e7 Ohm OFF switches) past the edge almost undamped and with one sign flip; TR-BDF2 then resolves its decay without oscillation (one L/C entry dominates the estimate, its scale falls monotonically). The step starts where the mode's local error meets the tolerance and grows as amplitude^(-1/3) (1.8 fs to 25 fs over 1.4 ps at rtol 1e-8, estimate / tolerance 0.72 throughout), about 3·tau / h_0 steps. The estimate is the mode's real error: at h ~ 0.01 tau the stage-matrix filter is about 1, so it does not change the count. |
Re-measured 2026-12-03, 50 us: 8 to 39 steps below 1e-11 s per edge at the default tolerances (406 in the run), 67 to 343 at rtol 1e-8 (2788 in the run). The three aborts at those nodes ("Newton failed ... at h_min" at rtol 1e-6 / 1.6 us, 1e-8 / 3 us and 1e-10 / 100 us) are fixed: Newton's round-off acceptance now takes an iterate whose step is at the rounding propagated to each unknown. All 18 measured runs (rtol 1e-6 / 1e-8 / 1e-10, 1.6 to 100 us) complete on macOS arm64. A backward-Euler edge probe was measured and not adopted (one more abort). | For fewer steps, use engine='pwl' with an explicit dt. |
The exact engine's locator reads a step's predicates at its scan points; some crossings inside one long step are still not found. Fixed: a diode kept in its mode at exactly zero signal after a tie (its drift out of the significance band later in that step was skipped on steps of 10 µs or more); a sine-driven diode forward-biased only inside one step (both ends of the step read the blocking side: the no-crossing certificate now covers sine sources, the oscillator modes and the predicate's own source term included). Still open: a diode left at a nonzero value inside its band by a just-fired event whose mode was kept (the drift exclusion of the last-fired predicate, read from the code); two crossings within one scan interval on a mode without a tier-1 eigenbasis (no certificate: near-defective modes, e.g. a critically damped RLC, measured as tier 2, where the miss itself was not reproduced); a non-diode threshold predicate starting at exactly zero is skipped for the step (only C++ users that register their own predicates: the shipped engine registers diode predicates only). Explained, not a locator miss: bridge1_vf07 (single-phase bridge, V_f = 0.7) places its sixth event, D2's turn-off, at 15.36798 ms on the default 1 µs poll and at dt = 1e-5 against 15.36602 ms at dt <= 1e-6 (1.97 µs); the closed form puts it at 15.36632 ms. D2 then conducts alone and carries only the g_off leakage of the other three diodes (it holds the floating bus's common mode): its ON signal v_D − V_f = i/g_on is ~1e-13 V, a difference of ~100 V node voltages, moving at 5.2e-9 V/s. Both runs find a sign change between two values inside the significance band (B = 1.34e-13 V), which places the root within B/ |
ġ | = 25 µs of the true crossing; one ulp of the node voltages alone is 2.7 µs. The capacitor voltage does not depend on it (the modes differ by g_off terms: the two runs' v_C agree to 2e-12 relative at 15.45 ms, a round-off gap already there before the event); the floating nodes p, n move 0.18 V at the event, so they differ between the two runs for those 2 µs. |
Without output_rtol, the exact engine projects out at an event every mode faster than dt_max / 100, including a real one when dt is coarse. This is the documented parasitic-mode rule; each projection is listed in diagnostics['event_projections']. |
Three-phase ideal bridge, R_on = 0.01, C = 1 mF (charging mode 2·R_on·C = 2e-5 s), dt = 4e-3: the cut is 4e-5 s, so the start moves v_C from 173.205 V to √3·100 V at t = 0 (event_projections: amplitude 8.1e-5 V, tau 2e-5 s). dt ≤ 1e-3 records no projection. |
Use dt ≤ 100·tau of the fastest real mode, or read event_projections. |
trbdf2 with junction loss ports: the femtosecond steps after a C_oss turn-on are mostly Newton solves accepted at round-off. The step size is set by the C_oss charge's error estimate (the decaying-mode cost above); the round-off accepts follow from it. At h = 4e-15 s a 1 mF C_th is a 5e11 S companion, so the ambient source's row sums 1.4e13 terms and its current cannot be resolved below about 1e-2 A; Newton stops at that floor and the solve is accepted at round-off (result.newton_roundoff_accepts). |
Two interleaved 48 V switches (1 nF C_oss, 1e-4 J edges, two 1 mF junctions on one ambient), 0.4 ms: 7728 accepts in 10174 samples, 0.47 s; heat 7.94834e-3 J against 7.94832e-3 J at rtol=1e-8 (70746 accepts). It aborted at t = 50 us at h_min before this change. |
None needed; cross-check a thermal result at a tighter rtol. |
The fixed engine takes an event closer than 100·eps·C/(γ·g_hold) to a step end at that end, not inside the step. C is a capacitor between two non-ground nodes whose island (capacitors and sources tied, inductors open) has no tie to ground, g_hold that island's driving-point conductance to ground through resistors and OFF switches / diodes, γ = 1 − 1/√2. A shorter piece's backward-Euler stage stamps C/(γh) with a round-off above 1 % of g_hold: the island's common mode then swings by tens of volts inside the piece, and on paralleled bridges a floating bus lost its charge (fixed). The event's time error is at most that length; with a large floating capacitor held by very little conductance it can reach a step, and the event is then first order (the split acts as the restart rule alone there; res.counters['split_piece_min_dt'] gives the length in steps). The length is reckoned with every diode OFF, so it is conservative (a 0.1 F bus on 1 GΩ read 2e-6 V with the old 4e-14 s snap, 1.17e-3 V now). Only islands a diode touches count. A diode-free floating island's common mode is set again after every piece of a cut step from the island's summed KCL (2 mF on 1 MΩ, a 3 ps piece: the stored sample read 2.0 V off for 50 V, now 1.46e-5 V, the step's own error), but only when the island is held by resistors alone and the run has no device that reads a node besides its two terminals (MOSFET / IGBT gate, controlled source, machine); on any other diode-free floating island (an inductor or transformer winding, a switch or a current source on it: 0.104 V with a 1 mH inductor on the test island; and any run with a b_extra_fn, device losses, or a device with a gate / control node) a sample stored at the end of a piece shorter than that length still reads the common mode off (the next sample is right again). The correction shifts node voltages only: parameter sensitivities with the split are not shifted with them. Applies to located diode crossings, gate edges, source jumps and the restart's sub-steps, with or without the split. A device the estimate does not model (MOSFET, IGBT, transformer, machine) counts as a tie, so its island is not floor-limited. |
Paralleled bridges, 2 mF bus on 1 MΩ: 1.5e-10 s (0.6 % of dt 2.5e-8). Bridge onto 0.1 F on 1 MΩ: 7.7e-9 s (7.7 % of dt 1e-7). | A capacitor to ground, or a lower-valued resistor holding the island. |
The exact engine's LCP (mode_selection='lcp', and 'auto' which resolves to it) does not pose a mode with a gauge island. The island's KCL on the port currents is not built. Under 'auto' such a decision is the settle's (counted: diagnostics['mode_selection']['gauge_settled'], with the reason); an explicit 'lcp' refuses by name. |
Every circuit of test_gauge_islands.py under 'auto': bit-identical to mode_selection='legacy', no decision by the LCP. |
mode_selection='auto' or 'legacy'; or R_on > 0 with one g_off > 0. |
dsed can settle a zero-band diode into the wrong mode; two guards stop it being returned. The complementarity guard (default) judges each settled mode and repairs the wrong ones with the LCP; the stored-sample guard raises DiodeModeInconsistentError for what the kernel guard misses. |
Boost 12 V, 100 µH, 47 µF, 100 kHz, D = 0.5, V_th = 0 at 20 / 50 / 500 Ω: repaired (7 / 16 / 23 events), ends on trbdf2 rtol 1e-10. LC tank into a series diode with V_th = 0 (a double crossing inside one step): the kernel guard returns v = -5.18 V at 10 µs (trbdf2 9.50 V); the stored-sample guard raises. | V_th = 1e-3 for the double crossing, or pwl / trbdf2. |
Fixed-step controller ticks land on the dt grid. Source j ticks at t_start + k*T_j on both engines; trbdf2 lands each instant, pwl delivers it at the first grid point at or after it. |
T = 2.5*dt over 100 µs at dt = 1 µs: 40 ticks, each late by less than dt (result.control_tick_jitter_max), with a warning; T < dt raises. |
dt = T/n, or omit dt (trbdf2). |
A control_tick='label' resume on pwl from a snapshot of every tick source (a trbdf2 run, or a pwl 'state' run) restarts its Python tick sources' grid at t_start when the run also has control-graph groups. A label pwl run carries only its Python sources' entries, so a snapshot listing the graph groups too does not match its count and is not read. (The 'state' resumes across engines tick where the uninterrupted run does: test_a_cross_engine_state_resume_ticks_where_the_uninterrupted_run_does.) |
Closed loop at T = 10 µs, user graph at 4T, a Python loop at 2T, dt = 0.5 µs, trbdf2 to 24.3T, pwl 'label' to 44T: the Python loop ticks at 24.3T, 26.3T, ... (the uninterrupted pwl run: 26T, 28T, ...). |
control_tick='state', or resume on the engine that wrote the snapshot. |
A user control graph (no label_time) resumed on pwl at another dt than its last pwl run labels its ticks with the first run's step. The graph infers the step once, from its first two fixed-step calls; a variable-step run in between re-arms it. |
User graph at Rate 4T, pwl at dt = T/20, then resumed at dt/4: ticks recorded at 15.9625T, 19.9625T for 16T, 20T. |
Resume at the same dt. |
By default the fixed engine is first order after a discontinuity. The start (ICs included), every gate edge and every source jump leave a stale trapezoidal history (v_prev, i_prev). Guide trap 9; pinned by test_first_step_order.py and test_fixed_step_discontinuity_order.py. |
RL decay, R = 1 Ω, L = 1 mH, i0 = 5 A: relative error at 5 τ 1.997e-3, 9.99e-4, 5.00e-4 at dt = 4, 2, 1 µs (order 1.00); with discontinuity_restart=True (three SDIRK(2,2) steps per discontinuity) 6.66e-6, order 2.00. Buck CCM i_L at T/50: 1.18e-2 A, 1.17e-7 A with the rule. An edge off the dt grid stays first order unless enable_substep_state_correction=True (needs the rule) splits the step at it: buck D = 0.4567 v_C at T/50 8.08e-2 V → 1.07e-6 V, order 2. An undeclared b_extra_fn jump stays first order either way. With the rule the start (zero state, builder ICs, initial_state=) takes the same restart as a source jump at t > 0: an RL stepped from rest at t = 0 and one stepped at 5·dt give the same rows after the step (4.52e-8 at 4 µs, 1.13e-8 at 2 µs, order 2.00, also with the split, control_tick="state" and device_path="interface"). Sample 0 stores the start solved (v(a) = -5 V, the consistent value); the step from it still integrates from the given vector. |
discontinuity_restart=True (gate sampled at the step start); keep edges on the grid. |
Row 0 of pwl / trbdf2 keeps the start vector as given in some cases, and what reads the start before the first step reads that vector. Row 0 is solved at t_start (capacitor voltages and inductor currents kept, the rest solved under the recorded mode, pwl/consistent_row.hpp). The static Newton laws (Shockley / Newton diode, level-1 MOSFET, level-1 IGBT without tail) are solved by a damped Newton iteration. A free diode the solved row contradicts (recorded OFF and forward-biased, or ON and reverse-biased) is re-decided for row 0 alone, and row 0's recorded bit follows; the run's first step still decides from the given vector. Row 0 stays the given vector when: the circuit has a stateful device (nonlinear capacitor, saturable inductor, Lauritzen diode, IGBT tail), a PMSM or induction machine, a transmission line, a flux node, an external law or a b_extra_fn (the DC machine is a linear composite: its row 0 is solved); the Newton solve does not converge within 300 iterations (res.start_row_newton_failed is then True; a source onto an uncharged capacitor first takes the charge share and Newton restarts once); a caller's deprecated nl_refresh override is set (it is not called an extra time); the declarations contradict the circuit in a way no charge resolves (a loop of voltage sources that do not add up; a capacitor loop whose ICs do not add up to its sources' takes the charge the sources push through it, as the first step and the exact engine do; a charge the share would push through an ideal ON branch-form switch keeps the declared row, whose re-initialisation the first step records at sample 1); no diode mode holds within 16 tries; or the circuit has more than 512 unknowns plus capacitors. Left out on purpose: a machine (its stator law reads the shaft and flux states the DC point holds per machine), a line (its port law reads the history at t − τ), a flux node (its rows are linear-only), a b_extra_fn (a Python callable with its own state, not called an extra time) and the dense size limit. The integration, controllers primed at t_start and step_observer's calls up to the first step read the given vector. A loss port's tracker starts from the solved row in row 0's recorded mode (the re-decided one, where row 0 re-decided a diode). A discrete identity taken over the samples (an energy balance) holds from row 1: the first interval mixes the solved row with the start's step (a DC machine on a sine with a 2 V offset: 7.9e-8 over the whole run, 8.7e-15 from row 1). A current circulating in a loop of capacitors and voltage sources takes the loop's d/dt KVL with each waveform source's slope at t_start taken as 0. Against the exact engine's row 0, these still differ: a gate the two engines decide differently at t_start (a closed loop's first PWM decision); coupled windings, whose induced voltage needs di/dt and so is not part of a solve that holds the currents (a forward converter's secondary: 0 V on row 0, 16.1 V on the exact engine, whose rectifier diode is ON); an inductor into a node held only by g_off (the exact engine lets that fast mode decay at t_start; row 0 holds the current and reads the g_off divider); a capacitor that an ON switch shorts (the exact engine discharges it at t_start; pwl / trbdf2 hold its declared voltage in row 0 and discharge it in the first step). |
103 benchmark circuits the exact engine runs: 63 → 9 → 8 → 6 differ. The re-decided diodes fixed boost_switching_complex (1.0 → 6e-16 of the scale) and three_phase_diode_rectifier (1.0 → 2e-16). psfb_full_bridge_zvs went from 1.0 to 1.0e-5 of 400 V: node a is 0.002 V from the exact engine. Still different: cl_boost_pi (the gate), forward_converter and active_clamp_forward (coupled windings: sec_p 0 against 16.1 / 18.9 V), interleaved_buck_3ph (the g_off node: 16 V against 7e-7 V), llc_half_bridge_zvs (C_oss_hi 400 V across S_hi ON: exact 400 V at the midpoint, row 0 0 V). Newton circuits (the exact engine refuses them), against the integration's own consistent point (row 1 of a 1e-12 s step from the same start): of 10 benchmark circuits, 6 read the whole scale off; 5 of those now read within 5e-7. buck_igbt does not converge: an IGBT gated ON at the start carries only the diode's 1e-6 S leakage, deep in its exponential tail, and its row 0 stays the given vector (flagged). Rows from row 1 on are bit-identical on all 335 benchmark runs (pwl, pwl with the release options, trbdf2); row 0 moved on 29. |
Declare every capacitor's IC; start_from_dc_op=True for a DC start; read the run from row 1 where row 0 is kept. |
The start vector does not place a waveform source's node; the start a source shares by charge is reached in the first step. builder.initial_state() places the declared capacitor ICs and, once a declared value is nonzero, the nodes the DC voltage sources hold. It shares the charge the sources push through the capacitors: an undeclared capacitor first reads the voltage the declared ones give it, else 0 V, as on the exact engine. That share (pwl/charge_projection.hpp) carries the charge through every element that can carry it in zero time: voltage sources, a VCVS, a CCVS, an ideal transformer, a CCCS driven by one of them. A charge the share would push through an ideal ON branch-form switch is the first step's recorded re-initialisation instead (reinit_records, sample 1: C1 1 µF at 10 V and C2 3 µF at 2 V across a switch ON from t = 0 keep 10 V / 2 V at row 0 and read 4 V from row 1, 24 µJ recorded at sample 1; the exact engine stores 4 V at row 0 and records the loss at sample 0); that start keeps the declared row. Resistors, inductors, current sources, conductance-form switches and diodes, and the resistive / inductive Newton laws carry none, wherever they are. Before 2026-12-03 any controlled source, transformer, branch-form switch or nonlinear device anywhere in the circuit dropped the share: 400 V onto C_top undeclared + C_bot at 100 V read 100 V at the midpoint on every row, against 250 V on the exact engine. Still placed without the share: a circuit with a nonlinear capacitance or a Lauritzen diode whose voltage the share would change (the share takes no charge through it only when its voltage stays put), a branch-form switch whose voltage the share would change (the builder does not know its state), and a machine, line, gyrator, external law or flux node anywhere. A VCVS that drives a capacitor takes that charge from its own output, as the first step does; the exact engine's start is the least C-weighted change over every capacitor, which couples the two through the gain (a C_e of 100 pF on a 0.5-gain VCVS of the midpoint: 250 V / 125 V here, 235.29 V / 117.65 V on the exact engine). A sine / pulse / PWM source's value is the run's (t_start), so its node is left out of that vector: the integration starts from it and the first step shares the source's value by charge, and row 0 stores that shared start where the row is solved (not for the circuits listed in the row above: there row 0 is the given vector). An empty or all-zero declaration is the zero start (the same reading as none on the exact engine); when a declaration contradicts a DC source every source is left out of the vector. The exact engine refuses a waveform source in a capacitor loop. |
400 V onto C_top (undeclared) in series with C_bot (c0 100 V): a = 250 V from row 0 on pwl / trbdf2 with a DC, sine, PWM or pulse source, and on the exact engine with the DC source. With a VCVS, CCVS, CCCS, ideal transformer, branch-form switch, Shockley diode or level-1 MOSFET on other nodes: a = 250 V from row 0 (it was 100 V on every row; the midpoint's error against the exact engine over 0.2 ms: 150 V → 0.031 V on pwl, 2.2e-4 V on trbdf2). A nonlinear capacitor on the midpoint: still 100 V. The start vector holds a = vin = 100 V for the waveform sources. |
Declare every capacitor's IC, or pass initial_state=. |
Diode-mask chatter on the fixed engine. With PWL diodes and a Newton device in the same circuit, the diode mask is re-decided at every Newton iteration and no mask is self-consistent at a small step. Pinned by test_newton_stall_and_mask_chatter.py. |
PSFB with a saturable primary and a floating secondary. At dt = 20, 10, 5 and 2 ns it aborts near t = 1.5 µs, even split into 64 sub-steps. At 50 ns it runs. V_out = v(vout) - v(rect_neg), averaged over 1.5-2 ms, is 6.771 V. With a linear primary it is 6.765 V at 50 ns and 6.938 V at 10 ns (6.937 V at 5 ns). So 50 ns reads 2.4 % low. |
Run at 50 ns and accept about 2.5 % low; check it against the linear-primary circuit at 10 ns. add_shockley_diode runs at 10 ns but changes the model: each junction drops about 0.7 V and a PWL diode drops none (trap 1). V_out falls to 5.785 V (-16.6 %). Use it only if you want that drop. |
TR-BDF2 femtosecond landing step after a diode turn-off: no longer reproduces (re-measured 2026-12-02). Pinned by test_trbdf2_stateful_with_diodes.py::test_no_kilovolt_artefact_on_the_internal_node. |
L-D-RC rectifier, 20 V source, constant 111 µH. The L-D node peaked at 1539 V on a 3e-14 s step (1897 V at default tolerances); today it peaks at 20.0 V (the source amplitude) on simulate() without dt and on engine='trbdf2', dt=4e-6. Which change cured it is not identified (the 1897 V reading postdates DECISIONS 16 of update-trbdf2-error-control). |
None needed. |
A V_th = 0 bridge whose DC bus is tied to ground only through 1 MΩ: the single-ended rails jump by tens of volts at a turn-off, so a small turn-off time difference reads as a large single-ended one. Re-measured 2026-12-02 against engine='dsed': the common mode is defined (the resistors fix it algebraically; while D2 is off D3 carries the tie's 0.3 mA), and TR-BDF2 follows it. The earlier "undetermined common mode" figures (41 V, 265 V, 32 V) were taken against pwl at dt = 1e-6, which is itself up to 29.7 V off the exact engine on 4.0 ms of a 60 ms run (it warns of mask cycles). |
325 V, 1 mH line, 470 µF, 100 Ω, 60 ms, against dsed: v(dp) − v(dn) within 0.042 V at the default rtol (0.0021 V at 1e-7). v(dp) alone is within 1 V except for up to 0.4 µs after each of three D2 turn-offs (one at rtol 1e-7), where it is up to 44.3 V off: TR-BDF2 lands the turn-off 62 ns after the exact engine and v(dp) then steps by 43.5 V through the 1 ns L/R_tie mode. |
Measure the bus as v(dp) − v(dn), or ground one DC rail. |
On trbdf2, res.switch_states alone shows a diode event one row late; the stored right limit shows it at its located time. The engine lands a step on the located commutation and stores that row as the left limit (the pre-event mask). The new mask first shows in res.switch_states on the next row, one accepted step later, although that step was solved in the new mode (no reverse current flows: the minimum diode current after each of 49 landings on full_bridge_dc is g_off·24 V = −2.4e-5 A). Since 2026-12-03, every diode event also stores a right limit (result.right_limit_index / right_limit_states / right_limit_switch_states). It holds the cascade's settled post-event state and its mask, and reading the rows through pulsim.with_event_limits(res) shows the event at its located time, and res.at(probe, t_e) returns the post-event value. The stored rows, step counts and solves are unchanged, and no extra solve is made. Loss, thermal and diode-state readers do not use these right limits as step starts (see Losses and thermal); only the peaks of device_loss_summary (i_peak / t_i_peak of a resistor, diode or switch) read them, as res.minmax, steady_state_stats and with_event_limits do. The located time is also in res.commutation_events[k].t_estimated. On the floating bridge below, where it differs from the exact engine, the difference is the run's own trajectory error over the current's slope (see the rtol note in Solvers), not the landing. |
31 diode benchmarks against engine='dsed' (2026-12-03), every switch column's instants matched to the nearest. res.switch_states alone → with the right limits: on 14 the worst or median offset differs by more than 20 %, e.g. full_bridge_dc worst 1.35e-7 → 6.5e-11 s at the default rtol (4.5e-8 → 6.4e-13 s at 1e-7; the row offset is the size of the step after the event), median diode_bridge_rectifier 1.5e-6 → 4.5e-10 s, three_phase_diode_rectifier 2.5e-6 → 1.3e-10 s, diode_clamp_overvoltage 2e-6 → 5e-18 s. A floating V_th = 0 bridge (325 V, 1 mH, 470 µF ‖ 100 Ω, 1 MΩ tie): D2 turn-offs located 2.5e-7 to 4.8e-7 s after the exact engine at the default rtol (1.5e-8 to 2.6e-8 s at 1e-7), equal to two or three digits to the run's current error at the exact turn-off over its slope (the row above read 62 ns there on its own circuit). Pinned by test_trbdf2_diode_turn_off_time.py. |
Read the rows through pulsim.with_event_limits(res), or the event times from res.commutation_events; tighten rtol for the trajectory's part. |
A bridge whose DC side is held by a large resistor reads the two switch forms apart under the fixed engine's split. With discontinuity_restart=True and the split, a pair (D1 with D4) that turns on together is located on whichever diode's own chord crosses first. D4's voltage is the DC side's potential, held by the resistor against the capacitor's C/h, so it is resolved only to the solve's round-off, and round-off picks D1 in one form and D4 in the other. The same round-off decides how each form counts the turn-offs in res.counters['restart_crossings_unmoved']. |
100 V / 50 Hz bridge, 1000 µF ‖ 100 Ω, Rg = 1 MΩ, dt = 10 µs: cuts 9.8e-8 s apart, the bus 1.861e-4 V apart at 23.7 ms (1.5e-11 V with the split off), back to 7e-9 V by 23.8 ms; each form is 2.2e-3 / 2.4e-3 V from a dt = 1e-7 run there. restart_crossings_unmoved 6 / 4 (conductance / branch) at 10 µs, 3 / 4 at 5 µs, 2 / 4 at 1 µs. |
Read the bus as v(p) − v(n) and judge it against the integration error (a run at dt / 2), not against the other form. |
A diode turn-on's peak current on the fixed engine without the split is first order in dt, and max(res.i(...)) is not the peak on any engine. Without enable_substep_state_correction=True a PWL diode's turn-on is not located inside the step, so the jump's right limit (i_peak of device_loss_summary) is read late on a decaying current. With the split it is the located event's right limit, and on engine='trbdf2' the diode event's stored right limit (before 2026-12-03 TR-BDF2's i_peak read the rows: 169.44 A on the tied bridge here, 175.007 A now). The stored rows sample the decay after the jump, so their maximum depends on where the event falls in the step (documented in Losses and thermal). Floating and ground-tied DC sides read the same. Pinned by test_split_floating_island_rows.py. |
Three-phase bridge (325 V star, 1 mΩ per phase, V_th = 0.7 without ON drop, 470 µF ‖ 1 kΩ, DC side floating or tied by 1 MΩ), 60 ms. Truth V_th / (2 Rs + 2/g_on) = 175 A (the exact engine: 175.000 A). i_peak at dt = 1, 0.1, 0.01 µs: default options 141.8, 170.8, 174.57 A; discontinuity_restart=True alone 153.8, 172.5, 174.76 A; rule + split 175.00–175.02 A (mode_selection='auto' too, at 1 and 0.1 µs). max(res.i) with rule + split: 131.0 / 154.8 A at 1 µs (110.8 A over 20–30 ms alone), 174.1 A at 0.1 µs, 174.8 A at 0.01 µs; the exact engine's own rows: 106.5 A. |
Read i_peak, with discontinuity_restart=True, enable_substep_state_correction=True; or a smaller dt. |
A floating diode bridge under the fixed engine's split with a b_extra_fn or device losses: a diode that turns on alone can be a step late. With discontinuity_restart=True and the split, when the event iteration turns ON one diode of a pair alone (D1 without D3) on a floating bridge's AC side, that diode's own voltage is a round-off of the island's common mode. The turn-on is located on the pair's summed voltage (in the split step, inside a restart window and in the pieces after a gate edge, for any number of floating bridges), and the cut row's common mode is set from the OFF diodes' leakage KCL (so is every solve of the split's settle on any floating island a diode bounds, before a diode reads it: a pair then crosses together on its sum; the LCP site (mode_selection='lcp') and a Newton solve do not take that step). That KCL step does not see a current injected into a node row, so a run with a b_extra_fn (even a zero one) or device losses keeps the diode's own voltage and the pair can turn on a step late. Not covered either: a gated device on the island, a diode with both ends inside it, a turn-on whose pair sum has no sign change over the step, a diode between two floating islands inside a restart window (an isolated bridge whose output side also floats; the window's locator does not join them as the split step does; untested), and a controlled source that senses an island node (the KCL shift moves the island under it). |
One bridge, 470 µF ‖ 1 kΩ, dt = 1.25e-7, a zero b_extra_fn: charge residual per D1 / D3 window −1.46e-8 C against −7.40e-10 C without it. |
A smaller dt: the late turn-on's charge error is first order in it (1.39e-8 C at 1.25e-7, 6.83e-9 C at 6.25e-8). |
| TR-BDF2 can miss PWL-diode commutations. Guide trap 13. The two measured cases below no longer reproduce (re-measured 2026-12-02); the row stays for the warnings, which still fire on other circuits (the floating-rectifier row below). | 230 V rms bridge (source between the two AC nodes, DC− grounded), 0.1 Ω, 470 µF, 1 kΩ, V_th = 0, 80-100 ms: 322.057 V and 6.375 V pp without dt, against 322.058 V and 6.376 V pp with dt=1e-6 (it ran half-wave before: 318.79 V and 12.91 V pp). Snubbed boost (24 V, 220 µH, 50 kHz, D = 0.5, 1 nF across D1, 100 µF, 30 Ω), V_out over 2-3 ms without dt: 54.878 V with V_th = 0 and 54.886 V with V_th = 0.7, against 54.886 V and 54.893 V with dt = 1e-8 (before: 24.64 V and 56.18 V). Both boost runs warn of 127 and 150 steps forced-accepted at the step floor. |
Pass dt. Rerun with dt whenever simulate warns that a diode "rode its conduction boundary", or res.i warns that one was held "in a state its commutation rule forbids". |
TR-BDF2 does not converge on a converter with no capacitance at its switch / rectifier nodes and a leakage inductance in series with a winding. Each OFF device in series with an inductance leaves a femtosecond mode, and the node between the leakage inductance and the winding carries only inductors, so its voltage is solved to round-off at the smallest steps. It shows as many forced-accept warnings and a result that does not settle as rtol tightens. Every forced accept is blamed on a current of the primary's inductor cut-set (L_leak, T1.p, T1.s), at a gate edge (h = 2e-14 s) or inside the 100 ns dead time that follows it (h = 2e-10 s, the body diodes' zero-current commutation), with the estimate 20 to 3000 times its tolerance: the femtosecond mode makes that current change within any step, so the error estimate is right and cannot be fixed there. Record: DECISIONS #21 of update-trbdf2-post-event-restart, DECISIONS 11 of update-trbdf2-error-control. |
examples/phase_shift_full_bridge.yaml, V_out averaged over 1.8-2.0 ms (2026-11-19): 23.975, 23.991 and 23.964 V at rtol 1e-5, 1e-6 and 1e-8, with 2.3 k to 6.6 k forced accepts; integrator='esdirk43' gives 23.964, 23.966 and 23.961 V. engine='exact' gives 24.0661693 V. |
Model the devices' output / junction capacitance and the winding capacitance (with both, the run settles as rtol tightens), or use engine='exact', which handles the capacitance-free circuit. |
TR-BDF2 allocates on a step whose Newton solve is retried. Accepted and rejected steps do not allocate; the retry builds the failure's error message (DECISIONS 27 of refactor-unified-transient-stepper). |
About 10 to 16 allocations per retried step, held by a test as a bound. | None needed for results; it costs time only on runs with many Newton retries. |
trbdf2 and auto refuse the saturable-primary PSFB of the mask-chatter row at t = 0. Newton does not converge on the first step even at h_min; the likely cause, not measured on this engine, is the mask chatter of that row (with a Newton device the PWL diodes are re-decided inside Newton). A linear primary runs. The crash this row recorded (exit code 139 at t_end = 2 ms) does not reproduce (re-measured 2026-12-02 at 18 values of t_end from 10 µs to 10 ms). At t_end = 10 µs the run stalled instead (killed after 3 min; by the code it ends at max_steps, about 4 min): a Newton failure at the step floor the chatter guard sets (1e-7 of the span) was retaken at that floor, the same failed solve each time; it now retakes shorter and reaches the refusal. |
Every t_end tried, without dt: SimulationAborted ("Newton failed ... with h already at h_min") within about a second. |
Pass dt (the mask-chatter row: 50 ns runs). |
A rectifier whose DC side floats starts on engine='auto' but warns. Guide trap 8. The abort this row recorded (factorize failed (numerically singular) ... node dcn) does not reproduce (re-measured 2026-12-02). |
100 V / 50 Hz bridge, 1 Ω, 100 µF, 100 Ω, DC rails not connected to ground, 80-100 ms: 77.765 V without dt, against 77.768 V on dsed and with dt = 1e-6. It warns that a diode rode its conduction boundary on 6 steps, that the zero-time probe could not factor the floating rails' common mode, and that D3 was held in a forbidden state on 3 samples by up to 0.044 V. |
Ground one DC rail, or pass dt. |
TR-BDF2 can step over the first pulse of a Python switch_fn. Before a gate bit has closed a pulse the engine samples it at 4 equal points of each step plus one walking point, at most h_max/4 apart, and more coarsely while another bit toggles with wider pulses. Once it has closed a pulse, no later pulse at least half as wide as the bit's narrower recent width (quiet: the run's narrowest pulse) is stepped over (simulate docstring, switch_fn). Pinned by test_trbdf2_post_event_restart.py. |
Tick buck, 100 ns pulses every 30 µs, then every 10 µs, 1 ms run (h_max = 1 µs): the four regular samples are 250 ns apart and phase-locked to the 10 µs period, so only the walking sample can hit a pulse before one is seen. Both device forms stepped over the 30 µs pulse; the branch form stepped over the 60 µs one too, and saw every pulse from 90 µs on. | Pass dt of at most 4x the first pulse's width (one gate bit), start that pulse on a source breakpoint or a controller tick, or declare the edges (p.NativePwm2Switch, next_edge_after). |
DSED samples a Python switch_fn without next_edge_after, so a pulse no sample hits is missed. Windows of at most dt_max/10 (1 µs by default), 4 samples each until the gate's pulse widths are learned (TR-BDF2's SampledGate), each change bisected to the edge. Before 2026-11-30 only the window end was read and a pulse inside one window was never seen. |
A 50 ns pulse every 10 µs at the default dt_max: seen only when the walking sample hits one (counted in res.stats.n_gate_undersampled and warned), every pulse after it landed (test_dsed_sampled_gate.py). 0.3 µs and 0.6 µs pulses: all landed within 1e-12 s. |
Give the callable next_edge_after(t), use a built-in schedule helper, or pass a dt of at most 4x the narrowest pulse. |
start_from_dc_op=True works only on the fixed engine. |
Without dt it raises ValueError: ... start_from_dc_op is a fixed-step entry point. |
Pass dt. |
AC analysis¶
| Limitation | Measured | Workaround |
|---|---|---|
The kernel AC sweep (run_mna_sweep with freqs= and v_in_branch_id=) linearises at the DC operating point only the kinds marked ac_sweep in the table above. It covers R, L, C, coupled and multi-winding transformers, ideal transformers, VCVS, VCCS, CCCS, CCVS, gyrators, sources (waveform current sources add no AC excitation), switches / PWL diodes held at the mask= you pass, and the Newton devices (smooth, Shockley and Lauritzen diodes, level-1 MOSFET/IGBT with the tail, saturable inductor with the atan or table law, nonlinear capacitor, PMSM at rest, external devices) through their device law at the DC point of mask. Refused with UnsupportedError naming the device: the induction machine; a Jiles-Atherton inductor (no unique incremental inductance); a nonlinear permeance on a magnetic node (no DC point yet); a PMSM held at speed or not in torque balance (no equilibrium). Switches without mask= are refused too. |
Shockley diode at 1 A behind 1 Ω: |H| = 0.0252 (it used to read 1, then was refused). |
Time domain: run_ac_sweep, pulsim.fra.run_fra, frequency_response, or run_mna_sweep(..., use_kernel=False, dt=, t_end=). |
Periodic steady state¶
| Limitation | Measured | Workaround |
|---|---|---|
| A slow mode limits the orbit's accuracy to the map's rounding over one minus the Floquet radius. | Zero-mean sine current into 1 µF ∥ 1 TΩ (Floquet radius 1 - 1e-9): v(0) = 0.15726 V against 0.159155 V. | Add the real loss; check floquet_radius. |
engine='pwl' / 'trbdf2' shooting differentiates the map by finite differences (n period runs per Jacobian, Broyden updates between them), so it costs more runs than the exact stepper and has no orbit sensitivities (sensitivities= refused). pwl needs a gate edge at t = 0 and T/dt an integer; trbdf2 needs a schedule with next_edge_after and fixes the step ceiling at dt (default T/100); nonlinear devices are refused on both. |
DCM buck from zero: 12 period runs on pwl (6 on the exact stepper). Orbit vs the engine's own 4000-period transient: 1.2e-11 (pwl) and 2.6e-9 (trbdf2) of the state scale. |
engine='exact' when the circuit is in its coverage. |
Design evaluation (pulsim.design)¶
| Limitation | Measured | Workaround |
|---|---|---|
The pss route's thread scaling needs the kernel batch: a circuit-form evaluator with declarative KPIs (Kpi.*, Kpi.formula) runs in one GIL-free call; a factory (build=), a callable KPI, gradients= or a thermal loop take the Python path (named in counters["batch"]). |
Buck Pareto, 4096 designs, load 15-19 on 10 cores: kernel batch 10022 / 21621 / 25369 evaluations/s on 1 / 4 / 8 threads; the Python thread path 3597 / 2286 / 2405. | Evaluator(circuit=..., fields=..., schedule=...) with Kpi.formula; else backend="process". |
method="transient" on the fixed-step pwl engine is first order at gate edges (the step ending at an edge takes the new mask at its end), and its KPIs with it; the energy balance closes on the engine's own trajectory, so it does not flag this. |
DCM buck at T/200: p_out 0.87 % low, T/800 0.083 % (probe openspec/changes/archive/2026-11-30-add-design-optimization-workflow/probes/pin_quadrature.py). |
method="pss" (2e-7 at T/200), or options={"discontinuity_restart": True} (3.5e-6). |
| A device whose power no loss model covers (Lauritzen diode, level-1 MOSFET/IGBT, controlled sources) refuses the efficiency. | Buck with a Lauritzen diode: efficiency would read 0.99989 without the diode's 1.36 W of 28.4 W; it is refused (feature="losses"). |
Evaluate without loads= for the other KPIs, or use the PWL diode / switch. |
method="transient" settles to the engine's own orbit. |
DCM buck on trbdf2: estimated distance 1.4e-10, true error 2.2e-5 (the engine's accuracy). A PWM voltage source on trbdf2 never settles to 1e-6 (period noise 2.7e-4). |
method="pss" (exact stepper), or a switch with a schedule instead of a PWM source. |
Event losses in the transient (set_device_losses)¶
| Limitation | Measured | Workaround |
|---|---|---|
engine="pwl" and engine="trbdf2" read loss tables inside the run. dsed / exact reads them at a fixed Tj= (switching energy at each event, conduction as the exact ∫v·i of each mode, impulsive energy booked to the switch) runs the junction temperature loop (a junction= / heat_node= node: each step's heat as the network's exact response, each event's energy as an impulse; the reconstructed current of a branch the heat flows through at once, e.g. the ambient source's, excludes that heat current), and refuses by name a deposit node an algebraic node voltage reads instantly, a V_on conduction table, time-varying sources, and integrator='bdf2' (a resume_from continues the ledgers, field 17; a fresh t_start run books the zero-start run's ledgers with event times shifted by t_start); bdf1 refuses every loss port (UnsupportedError, feature device_losses, the device). |
Conformance cell test_device_losses_cell. |
engine="pwl" or "trbdf2", or the post-hoc device_loss_summary / the periodic-orbit evaluator on the exact engine. |
| The event energy is not drawn from the circuit: the PWL switch is ideal, the table energy only heats the junction. | By design, as in PLECS and PSIM. | Model the transition (add_power_mosfet) when the electrical side must see it. |
T_j does not feed back into the device (V_f, g_on stay fixed). |
Task 4.1 (optional) not done. | Re-run with V_f / g_on at the settled T_j. |
Node domains¶
| Limitation | Measured | Workaround |
|---|---|---|
Result traces carry no unit. Circuit.unit_of(node) knows it (degC on a thermal node, rad/s / rad on a PMSM's speed / angle node); SimulationResult does not. |
— | circuit.unit_of(name) when labelling a plot. |
Only declared tags, PMSM speed/angle pins, the induction machine's speed pin and the magnetic (winding / permeance) pins set a domain. A DC machine's omega_node, the mechanical helpers and user-built mechanical networks stay electrical unless declared. |
DC machine with omega_node declared mechanical: node_domain reads mechanical, samples bit-identical to the untagged run. |
builder.node(name, "mechanical") before build(). |
Devices¶
| Limitation | Measured | Workaround |
|---|---|---|
res.i of a PWL diode first checks the diode's recorded mode against its commutation rule. The current itself is the kernel's probe reading (as are the loss and thermal summaries' currents since 2026-11-30); the check (rule violations, warnings) runs once per result and diode. |
100k-row buck, first res.i('D1'): 1.4 ms (0.73 ms the probe evaluation, 0.3 ms the check's array operations), 13 ms at 1M rows; repeat calls 0.7 ms. |
None needed; the check is cached per result. |
res.power / P_avg of a resistor, PWL switch or PWL diode is a per-step integral in Python. Each step integrates v·i along the device law from the step's start (the right limit at an event) to its end; the rows' currents are probe readings, the integral between rows is not a probe. |
A branch-form switch / diode with R_on > 0 reports the solved branch current: it moved by ≤ 3.2e-11 rel when the summaries switched to probes. |
None needed. |
External devices (add_external_device) are refused by the exact engine (dsed) and bdf1. dsed propagates each topology mode in closed form and admits no Newton device; a law known only through f, q and their Jacobians at sampled points has no closed-form propagator. No sandbox: a model library is native code. Event functions (n_events > 0) are refused: no engine locates an external zero crossing yet. A YAML external_device loads only a library listed in allow_native_code=[...]; inline code: is not accepted. |
UnsupportedError(kind='ExternalDevice') on dsed / bdf1. |
pwl, trbdf2, the DC operating point and the kernel AC sweep run it (docs/external-devices.md). |
add_nonlinear_diode is retired. Its law logistic(κ(v − V_F0))·(v − V_F0)/R_d sources power for 0 < v < V_F0. It now raises RetiredDeviceError unless called with allow_non_passive=True (YAML: allow_non_passive: true). |
Default parameters, 0.636 V forced: −1.3923 A. 20 V / 1 kHz sine clamp through 10 Ω: pwl at dt = 1 µs aborts; trbdf2 RMS 9.634 V against 10.01 V for the PWL and Shockley diodes. |
add_diode(..., V_f=) or add_shockley_diode. |
Switching helpers¶
| Limitation | Measured | Workaround |
|---|---|---|
A plain Python step_observer sees the split instant twice on a pwl resume. The fixed engine primes a resumed run at t_start with the resumed state, the label the first run's last call already had (with the state one step earlier). A MixedDomainBlockChain skips that call and resumes bit for bit (test_a_chain_without_a_rate_resumes_exactly); a bare Python function cannot tell. |
One extra call at t_start. |
Ignore a call whose t equals the last one you saw, or wrap the logic in a PythonBlock. |
Sources¶
| Limitation | Measured | Workaround |
|---|---|---|
No behavioural sources. The controlled sources (add_vcvs, add_vccs, add_cccs, add_ccvs, add_gyrator) are linear with constant gains; there is no expression source (SPICE B, PSIM math block) and no polynomial or table-driven gain. |
spice_to_builder refuses B sources. |
A nonlinear law of node voltages or branch currents: b_extra_fn or a closed loop. |
| The table source is a current source only. There is no PWL voltage source. | add_pwl_current_source exists; add_pwl_voltage_source does not. |
A voltage table: drive a 1 Ω load with the current table and use it through a VCVS (add_vcvs), or a b_extra_fn. |
| A controlled source on the fixed engine shows the engine's first-order start (guide trap 9), like any reactive circuit. | Gyrator (g = 0.01 S) with 1 µF, 1 V through 10 Ω, dt = 1e-6: 63.19 mA at 1 ms against the exact 63.21 mA, error dt/(2τ). An identical 10 mH inductor gives the same trace to 1e-9. trbdf2 is within 1.5e-8, dsed within 1e-15. |
Halve dt and compare, or run without dt. |
dsed runs all seven new kinds. |
A circuit with every controlled kind: trbdf2 and dsed agree to 1e-7 after 10 µs. Sample 0 differs by design: dsed reports the consistent algebraic state, the other engines 0 V. |
None needed. |
| Limitation | Measured | Workaround |
|---|---|---|
device_loss_summary and device_thermal_summary have no time window. Both average the whole record, start-up included. |
Bridge of trap 13 (V_th = 0.7, dt = 1e-6, 0.1 s): the conduction model (V_f0 = 0.7, r_on = 0.02) on BR__D1 reads 2.338 W over the run and 0.136 W over 80-100 ms (17.2x). |
Apply the model to res.i(name) with p.time_average(t, ..., t_from=...) (guide 3.4). |
p.time_rms reads pulsed currents low on a fixed grid. time_rms(t, y) joins the samples with straight lines and sees no edge, so each hard edge becomes a one-step ramp. Without the restart rule the fixed engine takes the step after a gate edge half under each mask (the edge sits at its midpoint), and nothing in the trace marks it. With discontinuity_restart=True the right limits are stored, but res.i / res.v hold the left limits only. Guide trap 14. |
Buck 48 V to 12 V, D = 0.25, 100 kHz, 100 µH, 47 µF, 4 Ω, switch and diode with g_on = 1e3 S. Switch RMS over 1-2 ms against the exact engine: −6.79e-3 / −3.39e-3 at dt = 1e-7 / 5e-8; with the restart rule −9.3e-4 / −4.5e-4. device_loss_summary's switch / PWL diode i_rms is within 1e-5 on both (python/tests/test_pulsed_readers.py). |
With the restart rule: v = p.with_event_limits(res) then p.time_rms(v.times, v.i(name), t_from=...) (+2.8e-8 / +6.9e-9). Without it: np.sqrt(p.time_average(t, i**2, t_from=...)) (+1.9e-6 / −1.6e-6); with the rule this trapezoid reads +5.9e-3 / +3.0e-3. |
The missed-commutation warning of res.i repeats once per call site. Python's default filter keys on the calling line. |
Six reads of one diode from four lines print it four times. | warnings.filterwarnings("once", message=".*commutation rule forbids") prints it once. It matches both the "OFF while forward-biased" and the "ON while reverse-biased" form. |
Importers¶
| Limitation | Measured | Workaround |
|---|---|---|
add_power_mosfet (default composite) with R_d = 0: res.i needs its linear capacitors declared. Its drain current is the sum of its parts at the internal drain (channel + C_ds − C_gd − body diode); a linear capacitor's committed current is recorded only on request. |
res.i("Q1") raises (UnsupportedError, also a NotImplementedError) naming record_currents=; device_loss_summary leaves it out with a warning. With R_d > 0 it is R_d's current, no declaration needed. |
simulate(..., record_currents=["Q1"]) (the device's name declares its C_gd / C_ds). |
add_power_mosfet(fq_device=True)'s loss row is v_DS · i_D of the external drain / source pins. The gate-drive energy is not in it, and at a switch event elsewhere in the circuit the device current's right limit is taken as its sample (the device itself is continuous). |
res.i("Q1") is the drain-terminal current: within 1e-9 of a 1 mΩ sense resistor on pwl; on trbdf2 2.73e-9 of the peak at a 2e-16 s sliver step (4.35e-9 before the passive level-1 law; bound 5e-9 in python/tests/test_power_mosfet.py). |
For gate loss, read res.i("Q1.rg"). |
The level-1 MOSFET's channel is smoothed at threshold and at the saturation knee. Since 2026-12-03 the law is K·[s(V_GS − V_T)² − s(V_GD − V_T)²]·(1 + λ|V_DS|) with the softplus s of sharpness kappa: passive (i·V_DS ≥ 0) and monotone in V_DS everywhere (the old blend delivered −0.29 mW near threshold). It differs from the ideal square law by up to 0.73·K/κ² at V_DS ≈ V_OV and at threshold, and sub-threshold it conducts ≈ K·(e^{κV_OV}/κ)² instead of 0. |
K = 1.43, κ = 15: at most 4.6 mA from the ideal law; 1.9 nA at V_OV = −0.5 V. | Raise kappa (the error scales as 1/κ²). |
add_power_mosfet non-goals: p-channel, live T_j inside the law (T_j is run-constant), drain inductance and package networks, avalanche, SiC/GaN effects; a table channel (channel=p.ChannelTable(...)) is taken at the T_j it was measured at (temperature coefficients refused with it). |
- | - |
A tabulated channel (p.ChannelTable) is inferred below its lowest V_GS row and fades above its top row. A datasheet curve set says nothing below its first curve. Since 2026-12-03 the current falls smoothly from the lowest row to exactly 0 at t.v_off: the square law through the two lowest rows at the last V_DS point (√I linear in V_GS), not below 0 V when the lowest row is above 0 V. An all-zero lowest row puts the cutoff at that row. Above the top row the transconductance decays over a third of the top row spacing, so the current saturates. Between nodes the law is monotone in both arguments, so it differs from the earlier interpolation (which was not). |
Rows at 4, 5, 6, 8, 10 V (the 4 V row conducts): v_off = 3.03 V, i_D(0 V, 400 V) = 0 (was −9.9 A). Square-law table (13 rows, 15 columns): largest change between nodes 0.71 A of 173 A; against the square law it samples, 2.76 A (was 2.45 A). |
Give the table a row at or below the real threshold (all zeros) to set the cutoff yourself; extend the top row to the gate drive. |
A gate transient on pwl needs a step that resolves it. |
The 400 V / 10 A double pulse with a 65 ns plateau: 7501 steps at dt = 0.2 ns; trbdf2 takes about 1200. |
engine="trbdf2". |
| VDMOS import: absent capacitances are 0 (LTspice), not ngspice's defaults (CGDMAX 2 nF, CGDMIN 20 pF, CGS 1.4 nF, CJO 0.5 nF). CJO uses the junction law without SPICE's FC linearisation. | - | Write every charge parameter in the card; charge="drop" restores the ideal-gate device. |
spice_to_builder reads a subset of SPICE. |
Q (BJT) and K (coupled inductors) raise NotImplementedError. A {...} expression takes the parameter grammar (no unit suffixes inside the braces). B sources raise ValueError. .subckt is flattened correctly. |
Build those parts with CircuitBuilder (add_transformer for coupled inductors) or a YAML netlist. |
Machines¶
| Limitation | Measured | Workaround |
|---|---|---|
Native machines: DC machine, PMSM and induction machine are solved in the matrix; the observers are not. b.add_dc_machine, b.add_pmsm_mna, b.add_induction_machine_mna are MNA-native on pwl and trbdf2; p.add_pmsm, p.add_bldc, p.add_induction_motor are explicit observers on pwl only (first order). The DC operating point holds a machine's speed and angle at omega0 / theta0 (no torque balance; a speed or angle node another device drives is refused by name); the PMSM and induction machine have no AC-sweep stamp; dsed refuses them (speed-dependent, not LTI between events). No machine model is validated against measurements: the tests check analytic limits of the equations and independent ODE integrations. |
DC motor observer, sine drive, speed error 13.6 % at dt = 100 µs (6.6 / 3.2 / 1.6 % at 50 / 25 / 12.5 µs: first order, the forward-Euler speed and the previous step's back-EMF; the same with the release options; the observers warn DeprecationWarning); add_dc_machine 0.48 % (second order). Induction machine free acceleration: 1.0e-5 of synchronous speed at 20 µs on pwl with discontinuity_restart=True. |
Use the native machines; halve dt to check an observer run. On pwl pass discontinuity_restart=True for a three-phase start (first order otherwise). |
Flux-map PMSM: DC point only at rest, no YAML form, defined on its grid plus a 10 % band. p.FluxMapDQ.from_tables fits one co-energy spline to both flux tables (reciprocal by construction) and b.add_pmsm_flux_map stamps it on pwl and trbdf2. The held-mechanics DC point refuses omega0 != 0 by name (the stator law is nonlinear in the current when spinning); yaml.emit refuses the map; the law is defined on the grid plus 10 % of each axis span (checked positive definite there; an accepted state outside is refused by name, Newton iterates pass through a smooth unmeasured extension). Reciprocity is judged from the tables' cross derivatives (central differences). The induction machine has no saturation. |
Synthetic cross-coupled map: reciprocity defect 0.19 % (reciprocal, 1 A grid), 9.1 % with λ_q × 1.1 (refused at the default 2 %). | Tabulate the whole operating range; start a flux-map machine from zero state or at rest. |
No components() entry for a composite machine as a whole (its sub-elements are listed). |
— | — |
Sensorless observers near zero speed. SlidingModeObserver and FluxMRASObserver (and their YAML chain adapters) read the back-EMF, zero at standstill: the showcases run I-f below 10 % (PMSM) / 5 % ± 1 % (IM) rated, and the PMSM I-f start needs the rotor parked at a known angle. |
SMO angle error > 18.2° at |ω| ≤ 7.5 % rated; I-f start fails from θ_e = 160°; hand-over torque steps up to 55 % rated (run_pmsm_foc_sensorless_smo.py). |
Hand over above the lost band. |
Passives¶
| Limitation | Measured | Workaround |
|---|---|---|
The π-section line overshoots an ideal step by 27 % at any section count. b.add_transmission_line(model="pi") (the default) is a lumped ladder. model="bergeron" is the exact travelling-wave line (Transmission line). |
50 Ω, 100 ns, source-matched, open end: far-end peak 1.271 V with 50 sections (exact 1.000 V). With a 20 ns edge and recommend_line_sections (55) the peak is 1.046 V. A property of the lumped ladder, not of the integration: pwl at 25 / 12.5 ps, the release options and trbdf2 all give 1.2713 V; 10 / 200 sections 1.2635 / 1.2733 V. |
model="bergeron". |
Bergeron line: the variable step does not estimate the line's interpolation error. On trbdf2 the step is capped at τ and set by the reactive states; a feature recorded at one end is landed a delay later at the other, but nothing refines a smooth wave below the step that first recorded it. esdirk43, the exact engine, dsed, bdf1 and periodic_steady_state refuse the line by name. |
A resistive circuit with a 100 ns line driven by a 3.3 MHz sine: 6.6 mV error on 0.5 V at any rtol. |
Set dt= (the step ceiling) to resolve the waves, or use pwl with τ a multiple of dt. |
rac: takes ladder cells only. YAML transmission_line is the Bergeron line (model="pi" is Python only). rac: {R_dc, L_hf, R: [...], L: [...]} is read; an (f, R_ac) curve is refused by name (fitting needs Python). nonlinear_capacitor takes law: or dc_bias: {v, C} (no residual check: dc_bias points become knots as given). An unknown key of an older type is ignored with a UserWarning naming the device and the key; keys inside its windings: / secondaries: entries are not checked. |
— | Fit with p.passives.fit_rac_ladder / fit_mlcc_dc_bias in Python and write the cells or the table. |
One ESR value (no frequency dependence), single-pair line (no coupled three-phase cable). The DC-bias capacitor is a Newton device (pwl / trbdf2 and the AC sweep, linearised at the DC point; dsed and bdf1 refuse it by name) and integrates the small-signal curve: no hysteresis, no ageing, no temperature. |
— | Read ESR at the switching frequency; fit R_ac(f) of windings with fit_rac_ladder; the MLCC curve with fit_mlcc_dc_bias. |
A capacitor's res.i is the committed companion current, which the trapezoid can ring. res.i(C) (with record_currents=[C]) is the current the integrator committed: KCL holds at every row (at a solved row 0 it reads the current that closes KCL there, from the row's solve: 20 V through 5 Ω onto 1 nF reads 4 A in both the resistor and the capacitor; before 2026-12-03 it read the start companion's 0 A; a row 0 that keeps the given vector still reads the start companion), but a capacitor whose time constant is far below dt (a small capacitor on a switching node behind an ideal switch) alternates sign step by step on pwl's trapezoid; the voltage is right. A property of the trapezoidal rule, not of the reader: it is A-stable but not L-stable, so a mode with dt ≫ τ is multiplied by ≈ −1 per step; the current still carries the exact charge of each step ((i_k + i_k+1)·h/2 = C·Δv). A trbdf2 snapshot taken on a gate edge resumes with the post-edge rate at row 0 (the stored state is the left limit). |
Buck, 2 nF on the switching node (τ = 2 ps), dt = 0.2 µs, over 1–2 ms: rms 0.274 A on pwl (the sign flips on 4900 of 5000 steps), 2.4e-7 A with discontinuity_restart=True, 1.3e-5 A with the release options (restart rule and event split); C·dv/dt (res.derived.i_smooth) 0.024 A. Over the start-up (0.1–0.3 ms) 0.69 / 0.049 / 0.011 A. The exact current is ≈ 0 between edges and a 4.8e-8 C impulse at each edge (re-measured 2026-12-02). Edge resume: row 0 −0.099 A against 0 A. |
discontinuity_restart=True or engine="trbdf2"; res.derived.i_smooth for the smoothed derivative. |
ESL resonance on the fixed step. esl in series with C resonates at 1/(2π√(esl·C)); a fixed step that does not resolve it rings at the Nyquist rate. A property of the trapezoidal rule (its amplification tends to −1 for an unresolved mode: it barely damps it), on any option set. |
10 µF, esr 5 mΩ, esl 5 nH (712 kHz, ζ 0.34) behind 10 mΩ, 1 V step, against the closed form: at dt = 1 µs the trapezoid damps the mode by 0.77 per step for the exact 0.22, error 1.4e-2 V after 10 µs (8.2e-2 peak); with the release options 7.9e-3 (4.4e-2); dt = 70 ns (period / 20) 8.6e-7 (1.8e-3); trbdf2 2.3e-8 (6.2e-5). |
dt <= 1/(20·f_res), or engine="trbdf2". |
A winding with an rac= ladder cannot be coupled. add_inductor_coupling refuses it with UnsupportedError (feature rac): coupling the main inductor alone would leave the cells' flux uncoupled. |
— | Couple windings built with esr=, or use add_transformer. |
Magnetic networks¶
| Limitation | Measured | Workaround |
|---|---|---|
No fringing and no core-shape library. add_air_gap is P = μ₀·A/l on the given area; every section takes its own area, length and permeability. Shipped parameters are synthetic. |
— | Enlarge the gap area by your fringing factor; enter the sections of the core yourself. |
Rate-dependent loss is eddy loss only, and not validated against measurement. add_magnetic_resistance gives R_m·(dΦ/dt)², add_hysteretic_permeance the Jiles-Atherton loop and add_excess_loss Bertotti's c·sign(u)·|u|^½, linear below the flux rate eps (sine loss (3/4)·(eps/Û)² below the square-root law; the exact engine refuses it by name). fit_core_loss_elements maps loss data to R_m and c; a fit is not a validation. |
— | add_hysteretic_core_inductor for one flux path; Steinmetz / iGSE after the run. |
| DC operating point: a saturable permeance on a node reached only through permeances is refused by name (its flux row needs the Newton DC refresh). Linear permeances get flux rows (per node, or per group joined by magnetic resistances and winding ports); the DC flux is solved from zero. | — | Start the transient from zero or from initial_state= (tutorial 09). |
set_initial takes a linear capacitor or permeance, an inductor or a voltage source only; any other device (a saturable permeance, a resistor) raises ValueError naming it. |
— | Write a saturable permeance's MMF into initial_state at its node. |
A saturable permeance runs on pwl and trbdf2 only; dsed, bdf1 and the AC sweep refuse it by name. |
— | Linear permeances run on every engine. |
Found by the examples audit (2026-11-13)¶
Reproducers are in probes/ (run them against the tree to re-measure);
each example affected says so where it prints the number. Fixed since
the audit (see the CHANGELOG): the pseudo_trans divergence,
run_transient_adaptive reading low, the forward-Euler induction-motor
flux and run_ac_sweep reading inside the start-up. The b_extra sign
and the moving branch_var_id_for_* index are contracts, documented in
simulate and docs/api-reference.md.
| Limitation | Measured | Workaround |
|---|---|---|
device_loss_summary on engine='trbdf2': the stored-charge kinds' step after a gate edge is the trapezoid from the pre-edge row. TR-BDF2's step after a gate edge starts at the edge under the post-edge mask; switches, PWL diodes, resistors (since 2026-12-02), Shockley diodes, the static Newton kinds (level-1 MOSFET / IGBT) and branch-form ideal elements (2026-12-03) read it from its end values. The kinds read through res.i (Lauritzen diode, an IGBT with a tail, the f/q power MOSFET, nonlinear capacitor) still take the trapezoid from the pre-edge row there. Owner: python/pulsim/losses.py. |
Buck 48 V → 12 V, the device in series with the switch, 1–2 ms, dt = 5e-8, against the fixed engine with the restart rule: Lauritzen i_rms within 5e-8 (TR-BDF2 takes tiny steps at its edges); the other stored-charge kinds not measured. Shockley i_rms −1.35e-4 → +2.3e-5 with the end values (the switch's own +2.3e-5). |
engine='pwl' with discontinuity_restart=True. |
Tightly coupled half bridge: trbdf2 aborted and a coarse fixed step read low without warning (audit report). Owner: core/include/pulsim/solver/trbdf2_transient.hpp. Probe: probes/half_bridge_tight_coupling.py. |
Audit: refactorize failed (numerically singular) at h ≈ 5e-14 s for k = 0.999 / 0.99999; at k = 0.99999 dt = 2e-8 gave 4.17 V against 4.99 V at 1e-8. NOT reproduced on this tree with the project's half bridge (3 ms, mean over 2–3 ms): k = 0.99999 reads 4.869 / 4.870 V at dt = 2e-8 / 1e-8 and trbdf2 runs (4.924 V); k = 0.999: 4.685 / 4.688 / 4.695 V. The configuration behind the audit's numbers was not recorded. |
engine='pwl'; halve dt and compare. |
Older entries¶
KNOWN_LIMITATIONS.md
at the repository root was written for 1.3. It covers the schematic
renderer, MMC, M3C, the sparse LU and LiveScope, and it was not
re-verified for this page. Its 2.0 engine section covers the
h_min stall and the mask chatter above.
The library follow-ups are tracked in
openspec/changes/add-ai-usage-guide/tasks.md, section 12.