summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/inductive-systems/positive-definite-2.cir
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/inductive-systems/positive-definite-2.cir
parentfd62c52150c7d1f81da8060b2f5db6b94d174ccf (diff)
downloadeSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.gz
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.bz2
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.zip
upgrade ngspice to v31
Diffstat (limited to 'Windows/spice/examples/inductive-systems/positive-definite-2.cir')
-rw-r--r--Windows/spice/examples/inductive-systems/positive-definite-2.cir31
1 files changed, 31 insertions, 0 deletions
diff --git a/Windows/spice/examples/inductive-systems/positive-definite-2.cir b/Windows/spice/examples/inductive-systems/positive-definite-2.cir
new file mode 100644
index 00000000..82bb9272
--- /dev/null
+++ b/Windows/spice/examples/inductive-systems/positive-definite-2.cir
@@ -0,0 +1,31 @@
+* indentify non-viable inductive systems (3xx case)
+
+* (compile (concat "../../../w32/src/ngspice " buffer-file-name) t)
+* (compile (concat "valgrind --track-origins=yes --leak-check=full --show-reachable=yes ../../../w32/src/ngspice " buffer-file-name) t)
+
+.subckt ind3 a b c L11=10u L22=11u L33=10u K12=0 K13=0 K23=0
+R1 a n1 1k
+R2 b n2 1k
+R4 c n3 1k
+L1 n1 0 {L11}
+L2 n2 0 {L22}
+L3 n3 0 {L33}
+K12 L1 L2 {K12}
+K13 L1 L3 {K13}
+K23 L2 L3 {K23}
+.ends
+
+Xgood1 a b c ind3
+Xgood2 a b c ind3 K12=0.96 K23=0.99 K13=0.98
+Xgood3 a b c ind3 K12=0.96 K23=0.99 K13=0.9898988607
+Xbad4 a b c ind3 K12=0.96 K23=0.99 K13=0.9898988608
+Xborder5 a b c ind3 K12=1 K23=1 K13=1
+Xbad6 a b c ind3 K12=1.01 K23=1 K13=1
+
+.control
+op
+remcirc
+quit 0
+.endc
+
+.end