Operating modes: T1, T2… of one switching period
Converter papers explain a switching period as intervals: T1 [t0, t1] with the switch on, T2 [t1, t2] with the diode on, and so on, each with a figure of the path that conducts. Voltecx finds those intervals in a finished run, shades them on the animation's timeline and on the scope, dims what carries no current in each, and exports the table and one figure per mode for your paper. About 10 minutes.
▶ Run is a button, View › Overlays › Animate a menu path and Shift+F8 a key.
The numbers on this page are checked by the tests of simulation.modes (crates/engine-core/src/flow/modes/tests.rs).
1. Run the buck
Step 1 of 5 · about 1 minChoose File › Open Example › DC-DC › Buck converter, textbook and press F5. The buck steps 48 V down to 12 V at a fixed duty cycle D = 0.25 and 100 kHz, so one period is T = 10 µs.
▶ Run(F5) simulates the buck.
2. Show the modes
Step 2 of 5 · about 1 minPress Shift+F8 (View › Overlays › Animate; F8 in the Classic keymap). Under the time slider, the modes row shows the last whole switching period:
- The modes row: T1 is the left quarter, T2 the rest.
| Mode | Interval | Duration | Conducting |
|---|---|---|---|
| T1 | [t0, t1] | 2.5 µs (25 %) | S1 |
| T2 | [t1, t2] | 7.5 µs (75 %) | D1 |
These are the analytic times: T1 = D·T and T2 = (1 − D)·T. The period starts at a turn-on of S1, so T1 is its on time, as papers number the modes.
- Hover a band to read its interval, duration, share and the switches and diodes that conduct.
- Click a band to jump the animation to the start of that mode.
- The canvas follows: while the playback time is in T2,
S1,Vinand the input net are drawn faint andD1is lit, the freewheeling loop of the equivalent circuit. In T1 it isD1that is faint. - The layers icon at the left of the row turns the modes off and on.
3. Limit playback to one mode or a span
Step 3 of 5 · about 1 minIn the timeline's Loop list:
- One operating mode loops the mode the playback time is in, and the scope zooms to it.
- Dragged span: drag across the modes row to play only that span (for example the end of T1 and the start of T2 around the turn-off); the scope zooms to it too.
- One switching period loops the whole period.
Zoom the scope to a few periods (Scope › Zoom to 5 Cycles) to see T1 and T2 shaded over the waveforms, the current mode a little darker.
4. Export for the paper
Step 4 of 5 · about 1 minClick the save icon at the right of the modes row and pick buck-modes.csv. Voltecx writes the table and one schematic per mode beside it, buck-modes-T1.png and buck-modes-T2.png: the parts and nets that carry no current faint, and a caption such as T2 [t1, t2] 7.5 µs (75.0 %) on: D1 over the drawing.
For a LaTeX table, export from the command line or an agent: simulation.exportModes {"path": "modes.tex"} writes a tabular with $T_{1}$, $[t_{0}, t_{1}]$ and the durations in \SI{}{}; .md writes a Markdown table.
5. The flyback
Step 5 of 5 · about 1 minOpen File › Open Example › Isolated › Flyback converter and run it. At D = 0.4 and 100 kHz it stays in continuous conduction (2L/(R·T) = 0.5 is above (1 − D)² = 0.36), so there are again two modes: T1 = 4 µs with S1 on, the secondary and the snubber faint; T2 = 6 µs with D1 on and the primary faint. A converter in discontinuous conduction shows a third mode in which nothing conducts.
From an agent or a script
simulation.modes {} → T1…Tn: start, end, duration, share, conducting, path, idle
simulation.modes {"period": "10u", "t0": "3.5m"} → another window
simulation.exportModes {"path": "modes.csv"} → csv, md or tex by the extension
file.exportSchematic {"path": "fig.png", "mode": "all"} → fig-T1.png, fig-T2.png…
ui.set {"animate": {"on": true, "modes": true, "range": "mode"}}
Intervals shorter than 1 % of the window (the commutation of a switch and a diode, a step or two long) are folded into the next one; pass min to keep or fold more.

