AC-DC Full-Wave Rectifier

Model an AC to DC full-wave rectifier with four diodes and a capacitor for smoothing the output.

    
Plot the input voltage vi and the voltage vr rectified by the diodes:
When vr increases, ; it charges the capacitor and supplies current to the load. When vr starts to decrease (), the capacitor discharges through the load and the output voltage follows :
Simulate the system:
Plot the output voltage smoothened by the capacitor: