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:
In[1]:=
Click for copyable input
Out[1]=
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 :
In[2]:=
Click for copyable input
Simulate the system:
In[3]:=
Click for copyable input
Plot the output voltage smoothened by the capacitor:
In[4]:=
Click for copyable input
Out[4]=