Example 3.7 - Complete Response of Series RLC Circuit
*
* This circuit is the same as in Example 3.5, except that a
* sinusoidal source is switched in between R1 and ground at t=0.
* The sine wave starts at 0 volts, but there is an initial
* condition voltage on the capacitance of 10 volts so there
* is an initial transient voltage vc(t) before the steady-
* state voltage vp(t) becomes the dominant response.
*
.OPT NOBIAS
V1 1 0 SIN(0 10 3E3) ; Peak volts = 10, Frequency = 3000 Hz
R1 1 2 15
L1 2 3 1M
C1 3 0 1U IC=10 ; Initial (t=0) capacitance volts = 10v.
.TRAN 15E-6 1E-3 0 7.5E-6 UIC ; Extended period of time for
; the waveform display, to make
; sure the transient dies out.
.PROBE
.PLOT TRAN V(3)
.END