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

Run this example

The browser version is coming soon. Until then, open this example in the desktop app. Download Voltecx

The pfcBoost example takes 230 V, 50 Hz mains through a diode bridge and a boost stage into a 470 µF DC link at 400 V, and a 160 Ω load. By hand the load takes 1 kW, the line current is 4.35 A rms and the link carries a 16.9 V ripple at 100 Hz. The run takes 1.007 kW at a power factor of 0.994, with a line current of 4.40 A rms and 6.1 % THD, and the link ripples 17.3 V. Doubling the load makes the link dip to 343 V and recover, and the power factor stays at 0.996.

Open it

In the app: File › Open Example › Power quality › Boost PFC, then press F5. From the command line:

powercraft-cli run --cmd file.openExample --params '{"name": "pfcBoost"}' \
  --cmd simulation.run \
  --cmd scope.power --params '{"v": "vac", "i": "iac", "t0": 0.16, "t1": 0.24}'

The boost PFC example: mains source, diode bridge, boost inductor L1, switch S1, diode D5, link capacitor C1 and load R1, with the voltage loop, multiplier, current loop and PWM above the power stage joined by net labels.

Part Value
Mains 230 V rms, 50 Hz
Boost inductor L1L_1 3 mH
Switching frequency 20 kHz
Link capacitor C1C_1 470 µF
Link voltage VoV_o 400 V
Load R1R_1 160 Ω

The hand calculation

The load power and the line current follow from the link voltage:

P=Vo2R=4002160=1 kW,Irms=PVrms=1000230=4.35 AP = \frac{V_o^2}{R} = \frac{400^2}{160} = 1\ \text{kW}, \qquad I_{rms} = \frac{P}{V_{rms}} = \frac{1000}{230} = 4.35\ \text{A}

The power drawn from a sine is not constant: it pulses at twice the line frequency, and the link capacitor absorbs the pulse. The ripple on the link is

ΔV=P2πfline C Vo=10002π×50×470 μF×400=16.9 V\Delta V = \frac{P}{2\pi f_{line}\,C\,V_o} = \frac{1000}{2\pi \times 50 \times 470\ \mu\text{F} \times 400} = 16.9\ \text{V}

peak to peak. This ripple is why the voltage loop is slow (it crosses over near 10 Hz): a faster loop would pass the 100 Hz ripple into the current reference and distort the line current.

The run

Measure over four whole line cycles after the start-up, 160 ms to 240 ms.

Quantity Hand Run
Line power 1 kW 1.007 kW
Line current (rms) 4.35 A 4.40 A
Power factor 1 0.994
Current THD — 6.1 %
Mean DC link 400 V 398 V
Link ripple (peak to peak) 16.9 V 17.3 V

The run takes a little more than the load's 1 kW because of the bridge, switch and diode losses, and the link sits 2 V under its set point. A bridge with a capacitor and no correction typically has a power factor of 0.5 to 0.7.

Two line cycles at the end of the start-up: the line voltage vac, the line current iac in phase with it and the DC link vdc with its 100 Hz ripple.

Double the load

At the end of the 0.25 s run, halve the load resistor and continue for another 0.25 s:

powercraft-cli run --cmd simulation.tune --params '{"component": "R1", "key": "r", "value": 80}' \
  --cmd simulation.continue --params '{"duration": 0.25}'

The load is now 2 kW. The slow voltage loop needs time to raise the current demand, so the capacitor supplies the difference and the link falls to 343.2 V, 0.022 s after the step. Over 0.4 s to 0.5 s the converter takes 1.984 kW at a power factor of 0.996, with a peak line current of 12.9 A.

Try next

  • Run Design › Design Steps › Current Loop and Voltage Loop to replace the example's hand-set gains with designed ones.
  • Let design.auto size the converter from a mains spec (vinAc, pout, pf, thd) and compare the power factor with this page.
  • See the boost worked example for the DC-DC stage on its own.

Every number on this page comes from a run that a test repeats (auto::tests_worked_examples), so the page changes when the simulator does.