* Half-wave rectifier with a real exponential diode (Is/N junction physics)
V1 in 0 PWL(0 0 1m 5 2m 0 3m 5 4m 0 5m 5 6m 0)
R1 in a 10
D1 a out Dmod
C1 out 0 10u
Rload out 0 1k
.model Dmod D(Is=1e-14 N=1.2)
.tran 6m
.end
