Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

7. The Design panel (beta)

Beta. The Design panel was developed on a branch that had not been merged when this release was prepared. If your build has no Design menu, it is not in your build yet. Everything else in this manual works without it. The command names and the shape of the replies may change.

Sizing a power stage often means jumping between tools: a spreadsheet for L and C, a script for the compensator, a simulation to check the ripple, another for the temperature. Then you copy the numbers into the circuit by hand and hope you copied them right.

The Design panel puts these steps in one place. Each task does the same five things:

  1. Reads your circuit. The fields start filled with the voltage, inductance, load and switching frequency already in the circuit. You change only what you want to change. A small note beside each field says where its value came from: the circuit, a default, your own input, or a calculation.
  2. Gives one main number, for example the inductance, the crossover frequency or the efficiency.
  3. Draws one plot of the result.
  4. Explains the formula in plain words, in English and Traditional Chinese: which equation, why these defaults, and the textbook it comes from.
  5. Applies and verifies. Apply writes the result into the circuit as one undo step. Then it checks the result by simulation or by an independent calculation. If the check fails, it tells you what to change next.

Open it

Choose Design from the menu bar, or press Cmd+Shift+D. The Design page opens in the editor area, as a tab beside the circuit's tab, with the tasks listed on its left. The side bar and Properties step aside while it is in front and come back with the schematic; the bottom panel keeps a compact strip of the latest result. Pick a task, check the fields, press Run to see the result and the plot, and press Apply to write it into the circuit. Fields in the Advanced fold are rarely needed. On a wide window the spec form and the result sit side by side and scroll on their own, so the form stays in view while you read the result; on a narrow one the result goes under the form and ends with Back to spec, which scrolls back up to it.

An empty field means "use the value in the circuit, or the default".

Opening the panel never shows an error. When a task needs a value the circuit does not give (no load resistor found, say), its field turns red, reads needed, and a line under the form says what to do: type the value, or select the part that sets it and press Run. A delay is counted in sample periods: 0.5 beside × sample period means half a sample period. Run is the panel's blue main button.

The tasks

Task Command What it gives you Apply writes
Converter design.converter Inductor and capacitor for buck, boost and inverting buck-boost, plus a switching-frequency hint L1 and C1 values, the duty cycle (open loop), the frequency if you gave one
LLC Tank design.llc Turns ratio, Lr, Cr and Lm of an LLC for an input range, by first-harmonic approximation. Also the gain curves at full and lightest load, fmin and fmax, and a check that the magnetising current swings each leg within the dead time The tank, the PWM frequency, the nominal input, the load and the output capacitor of the LLC in the circuit
Voltage loop design.voltageLoop A compensator for a voltage-mode loop: PI, or Type II or Type III; with mode peakCurrent, the slope compensation and Type II network of a peak-current-mode loop For a PI, the block's kp and ki. For Type II or III, a tf block in place of the PI
Current loop design.currentLoop The d and q current PIs of a drive (pole-zero cancellation), or of a grid-tie inverter (L1 + L2 of its filter, PI zero a decade below the crossover) kp and ki of both PIs
Speed loop design.speedLoop The speed PI (symmetrical optimum) kp and ki of the speed PI
Efficiency design.efficiency An efficiency curve over load, and the loss split at full load Nothing
Thermal design.thermal The junction temperature of each switch and diode, and the heat-sink thermal resistance you need The cooling it picked as a thermal network (heatsinks, pads or board copper, one ambient), when the circuit has none yet
Parts design.parts Candidate parts from the library, ranked by estimated loss, for each switch and diode; a part rated more than 2.5 times its voltage stress, or one whose gate plateau the switch's von does not clear, is proposed only when nothing else fits; the switches of a full bridge get one device Nothing
Magnetics magnetics.design An inductor or transformer from the core catalogue: the part kind, the limits (peak flux over saturation, hottest, window fill, ambient), the winding order and whether cores rank by size or loss. Core lists the cores that meet every limit, the best first, and why the others failed; Build sheet for the winder and Check in FEMM open those commands The part's inductance, resistances and core loss
Protection design.protection The current, over-voltage and under-voltage trips, the sense shunt and the soft start, from the spec (lowest and highest input, output, full load). Current sense says what it senses with and why, and what the shunt loses at each point; Make a test plan opens design.testPlan Nothing

Magnetics on the buck example, marked 1 to 2

  1. The winding order.
  2. The build sheet for the winder, under the cores that fit.

Example: size a buck converter

  1. Open the buck example, or make one with circuit.template.

  2. Open the Design panel and choose Converter.

    The Design menu, marked 1 to 2

    1. Design.
    2. Converter.
  3. Check the fields. The panel read vout and iout from the circuit. Set ripplePct to 30 if you accept more current ripple. Leave the rest.

    The Converter task, marked 1 to 4

    1. The task.
    2. A value read from the circuit.
    3. Inductor ripple set to 30.
    4. Run.
  4. Press Run. You see the inductor and capacitor, the formulas (L = (Vin - Vout) * D / (fsw * dI), and so on) and the plot.

  5. Press Apply. L1 and C1 change, and the duty cycle is set so the output equals vout. Press Cmd+Z (or Edit > Undo, which names the step) if you do not like it.

  6. Read the verification. It simulates a short run and checks that the inductor ripple and the output ripple are within 15 % of the target, and that the mean output is within 5 % of vout. If it fails, the message names the new value to try.

    After Apply, marked 1 to 3

    1. The verdict.
    2. The changes written.
    3. Each check with its measured value and target.

    With 30 % ripple the buck gets L = 60 µH and C = 15.63 µF; the measured inductor ripple is 1.50 A against a 1.73 A limit.

Reading the Parts table

The Parts task lists one row per switch and diode: the chosen device, the voltage the part saw (Stress), the device's rating (Rated), the Margin of that rating over the derated need (red when it falls short) and the estimated Loss. Hover the ? at the end of a row for what to check on the data sheet before you buy that device, such as Rds(on) at the hot junction temperature, Qg and Qgd, or a diode's reverse recovery. Click a part's name to select it on the schematic. The Auto Design result window shows the same parts, with their margin and the same ?.

Below it, Capacitors and inductors lists the catalogue part the BOM picks for each one (the same choice as File › Export › Bill of materials), how many, and the margin of the rating that limits it: voltage or ripple current for a capacitor, saturation or RMS current for an inductor (hover the margin to see which). A ceramic capacitor's count already allows for the capacitance it loses at the DC voltage. The ? lists what to check on that part's data sheet.

Reading the Efficiency and Thermal results

Efficiency sweeps the load (Sweep: from, to, points), or under Weighting runs the European or CEC load points instead and adds the weighted efficiency. Under the plot, Where … goes splits the full-load loss by part and by kind (switching, conduction, core, copper, ESR and other), and names the largest single loss. Rank switches by loss opens the Parts task; Sweep the frequency opens the parameter sweep. Efficiency at each point lists the plot's numbers, with Copy as CSV.

Efficiency on the buck example, marked 1

  1. The advice on the largest loss.

Thermal takes the ambient, the junction limit and the airflow (Still air, 1 m/s or 2 m/s: each heatsink curve is read from its data sheet at that airflow). Junction temperatures with the picked cooling gives each switch and diode its package, loss, the heatsink or board copper picked, its sink-to-air resistance, the junction temperature and the margin to the limit. Show thermal overlay tints the parts on the schematic by temperature.

Thermal on the buck example, marked 1 to 2

  1. The airflow.
  2. Each junction with its cooling.

The losses of an inverter, a motor drive or a PFC are averaged over whole line periods, taken from the AC source or from the modulator (a sine reference, or the angle of a dq current loop), so the switches of one leg read the same loss. A device that has no thermal net is simulated again with its loss tables read at the junction temperature the first run gave, until no junction moves by 1 K, so a hotter ambient raises the losses as well as the temperatures. Each device is held to its own limit: its data sheet's maximum junction temperature less 25 K (a 175 °C part to 150 °C), unless you or the design spec give tjMax. Without a heatsink of your own, the headline is the hottest junction on the cooling picked.

Modules, one shared heatsink, extrusions and fans. A power module (an EasyPACK or EconoDUAL from the device library) goes with the rest of its switches on an extruded heatsink: the lightest catalogue profile and cut length on which every junction stays within its limit, with its mass. Its footprint and the area its heat leaves through come from the module's outline drawing, and its case-to-heatsink resistance from its own data sheet. design.thermal {cooling: {shared: true}} puts every device a heatsink can take (or the devices you list) on one bar: each junction then carries the other devices' heat (mutualK) and the spreading of its own source into the base (spreadingK), so the hottest junction is higher than the same device alone on that bar. With an airflow, the fan is the lightest catalogue fan whose operating point (its data sheet's pressure against flow, meeting the pressure drop of the fins computed from the profile's drawing) reaches it, and the reply gives the flow, the pressure and the air speed. cooling.tim picks the interface: an insulating pad (the default), a grease (for a TO-247, the greased value its data sheet cites; it does not insulate) or a phase-change material. thermal.placeHeatsink {part, lengthMm, airflow} places an extrusion on the schematic, and bom.export {cooling} lists the extrusion cut to length, the fan and each interface. A heatsink part placed on the schematic is in the thermal simulation only, never in the electrical one, and bom.export lists it under its own name with its catalogue data sheet. So is a thermal pad: an rth part whose part names a catalogue interface material (a pad, a grease or a phase-change material) is listed under its own name with that material's data sheet.

Load profiles. design.thermal {profile: [{t, loadPct, fOut, vdc}]} runs an overload, a mission profile or a motor stall and gives every junction over time, its peak, when it happens, and when a junction first passes its limit. Each step lasts t seconds at loadPct % of the circuit as drawn (the variable that sets the load is loadVar, Iref by default) and at the output frequency fOut. Instead of simulating the whole profile, it maps each device's loss over the line period from a few short runs and steps the circuit's own thermal network through the profile, from the rated thermal steady state. On inverter3Thermal, 150 % for 10 s and then 200 % at 1 Hz for 2 s takes seconds and agrees with the full simulation of the same profile within 3 K. The profile is a command parameter: give it from the console, the command line or the AI assistant.

Notes for the loop tasks

  • The voltage-loop task builds a model of the converter (the duty-to-output transfer function), picks the compensator to reach the crossover frequency fc and phase margin pm you ask for (defaults: one tenth of the switching frequency, 60 degrees), and then checks it three ways: the model, the loop gain measured on your circuit by perturbation, and a 50 % load step.

  • A PI cannot cross above the LC resonance of a buck, because the phase there is near -180 degrees and a PI can only lag. With controller left at auto, the task tries a PI and, when that cannot meet the target, switches to Type III and says so. Applying a Type II or Type III result replaces the PI that drives the PWM with a tf block of the same name and connections, holding the compensator's transfer function; a tf block already there only gets new coefficients. The tf keeps the PI's output limits, which also stop its integrator from winding up on start-up or a large step, though not the PI's gains. On an open loop, with no PI to retype, the inserted network gets the same 0 to 0.9 duty clamp a PI would. One undo brings the PI back.

  • Under the Bode plot, Corner check reads the same compensator again, without redesigning it, at the design point, at the lowest and highest input and load you give under Operating range, and with L and C both 20 % low and both 20 % high (L and C tolerance in Advanced). Each row gives the damping Q, the crossover, both margins and Pass or the margin it misses. When a corner fails, Open Robust Loop opens design.robustLoop, which moves the design until every corner passes.

    The voltage loop of `buckClosedLoop`, marked 1 to 2

    1. The corner check.
    2. The marker under Run.
  • Peak current mode. design.voltageLoop {"mode": "peakCurrent"} (from a script or the assistant; the panel's form runs voltage mode) designs the loop of a buck, boost, buck-boost, SEPIC or flyback whose switch turns off when the sensed current plus a compensation ramp reaches the error amplifier's output. On a circuit with a pcmModulator it reads the clock, the ramp and the sense gain from the modulator and the network from the op-amp on its VC pin. It first sets the ramp: the sampled current loop has a double pole at half the switching frequency with Qp = 1/(π·(mc·D' − 0.5)), mc = 1 + Se/Sn (R. B. Ridley, IEEE Trans. Power Electronics 6(2), 1991; TI SLUS223H Eq. 37 to 41). The recommended ramp gives Qp = 1 at the corner with the highest duty and the lowest inductance, and every corner is listed with its Qp. A ramp that leaves a corner above 50 % duty oscillating at half the switching frequency, or with Qp above 2, gives a subharmonic warning naming the corner. Then it designs a Type II network on the current-mode plant, rounds it to E96 resistors and E12 capacitors, and reads the margin again with the op-amp's own bandwidth: the margin it predicts for pcmBuckArch is within a few degrees of the one spec.verify measures. Apply writes the network and the ramp in one undo step. Beside the slopes, the Peak current mode card lists the UCx84x parts that give this ramp and sense gain (TI SLUS223H): the sense resistor, RT and CT for the switching frequency, RRAMP and CRAMP that add the ramp from the RT/CT pin, and the RCSF and CCSF filter on CS; they are not written into the circuit. When they cannot be sized, for example at 500 kHz where RT would fall below 5 kΩ, the card says why.

  • A Type II or Type III result also lists the Op-amp network values, for the board: the input, feedback and lead resistors and the zero, pole and lead capacitors of an inverting op-amp stage.

  • How it was designed has its own English and 繁體中文 buttons, and Copy as JSON copies the whole reply. Under Run, Nothing changed since the design. means the result still fits the circuit and the fields; after you change a field it says to press Run.

  • The current-loop task takes the least phase and gain margin under Targets. On a grid-tie inverter it also shows the Output filter, read from the circuit and Why its crossover: each crossover the search tried, 10 % lower each step, with both margins, until both hold.

  • The current-loop and speed-loop tasks check the design on a small model of the plant, not on your whole drive. Test the full drive yourself.

The Loop Studio

Design › Design Steps › Loop Studio designs the voltage loop of the open converter with sliders. It uses the same model and compensators as the voltage-loop task and simulates nothing, so everything follows the sliders as you drag.

The Loop Studio on `buckClosedLoop`: Type III at 5 kHz and 60°

  • Steps: the left column walks the design in five steps: 1. Plant (a typed plant, the last AC sweep or imported response, or the circuit's own model), 2. Feedback sensor, 3. Compensator (the type, fc and the phase margin), 4. PWM modulator (the carrier) and 5. Solution map (click the map to pick fc and the margin; with the map's boundary it also gives the highest margin that works at fc). Click a step to go straight to it, or use Back and Next. The result, Apply to Circuit, Check with a Load Step and the parts stay under every step.
  • Left: pick PI, Type I (an integrator and one high-frequency pole, for slow outer loops: it only lags, so it works only below the LC resonance), Type II, Type III or Peak current (a Type II on the peak-current-mode plant, with the ramp of the circuit's current-mode modulator), then the crossover fc (a log slider up to fsw/5) and the Phase margin. Result gives the crossover, the phase margin (green when it meets the target, red when not), the gain margin, the Modulus margin (how close the loop's Nyquist locus comes to −1: it bounds the phase and gain margins at once, and is red below 0.5, a sensitivity peak of 6 dB) and fc/fsw, then the Step overshoot, Rise time (10 % to 90 %) and Settling time (to ±2 %) of the closed loop's response to a step of the reference, worked out from the same model with nothing simulated (red when the loop is unstable or does not settle). Parts lists the zeros, poles and gain, the resistors and capacitors of the op-amp network (or Kp and Ki of a PI) and, folded, the digital coefficients (Tustin, one sample per switching period). The Feedback sensor step takes the feedback sensor's Sensor gain (Vref/Vo of a divider: 0.1 asks the compensator for ten times the gain) or, for a current loop (a charger or an LED driver), its Current-sense gain in V/A (a shunt times its amplifier's gain, or a Hall sensor's sensitivity; the loop then regulates the load current, and the line under the fields gives the reference that holds it), and Sensor pole (type the error amplifier's Vref into Reference voltage, and Gain = Vref/Vo fills in the sensor gain from the plant's output voltage), and the PWM modulator step the PWM carrier's Carrier peak and Carrier valley (the modulator's gain is 1/(peak − valley)). Type a value with an SI prefix and press Enter; an empty field is unity feedback and a 1 V carrier. With a voltage sensor set, Apply to Circuit puts the sensor into the circuit with the compensator: a gain block HSENSE (H0) and a pole block HSENSE_P between the output's voltmeter and the error sum, and the reference scaled to H0·Vref so the output settles where it did (Erickson and Maksimovic, Fundamentals of Power Electronics, 3rd ed., section 9.1); Check with a Load Step steps the load on a copy with the sensor in place. A current sensor, peak and average current mode, a PFC and a dual active bridge apply for unity feedback, so with a sensor set both buttons are greyed out there, with the reason on hover; peak current mode takes no carrier. Plant model designs on a plant typed as a transfer function instead of the circuit's own model, for a converter Voltecx has no loop model of, or a plant from a paper or another tool: Numerator and Denominator take the coefficients in descending powers of s, separated by commas or spaces (48 over 10n, 41.7u, 1 is 48/(10n·s² + 41.7µ·s + 1)). Both are needed; empty goes back to the circuit's model. The typed plant holds its own sensor and modulator, so the feedback fields are greyed out while it is set, and so is Check with a Load Step, because a transfer function gives no operating point to step; Apply to Circuit still proposes the controller. Swept plant designs on a measured response instead: after an AC sweep from the control input (the PWM's modulating signal) to the output, or after File › Import › Measurement reads a network analyser's CSV, it names the last one (its points and span) and Use the last sweep as the plant designs on it, for any converter that can be swept (LLC, phase-shifted full bridge, dual active bridge, forward) or a board on the bench. The sweep stays the plant, whatever is swept or opened later, until Use the circuit's model; the switching frequency comes from the circuit's PWM. A sweep already holds the sensor and modulator it went through, so the feedback fields and the typed plant are greyed out while it is used, and so is Check with a Load Step; Apply to Circuit still proposes the controller.
  • Centre: the Bode plot of the loop, the plant (dashed) and the compensator, with the crossover marked and the phase margin drawn as a bar above −180°. After Analysis › Loop Gain, its measured points show on the same plot. Nyquist above the plot switches it to the loop in the complex plane (the dashed mirror is the negative frequencies), with the unit circle, the critical point −1 and a circle around it whose radius is the modulus margin; the locus touches that circle where it comes closest. Step response switches it to that reference step against time, drawn from the model on every slider move: the final value dotted, the ±2 % settling band dashed, the 10 % to 90 % rise shaded and the settling time a vertical line (a swept or typed plant has no step, and the view says so). Bode switches back. Analysis range under the switch sets where both plots are drawn: type the Start frequency and the Stop frequency (SI prefixes, such as 100 and 1M) and press Enter. Both are needed, lowest first; empty fields are the default, fsw/10 000 to fsw/2, which the fields show greyed. The range moves only the plots: the margins, the map and the step are worked out over their own ranges. Above fsw/2 the plot is still the averaged model, which stops holding near the switching frequency.
  • Right: Where a design works is a map of crossover (across, on a log scale) against phase margin (up, from 10° to 85°): the green area is where the type can make the design, with its highest and lowest working margins drawn as curves, the grey is out of its reach, and the accent dot is the design now. Near the LC resonance a type may hold a low margin and a high one but not those between, so the green can come in more than one piece. A cross-hair follows the pointer and the line under the map gives the crossover and margin under it and whether the type works there; click anywhere to try that design (the margin goes to the nearest whole degree). The Phase margin slider also goes from 10° to 85°, and both sliders take a typed value. Why says what sets the limit: the plant's phase at fc, the phase boost the margin needs and the most the type gives there.
  • Apply to Circuit makes the design a proposal on the schematic; accept it there (one undo step). Retyping a PI to Type II or III keeps the PI's output limits on the tf, so the loop does not wind up at start-up or on a large step; an open loop with no PI gets the same 0 to 0.9 duty clamp a PI would. Apply as Op-Amp Network (Type II or Type III on the circuit's own buck or boost model) builds the design as the board would have it instead, in one undo step with no proposal: the output's voltmeter, the reference, the error sum and the controller block give way to module XCOMP, an inverting op-amp (LM358B values, from a 5 V rail) with the output divider, the network's resistors and capacitors in E96 and E12, and the PWM comparator. Edit › Undo takes it out. It is greyed out, with the reason on hover, for the other types, a typed or swept plant and a sensor. Check with a Load Step simulates a 50 % load step on a copy of the circuit and shows the dip and the overshoot; for peak current mode it measures the loop on the copy and shows the phase margin.
  • On a dual active bridge the loop sets the phase shift, not a duty: the plant line adds the turns ratio n and the operating phase shift φ, and Peak current and Average current are greyed out. Apply to Circuit takes a PI only, and writes its Kp and Ki into the bridge's phase PI (the feed-forward phase and the limits stay); for Type I, II or III it is greyed out, with the reason on hover. Check with a Load Step is greyed out there, because the bridge's load step needs a spec: run design.loopStudio with spec. Apply as Op-Amp Network is greyed out on every isolated converter (flyback, forward, phase-shifted full bridge, dual active bridge): an op-amp beside the output cannot drive the primary's PWM across the barrier.
  • On an isolated flyback or forward, Apply as Optocoupler Network shows under it (Type II on the circuit's own model): the error crosses the barrier the way a board carries it. In one undo step with no proposal, the output's voltmeter, the reference, the error sum and the controller block give way to module XOPTO. On the secondary it holds a TL431C, with Rz and Cz from its cathode to REF and the output divider. The TL431 drives a TCET1100 optocoupler's LED through Rled from an RC-filtered output, so the LED path's direct gain does not set the loop. On the primary the phototransistor pulls COMP down against Rpull from a 5 V rail, with Cpole, and a comparator maps COMP from 1 V to 4 V onto the duty. The design follows C. Basso, Designing Control Loops for Linear and Switching Power Supplies (Artech House 2012), chapter 5. The resistors are E96 and the capacitors E12. Edit › Undo takes it out. The button is greyed out, with the reason on hover, for the other types, a typed or swept plant, a sensor and a phase-shifted bridge (whose loop Apply to Circuit writes). design.loopStudio {apply: true, network: "opto"} does the same from the CLI or the chat.
  • On a phase-shifted full bridge the model is the full-bridge buck-derived converter, a buck fed from Vin/n with the phase shift as the duty: the plant line adds the turns ratio n, and a note under it says that the duty-cycle loss of the series inductance is not in the model (sweep the circuit and design on the swept plant for it). PI, Type I, Type II and Type III design as on a buck, and Apply to Circuit writes the design into the block that moves the lagging leg's phase (a Type I, II or III replaces the PI with a tf that keeps its limits; the feed-forward duty stays). Peak current and Average current are greyed out. Check with a Load Step is greyed out, because the bridge's load step needs a spec: run design.loopStudio with check and spec. Apply as Op-Amp Network is greyed out too: the output is across the transformer's isolation barrier from the PWM.
  • On a UC3854-class PFC controller (multiplierPfcController, placed with ic.place, as in the uc3854Pfc example) the IC's own amplifiers close both loops, so the window shows them instead of the type, the sliders and the map. The line on top names the IC, the line voltage and frequency, Vout, the power, L, C and fsw. Design targets take the Current-loop crossover, Current-loop margin, Voltage-loop crossover and Voltage-loop margin; empty, the loops are read as built from the networks on CAOUT and VAOUT (P. C. Todd, Unitrode U-134). Design New Values fills them with the defaults (the current loop at fsw/10, the voltage loop at a tenth of twice the line frequency, both 45°; on a DC line the voltage crossover stays empty for you to type), and Read As Built clears them. Result gives each loop's crossover, phase margin and gain margin, the current loop's attenuation at fsw and the twice-line ripple VAOUT passes on. With targets set, it adds the Down-slope / ramp check (L. H. Dixon, Unitrode U-140: above 1 the current loop goes subharmonic) and the margins after rounding. Apply Network Values makes the rounded parts (Rcz, Ccz, Ccp on CAOUT and Rvf ∥ Cvf on VAOUT, E96 and E12) one proposal to accept on the canvas. Parts lists the parts as built and as designed. The centre draws both loops' Bode plots, with each crossover and its margin bar. design.loopStudio {currentCrossoverHz, voltageCrossoverHz, apply: true} does the same from the CLI or the chat.
  • On a UCC28180-class PFC controller (ccmPfcController, as in the ucc28180Pfc example) the window is the same, with these differences. CICOMP alone sits on ICOMP, so the current loop's crossover is set by the sense resistor and the inductor, not by CICOMP: CICOMP only places the loop's averaging pole and with it the margin (TI SLUSBQ5D equations 102 and 103). So the current-loop target is Averaging pole or Current-loop margin, one of the two: typing one clears the other. Design New Values puts the pole at the data sheet's 5 kHz (section 9.2.2) and the voltage loop at a tenth of twice the line frequency with 45°. Result adds the Averaging pole, the Amplifier linear share (the share of each switching period the current amplifier stays inside its linear range on the inductor ripple; below 100 % the loop's gain is scaled down) and the VCOMP ripple; there is no slope check. Apply Network Values proposes CICOMP and RVCOMP, CVCOMP, CVCOMP_P on VCOMP, rounded to E12 and E96. design.loopStudio {currentAveragingPoleHz, voltageCrossoverHz, apply: true} does the same from the CLI or the chat.

The run card offers Loop Studio after a run of a converter with a loop, and the assistant can open it with a type, crossover and margin. From a script, the same numbers come from design.loopStudio.

LED driver

Design › Design Steps › LED Driver (design.ledDriver) sizes a constant-current LED driver from the input, the string (ns LEDs in series, np strings, each LED's vth and rd from its data sheet's forward curve) and the LED current iled.

  • Buck (the default, the ledBuckDriver example): hysteretic current control. It gives L for a switching frequency (or the frequency of a given L), the comparator's band and, with PWM dimming (dimFreq, dimDuty), the rise and fall of each pulse, the mean current, the shortest duty that still regulates and the percent flicker against IEEE Std 1789-2015. On the example it reads the circuit, and apply writes the design in one undo step.
  • Boost (topology: "boost", the ledBoostDriver example): a fixed-frequency boost with a PI loop on the LED current. It gives the duty, the inductor current, L for an inductor ripple (ripplePct, or give l), Cout for an LED current ripple (ledRipplePct, or give cout), and the boost's averaged current-loop plant: its DC gain, right-half-plane zero and resonance. With the PI's kp and ki it finds the crossover and the phase margin (verify holds it to 45°). analogDim scales the current (and warns when the inductor leaves continuous conduction), and PWM dimming with the disconnect switch gives the mean current and the flicker. On the example it reads its inputs from the circuit; Apply writes the input, L, Cout, the reference (through Ifull and Adim), the PI gains and the PWM frequencies in one undoable step, starts the inductor, the capacitor and the PI at the operating point, and verify simulates the driver and checks the mean LED current within 5 %.

Design › Design Steps › Wireless Power Link (design.wpt) sizes an inductive wireless power link at its operating frequency, by first-harmonic analysis. Give the coils (l1, l2), their coupling k, the frequency f0, the load (rload, or vout with pout) and either the bridge's DC input vdc or the power to deliver pout; on the wptSeriesSeries example the coils, k, f0, the load and vdc come from the circuit. Choose topology ss (a series capacitor on each coil), sp (the secondary's capacitor across the load) or lcc (double-sided LCC: on each side a series inductor Lf, given as lf1 and lf2, a capacitor Cf across the network and a capacitor in series with the coil; on the wptDoubleLcc example they come from the circuit). It gives:

  • the compensating capacitors C1 and C2: SS tunes each coil alone; SP tunes the primary for this k; LCC tunes each Lf with its Cf and the rest of the coil, L − Lf, with C, none depending on k, so the primary coil carries V1/(ω·Lf1) and the rectifier is fed M·V1/(ω·Lf1·Lf2) whatever the load;
  • the coil currents and the peak voltage across each capacitor, the bridge voltage that delivers pout (or the power at vdc), and the output voltage;
  • with both coils' quality factors q1 and q2, the coils' resistance ω·L/Q, the link efficiency, the figure of merit U = k·√(Q1·Q2), the highest efficiency any load reaches, and the load that reaches it;
  • a plot of efficiency and output power against k, with the capacitors and the bridge voltage held: what a misaligned pad does. An SS link delivers more power as k falls.

For a link in the circuit, series-series (one capacitor in series with each coil, as in wptSeriesSeries), series-parallel (one in series with the primary and one across the secondary, as in wptSeriesParallel) or double-sided LCC (as in wptDoubleLcc), the topology read from the circuit, Apply (apply: true) writes the capacitors (for LCC also Cf1 and Cf2), the bridge supply and, when you give f0, the PWM frequency in one undoable step. Verification then simulates the circuit with the design written in, and checks the primary and secondary currents (peak of the fundamental) and the power into the load against the design, within 10 %, the accuracy of a first-harmonic analysis. An LCC link's simulated power sits about 8 % below the design: the rectifier's square voltage drives a third harmonic through Lf2 that a first-harmonic analysis leaves out. The SP primary capacitor is tuned for the present k, so run the design again after changing k. Without q1 and q2 the coils are lossless and a note says so. Take L, k and Q from the coils' measurement or data sheet.

Design › Design Steps › Pad Coupling (design.wptCoupling) gives the coupling of two air-cored circular pads. Describe each pad as a flat spiral: its outer radius r1Out, inner radius r1In and turns n1 (pad 2, r2Out, r2In, n2, is the same as pad 1 unless you give it), the radius of the wire or litz bundle wire, the distance between the pads gap, and the lateral misalignment offset. It gives the two self-inductances, the mutual inductance and k at that offset, k with the pads aligned, and the offset where the coupling falls to zero and changes sign, with a plot of k and M against the offset. The turns are taken as concentric rings; the rings' mutual inductances come from Maxwell's formula for coaxial rings and, for misaligned pads, from integrating one ring's field around the other. Apply writes l1, l2 and k into the circuit's coupled inductor in one undoable step, so design.wpt can size the compensation at that coupling. Without more, the pads have no ferrite or shield. Give ferrite (a catalogue material such as N87, or a relative permeability, and the discs' thickness; their radius and their distance behind the wire are optional) to put a flat ferrite disc behind each pad: the aligned pads' inductances and k then come from an axisymmetric field solve, beside the air-cored values. The check solves the same pads without ferrite and compares them with the ring formulas, so you see what the mesh costs. Give the pads' peak currents (i1, i2, and phase, how far the secondary current leads the primary) to see each disc's flux density at those currents, checked against the material's saturation flux density at temperature (25 °C unless given; for a relative permeability, give bSat from the data sheet). Without a phase the check takes the worst phase. Give the pads' current frequency as well to get each disc's core loss from the catalogue material's Steinmetz fit: each part of the disc loses as a sinusoidal flux of its peak flux density. Where the pads' currents are out of phase the flux also turns, and that extra loss is not included; a frequency outside the fit's range is reported as an extrapolation, and a relative permeability gets no loss. The ferrite is linear at its initial permeability, and its loss does not change the field, so a disc past saturation means the inductances are not valid either; with an offset, the ferrite's share of L1, L2 and M at that offset comes from 3D field solves (about a minute), scaled so that aligned it matches the axisymmetric solve, and is added to the air-cored ring values; the discs' flux density and loss stay the aligned pads', and the misalignment sweep stays air-cored. The check shows how far that scale is from 1.

From a script or an assistant

The ten commands also run from powercraft-cli and the assistant, with the same replies:

powercraft-cli run --in buck.voltecx \
  --cmd design.converter --params '{"vout": 12, "iout": 5, "ripplePct": 30}'

Each reply has the same shape: inputs (with the source of each value), result, plot, formula (English and Traditional Chinese), apply, applied and verify. A mistyped key or an out-of-range value returns an error, and the circuit is never changed silently.

The task-by-task guide (formulas, defaults and verification rules) is docs/workflows/design.md, which arrives with the Design panel.