This applet simulates a half wave rectification circuit.
An AC source is passed through a diode and then used as the power supply for an external load (represented by the resistor). A capacitor across the load helps smooth the ripples in the output.
The display shows the source and load voltages as a function of time. The capacitance and load resistance can be varied while the circuit can be operated with or without diode and/or capacitor.