summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/xspice/original-examples/initial_conditions.deck
blob: f2ca5d9ff33549d9c6dd6c55ea46202810ef45b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Capacitor and inductor with natural initial conditions
*
* This circuit contains a capacitor and an inductor with
* initial conditions on them.  Each of the components
* has a parallel resistor so that an exponential decay
* of the initial condition occurs with a time constant of
* 1 second.
*
.tran 0.1 5
*
a1 1 0 cap
.model cap capacitor (c=1000uf ic=1)
r1 1 0 1k
*
a2 2 0 ind
.model ind inductor (l=1H ic=1)
r2 2 0 1.0
*
.end