This example shows how to control the rectified voltage in a totem-pole power factor correction (PFC) circuit. MOSFETs Q1 and Q2 form the 50 kHz fast switching leg. MOSFETs Q3 and Q4 form the line frequency slow switching leg. The control subsystem uses a PI-based cascade control structure. The Scopes subsystem contains scopes that allow you to see the simulation results.
Simulation Results from Simscape Logging
The plot below shows the requested and measured rectified voltage for the test and the inductor current.