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 rectified by the diodes, vr.
In[1]:=
X
Out[1]=
When vr increases, vo[t]=vr[t]; it charges the capacitor and supplies current to the load. When vr starts to decrease (vr'[t]<0), the capacitor discharges through the load and the output voltage followsvo'[t]=vo[t]/cr.
In[2]:=
X
Simulate the system.
In[3]:=
X
Plot the output voltage smoothened by the capacitor.