
Voltecx 0.9.0 comes with 61 example circuits, and the next release adds nine more. Each one is a working circuit with a known answer: open it, press F5, change a value and run it again. The examples are built in code rather than read from files, so they also open in the browser version. Each one has a category, a one-line description in English and Traditional Chinese, and the signals the scope shows when it opens.
Three ways in
- File › Open Example has one submenu per category. Point at an example to read what it shows.
- Help › Examples (
help.examples) opens a window that lists every example under its category, with its description and an Open button. - In the next release: the Start page, shown while no circuit is open, has four example cards, each with the waveform of its real run: the synchronous buck, the boost, the flyback and the three-phase inverter. All N examples opens Help › Examples.
Each example opens in a new tab with the schematic fitted to the window and the scope set to that example's main signals. From a command it is file.openExample with the example's name, for example {"name": "buckSync"}. From the AI assistant or the command line the same command runs by id.
What is in the library
The examples are filed under ten categories. A few from each, including the nine of the next release listed below:
- Basics: RC, RL and RLC step responses; relaxation, 555, Wien-bridge and Colpitts oscillators; a double-pulse test.
- DC-DC: open- and closed-loop buck and boost, a synchronous buck, a GaN synchronous buck at 500 kHz, a buck with a thermal model, a SEPIC, a Ćuk converter, a Zeta converter, an inverting buck-boost, LED drivers (a hysteretic buck with PWM dimming, a boost with analog and PWM dimming), a CC-CV battery charger, and a USB Power Delivery source and sink (a fixed 9 V contract, then PPS in current limit charging a battery).
- Isolated: flybacks (open loop, closed loop, and one whose loop closes through a TL431 and an optocoupler), a forward converter with a reset winding, an active-clamp forward, a quasi-resonant flyback, an LLC half bridge, a CLLC, a dual active bridge and a phase-shifted full bridge.
- Rectifiers: half-wave, three-phase diode bridge, a phase-controlled thyristor bridge (firing angle, commutation overlap and inversion) and a Vienna rectifier.
- AC control: a TRIAC lamp dimmer and a TRIAC heater controller.
- Inverters: half bridge, three-phase inverters (one with dq current control and a thermal model), a single-phase full bridge with sine PWM, three-level NPC and T-type inverters, and an MMC leg.
- Motor drives: induction motor with V/f, field-oriented and direct torque control; PM synchronous motor with field-oriented and sensorless control; a DC motor on a buck chopper; a six-step brushless DC drive; and a switched reluctance drive.
- Grid: a grid-tie inverter with a PLL and an LCL filter, a three-phase active front end, a STATCOM and a point-to-point HVDC link with MMC stations.
- Renewable energy: a solar charger with MPPT, a fuel-cell load step, a quasi-Z-source PV inverter that boosts by shoot-through, and wind turbines with a PM generator and a doubly fed generator.
- Power quality: boost, interleaved and totem-pole bridgeless PFC, a shunt active power filter, a conducted-EMI bench, 24 V input protection, a surge into a varistor, a flyback RCD and TVS clamp, and a constant-power load behind an input filter.
Recently added
In the next release. New examples:
sepicturns 12 V into 12 V at a duty cycle of 0.5, with the switch node swinging to 24 V.cukturns 12 V into −12 V, with smooth current at both ends.zetaturns 12 V into 12 V at a duty cycle of 0.5 without inverting, with a smooth output current through its second inductor.invertingBuckBoostturns 12 V into −12 V through one inductor that carries the input and output current together.fourSwitchBuckBooststeps 9–16 V up or down to the USB Power Delivery levels 5, 9, 15 or 20 V at 3 A with one inductor between a buck and a boost leg, and rides an input step from 9 V to 16 V from the boost region into the buck region.coupledBoostis a two-phase interleaved boost (24 V to 200 V, 300 W) on one inverse-coupled inductor pair: at a duty of 0.5 the input ripple nearly cancels, and the coupling cuts each phase's ripple to about a quarter at the same leakage inductance.forwardconverts 48 V to 12 V at 5 A with a reset winding, so the drain rises to 96 V.activeClampForwardis the same converter with an active clamp, and its magnetising current swings evenly about zero.pushPullconverts 48 V to 12 V at 5 A with two switches on a centre-tapped transformer; each drain holds 96 V and an RCD clamp catches the leakage spike at about 120 V.halfBridgeDcdcconverts 380 V to 12 V at 20 A with a split-capacitor half bridge and a current-doubler rectifier whose two inductors cancel much of each other's ripple.passiveBalancing4sis a four-cell lithium-ion pack whose cells start 10 % of charge apart; bleed resistors switched by a balancer module bring every cell down to the lowest one.activeBalancing4sbalances the same pack with three switched flying capacitors: charge moves between neighbouring cells and they meet at the mean charge, with almost no loss.inductorBalancing4sbalances it with three buck-boost stages, one inductor between each pair of neighbouring cells: the same meeting at the mean charge, with charge carried by inductor current instead of capacitors.packThermal4sruns four LiFePO4 cells at 10 A, each cell's losses warming a measured two-node model of its core and can; after 10 minutes the core is 1.9 K hotter than a sensor on the can would read.agedPack4sdischarges four 75 Ah cells aged 300 days at 1 C; the one that aged 10 K hotter has 13.5 % less capacity, empties first and strands the charge left in the other three.qrFlyback(325 V to 12 V at 2 A) turns on in the first valley of the drain ringing, at about 226 V instead of 426 V.activeClampFlyback(375 V to 20 V at 5 A) recycles the leakage energy through a clamp switch and turns its main switch on at zero voltage; the drain peaks near 504 V.cllcmoves 2 kW between two 400 V sides through two SiC full bridges switching together at the resonant frequency.threePortDabjoins a 400 V source, a 200 V battery and a 100 V load through three full bridges on one transformer core; two phase shifts split 6.3 kW between charging the battery and feeding the load, and a negative battery phase shift discharges it.threePortDabClosedLoopcloses a battery current loop and a load voltage loop on those two phase shifts: the battery goes from charging to discharging at 1 kW while the 2 kW load stays at 100 V.threePhaseDabmoves 10.4 kW from 800 V to 400 V through two three-phase bridges on a wye-wye transformer at a 30 degree phase shift; a negative shift sends it back.solidStateTransformerturns the 230 V mains into an isolated, regulated 200 V at 1 kW: a power-factor corrected 400 V link, then a 20 kHz dual active bridge whose output loop sets the phase shift.solidStateTransformerAcgoes on to AC: an inverter on the isolated bus makes 115 V, 50 Hz at 1 kW, so the mains reaches the load through the 20 kHz link.wptSeriesSeriesis a wireless power transfer link at 85 kHz: two loosely coupled coils (k = 0.2), each tuned by a series capacitor, carry 100 W across an air gap, and the output current stays the same when the load changes; a parameter sweep onkshows the link efficiency falling from about 96 % at k = 0.2 to 93 % at k = 0.1, as the analytic curve says.wptSeriesParalleltunes the secondary coil with a parallel capacitor instead: the output becomes a voltage source, about 65 V whatever the load, and the primary capacitor is tuned toL1·(1 − k²)so the bridge still sees a pure resistance; its efficiency againstkfollows the analytic curve too.wptRobotDockcharges a mobile robot's 13S4P lithium-ion pack over a series-series link at 85 kHz with no converter on the robot: the link itself holds the charge current at 4.7 A whatever the pack's voltage, and shows why a dock must back off when the robot parks off its pad, since the current grows as the coupling falls.wptEvChargercharges an electric car's 96S20P lithium-ion pack at 3.3 kW, the WPT1 class of SAE J2954, over a double-sided LCC link at 85 kHz: the ground pad's current does not depend on the car, and misalignment lowers the charge current instead of raising it.electrolyzerInterleavedBuckfeeds a 200-cell electrolyzer stack 1.27 kA from a 1 kV link through four buck phases a quarter period apart, each on its own average-current loop so they share the current evenly; the summed ripple is a quarter of one phase's, as the interleaving formula says.electrolyzerAfeis the whole active-front-end electrolyzer supply: an IGBT bridge draws 0.51 MW from a 690 V grid at unity power factor into a 1.1 kV link, four interleaved buck phases feed the stack 1.27 kA, and the line current passes even the strictest row of the IEEE 519 harmonic limits.tTypeInverteris a three-level T-type inverter on a split 800 V link that makes 624 V peak line to line into an 8 kW load.fourLegInverterkeeps three 230 V phases balanced on a 100/50/20 % load with a fourth leg driving the neutral by carrier-based 3D space-vector modulation, and turns into a three-leg inverter with a floating or split-capacitor neutral by one variable for comparison.chbInverteris a five-level cascaded H-bridge inverter: two cells on isolated 400 V sources with phase-shifted carriers make 720 V peak, with the first harmonics at four times the 2.5 kHz switching frequency.matrixConverterturns a 400 V, 50 Hz supply directly into 30 Hz at half the voltage with nine bidirectional switches and Venturini's modulation, with sine input currents behind an LC filter and never two switches of an output on at once.switchedCapsteps 48 V down to 12 V at about 200 W with no inductor: three flying capacitors and ten switches on two clock phases, with an output resistance that follows the Seeman-Sanders estimate as the capacitors or the clock change.threeLevelBoostboosts a 300 V PV string to a split 800 V link with two switches that each block only 400 V, an inductor ripple at twice the switching frequency, and a loop that keeps the two link capacitors equal when their loads differ.totemPolePfcis a 1 kW totem-pole bridgeless PFC with a GaN half bridge at 65 kHz.bridgelessPfcis a 400 W dual-boost bridgeless PFC: two boost inductors, two switches on one gate and two slow diodes.srmDrivedrives a three-phase 6/4 switched reluctance machine from 48 V with current chopping at 8 A.dcMotor4qis a four-quadrant dc drive: a maxon RE 40 on a 24 V H-bridge reverses between ±400 rad/s with cascaded speed and current loops, regenerates into a link behind a blocking diode, and a brake chopper clamps the bus below 28 V.zvtBoostis a zero-voltage-transition boost, 200 V to 400 V at 500 W and 200 kHz: an auxiliary switch and a resonant inductor ring the switch node to zero before the main switch turns on, andzvt = 0runs the same circuit hard-switched for comparison.lccHvdc12Pulseis a twelve-pulse line-commutated HVDC link scaled down to 400 V grids: the rectifier steps its DC current from 8 A to 10 A by firing angle while the inverter holds an 18° extinction angle, and the supply current keeps the 11th and 13th harmonics but not the 5th and 7th.svcTcris a static VAR compensator on a weak 11 kV bus: a delta thyristor-controlled reactor and a tuned capacitor bank, whose firing angle a PI moves to hold the bus at 11 kV when an inductive load switches in.amrRobotSystemruns a whole mobile robot's power system over a 40 s pick-and-return task with a turn each way: a 13S pack behind its BMS's charge and discharge FETs, two wheel drives, a lift and the 24, 12 and 5 V rails, all locking out when the bus sags, with the energy of each consumer, each rail's efficiency and the runtime left, checked against the drive and lift equations.amrRail12Ganswitches that robot's 12 V rail as a 500 kHz GaN buck next to its averaged model, so you can see what an average leaves out: the inductor ripple and the 0.14 W the switches lose conducting in reverse through each dead time.amrRail24Gandoes the same for the robot's 24 V actuator rail at 30 W: at half the current, the dead-time loss the average leaves out is a larger share of what the rail really loses.amrRail5Ganswitches the robot's 12 V to 5 V sensor rail at 8 W: at 5 V the GaN switch's reverse drop through the dead time costs 1.3 % of the power, more than on any other rail.amrWheelGandrives the robot's wheel motor from a 40 kHz GaN bridge under field-oriented control, next to its averaged model: the motor's own copper loss is so much larger than the bridge's that the two agree within 0.04 %.robotJointServois a robot-joint servo: a 48 V GaN inverter at 40 kHz, an encoder and cascaded position, speed and current loops through a 50:1 gear, with each loop bandwidth checked against its design.regenBrakebrakes an AMR wheel into a 48 V bus whose battery cannot take charge: a brake chopper holds the DC link between 56 and 58 V, and the energy balance is checked.evDriveCycledrives a mid-size electric car over the FTP-75 urban schedule from a 348 V pack: wheel energy out and back, how much braking the battery management lets back into the pack and how much the friction brakes take, the 12 V DC-DC and battery with their loads, kWh/100 km and state of charge, checked against the road-load equation over the EPA trace.
All values in the examples are illustrative: they are chosen to show the circuit working, not to match a product.
A small demo for each part
component.example opens the small circuit that shows one library part at work, as a new laid-out circuit. In the app it is the Open example button of the component guide (Help › Component Guide, or F1 on a selected part). file.openExample takes the same demos as demo:<kind>, for example demo:mosfet.
Lessons and tutorials
The Lessons view of the side bar walks you through a task one step at a time: your first buck in 10 minutes, importing a file from another simulator, closing the loop with Voltage Loop, designing a converter from a spec, debugging with a scope CSV, and drawing your own symbol. Each step is one short sentence with the values it uses. Its button does the step for you (it places the parts, runs the simulation, or opens Auto Design filled in with the spec), Show me outlines the control it uses, and the lesson watches for the result: "Waiting for: …" turns into a green check, and Next waits for it. The same steps are commands: lesson.list lists the lessons, lesson.get returns one with its steps, and lesson.check checks the active circuit against a step, so a script or an agent can follow a lesson too.
The tutorials go further, in 17 chapters from the first buck to PFC, LLC, grid-tie and MMC. Each picture is a screenshot of the current build, and a test runs every tutorial's steps and checks its numbers.
From a script
Open an example, run it and list the lessons:
powercraft-cli run \
--cmd file.openExample --params '{"name":"totemPolePfc"}' \
--cmd simulation.run --params '{"solver":"fast"}' \
--cmd lesson.list --params '{}'
powercraft-cli run --cmd component.example --params '{"slug":"mosfet"}' opens the MOSFET demo the same way.
The manual's examples chapter describes every example with things to try. See also simulation and models and parts.