From ab8b219bb1dee90fc45aa5388db4c5aa4f51c5be Mon Sep 17 00:00:00 2001 From: pnenzi Date: Thu, 21 Aug 2003 12:33:45 +0000 Subject: [PATCH] Added test file for pole/zero analysis (from ngspice debian patch). --- tests/polezero/pz2.cir | 24 ++++++++++++++++++++++++ tests/polezero/pzt.cir | 24 ++++++++++++++++++++++++ tests/polezero/simplepz.cir | 7 +++++++ 3 files changed, 55 insertions(+) create mode 100644 tests/polezero/pz2.cir create mode 100644 tests/polezero/pzt.cir create mode 100644 tests/polezero/simplepz.cir diff --git a/tests/polezero/pz2.cir b/tests/polezero/pz2.cir new file mode 100644 index 000000000..8f78b199c --- /dev/null +++ b/tests/polezero/pz2.cir @@ -0,0 +1,24 @@ +test pz +iin 1 0 ac +r1 1 0 1.019524e+9Ohms +l1 1 0 1H + +gm2 2 0 1 0 1 +r2 2 0 8.296965e+08Ohms +l2 2 0 1H + +gm3 3 0 2 0 1 +r3 3 0 8.652054e+07Ohms +l3 3 0 1H + +gm4 4 0 3 0 1 +r4 4 0 1.060594e+07Ohms +l4 4 0 1H + +*gm5 5 0 4 0 1 +*r5 5 0 10Ohms +*l5 5 0 0.66mH + +.pz 1 0 4 0 cur pol +.print pz all +.end diff --git a/tests/polezero/pzt.cir b/tests/polezero/pzt.cir new file mode 100644 index 000000000..b75fa38e9 --- /dev/null +++ b/tests/polezero/pzt.cir @@ -0,0 +1,24 @@ +test pz +iin 1 0 ac +r1 1 0 1Ohms +l1 1 0 0.05H + +gm2 2 0 1 0 1 +r2 2 0 1Ohms +l2 2 0 0.05H + +gm3 3 0 2 0 1 +r3 3 0 1Ohms +l3 3 0 0.05H + +*gm4 4 0 3 0 1 +*r4 4 0 1Ohms +*l4 4 0 0.05H + +*gm5 5 0 4 0 1 +*r5 5 0 10Ohms +*l5 5 0 0.66mH + +.pz 1 0 3 0 cur pol +.print pz all +.end diff --git a/tests/polezero/simplepz.cir b/tests/polezero/simplepz.cir new file mode 100644 index 000000000..fa618a6f4 --- /dev/null +++ b/tests/polezero/simplepz.cir @@ -0,0 +1,7 @@ +test circuit #1 for pz analysis:high pass filter +r1 1 0 1k +r2 2 0 1k +c1 1 2 1.0e-12 +.pz 1 0 2 0 cur pz +.print pz all +.end