summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/xspice/original-examples/polarity.deck
diff options
context:
space:
mode:
authorrahulp132020-03-03 05:31:58 +0530
committerrahulp132020-03-03 05:31:58 +0530
commitdfc268e0863c913a1b8726cd54eea3b40caf7c67 (patch)
tree1cd82634684da5ae86b558d44756189e080545d4 /Windows/spice/examples/xspice/original-examples/polarity.deck
parentfd62c52150c7d1f81da8060b2f5db6b94d174ccf (diff)
downloadeSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.gz
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.bz2
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.zip
upgrade ngspice to v31
Diffstat (limited to 'Windows/spice/examples/xspice/original-examples/polarity.deck')
-rw-r--r--Windows/spice/examples/xspice/original-examples/polarity.deck26
1 files changed, 26 insertions, 0 deletions
diff --git a/Windows/spice/examples/xspice/original-examples/polarity.deck b/Windows/spice/examples/xspice/original-examples/polarity.deck
new file mode 100644
index 00000000..0724d814
--- /dev/null
+++ b/Windows/spice/examples/xspice/original-examples/polarity.deck
@@ -0,0 +1,26 @@
+Polarity of voltages and currents
+*
+* This circuit contains a set of gain blocks to evaluate
+* the polarity of voltages and currents on code models
+*
+.tran 1e-5 1e-3
+*
+v1 1 0 0.0 sin(0 1 1k)
+*
+r1 1 0 1k
+*
+*
+a1 %v 1 %v 10 times10
+r10 10 0 1k
+*
+r1_2 1 2 1k
+a2 %i 2 %v 11 times10
+r11 11 0 1k
+*
+a3 1 %i 12 times10
+r12 12 0 1k
+*
+*
+.model times10 gain (gain=10)
+*
+.end