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}'
| Part | Value |
|---|---|
| Mains | 230 V rms, 50 Hz |
| Boost inductor | 3 mH |
| Switching frequency | 20 kHz |
| Link capacitor | 470 µF |
| Link voltage | 400 V |
| Load | 160 Ω |
The hand calculation
The load power and the line current follow from the link voltage:
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
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.
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 LoopandVoltage Loopto replace the example's hand-set gains with designed ones. - Let
design.autosize 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.