repo.or.cz
/
gnucap-felix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
some interactive testing
[gnucap-felix.git]
/
tests
/
d_ccvs.2.ckt
blob
35e0215d56654f4a941cdbe33328ab1bd68ca69e
1
# cccs test
2
i1 1 0 dc 11 ac 11
3
ri1 1 0 10
4
e1 2 0 1 0 8
5
re1 2 0 10
6
# sense the voltage source (0 volts)
7
i2 3 0 dc 11 ac 11
8
ri2 4 0 10
9
v2 3 4 0
10
h2 5 0 v2 8
11
rh2 5 0 10
12
# sense the resistor
13
i3 6 0 dc 11 ac 11
14
ri3 7 0 10
15
v3 6 7 0
16
h3 8 0 ri3 8
17
rh3 8 0 10
18
# sense the current source
19
i4 9 0 dc 11 ac 11
20
ri4 10 0 10
21
v4 9 10 0
22
h4 11 0 i4 8
23
rh4 11 0 10
24
# sense a conductance
25
i5 12 0 dc 11 ac 11
26
yi5 13 0 10
27
v5 12 13 0
28
h5 14 0 yi5 8
29
rh5 14 0 10
30
# sense a vccs
31
v6 15 0 dc 1.1 ac 1.1
32
g6 16 0 15 0 10
33
yi6 17 0 10
34
v6 16 17 0
35
h6 18 0 yi6 8
36
rh6 18 0 10
37
# sense a live voltage source
38
v7 19 0 dc 11 ac 11
39
rv7 19 0 10
40
h7 20 0 v7 8
41
rh7 20 0 10
42
# sense the resistor in series
43
v8 21 0 dc 11 ac 11
44
rv8 21 0 10
45
h8 22 0 rv8 8
46
rh8 22 0 10
47
48
49
.opt out 170
50
.print op v(nodes) i(v7) i(v8)
51
.op
52
.print tran v(nodes) i(v7) i(v8)
53
.tran 0 .1 .05
54
.print ac v(nodes) i(v7) i(v8)
55
.ac 1k
56
.end