Diode voltage doubler, combination diode-capacitor bridge. *This simulates the circuit of Fig. 4.66, 2nd edition, * Elements of Power Electronics by P. Krein, 2015. .opt acct nomod nopage reltol=.001 itl5=0 .width out=80 .temp 30 .tran 10us 30ms 0 20us uic * vin 101 0 sin(0 170 60 0) ;Input sinusoid. d1 101 1 dio ;Diodes d2 2 101 dio c1 1 0 1000uf ic=0v ;Capacitors in the bridge. c2 2 0 1000uf ic=0v *The output is v(1,2). rout 1 2 1000 ;Resistive load .model dio D(Is=10p Rs=0.01) ;Near-ideal diode .probe .end