Someone can explain why the DC side is not working properly? Both 100ohm resistor is just there to simulate a load. The 1Mohm resistor is the bleeding resistor for the capacitor. The SPDT switch is the AC DC selector. The transformer is there to simulate the auto transformer (Variac).