summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/xspice/original-examples/analog_models2_ac.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/analog_models2_ac.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/analog_models2_ac.deck')
-rw-r--r--Windows/spice/examples/xspice/original-examples/analog_models2_ac.deck66
1 files changed, 66 insertions, 0 deletions
diff --git a/Windows/spice/examples/xspice/original-examples/analog_models2_ac.deck b/Windows/spice/examples/xspice/original-examples/analog_models2_ac.deck
new file mode 100644
index 00000000..0b450c80
--- /dev/null
+++ b/Windows/spice/examples/xspice/original-examples/analog_models2_ac.deck
@@ -0,0 +1,66 @@
+Code Model Test - Swept DC: int, d_dt, s_xfer, core, lcouple
+*
+*
+*** analysis type ***
+.ac dec 10 10 1000
+*
+*
+*** input sources ***
+*
+v1 1 0 1.0 AC 1.0 0.0
+*
+*
+*** integrator block ***
+a1 1 10 int1
+.model int1 int (in_offset=0.0 gain=2.0 out_lower_limit=-1.0e6
++ out_upper_limit=1.0e6 limit_range=1.0e-6 out_ic=0.0)
+*
+*
+*** differentiator block ***
+a2 1 20 d_dt1
+.model d_dt1 d_dt (out_offset=0.0 gain=1.0 out_lower_limit=-1.0e6
++ out_upper_limit=1.0e6 limit_range=1.0e-6)
+*
+*
+*** s_xfer block ***
+a3 1 30 filter1
+.model filter1 s_xfer (in_offset=0.0 gain=1.0 num_coeff=[1.0]
++ den_coeff=[1.0 1.414214 1.0] int_ic=[0.0 0.0]
++ denormalized_freq=628.0)
+*
+*
+*
+*** magnetic core & inductive coupling ***
+v40 45 46 0.0
+a4 40 45 core1
+.model core1 core (H_array=[-2.0 -1.0 1.0 2.0]
++ B_array=[-2.0 -1.0 1.0 2.0]
++ area=1.0 length=1.0 input_domain=1.0e-6
++ fraction=TRUE mode=1
++ in_low=-1.0 in_high=1.0 hyst=0.5
++ out_lower_limit=-1.0 out_upper_limit=1.0)
+*
+*
+r5 1 50 100.0
+a5 (50 0) (40 46) inductor1
+.model inductor1 lcouple (num_turns=10)
+*
+*
+*** resistors to ground ***
+r1 1 0 1k
+*
+r10 10 0 1e12
+r20 20 0 1e12
+r30 30 0 1e12
+r40 40 0 1e12
+r45 45 0 1e12
+r50 50 0 1e12
+*
+*
+.end
+
+
+
+
+
+