1Code Model Test - Swept DC: int, d_dt, s_xfer, core, lcouple
2*
3*
4*** analysis type ***
5.dc v1 .1 10 .5
6*
7*** input sources ***
8v1 1 0 DC 2
9*
10*
11*** integrator block ***
12a1 1 10 int1
13.model int1 int (in_offset=0.0 gain=2.0 out_lower_limit=-1.0e6
14+                out_upper_limit=1.0e6 limit_range=1.0e-6 out_ic=0.0)
15*
16*
17*** differentiator block ***
18a2 1 20 d_dt1
19.model d_dt1 d_dt (out_offset=0.0 gain=1.0 out_lower_limit=-1.0e6
20+                  out_upper_limit=1.0e6 limit_range=1.0e-6)
21*
22*
23*** s_xfer block ***
24a3 1 30 filter1
25.model filter1 s_xfer (in_offset=0.0 gain=1.0 num_coeff=[1.0]
26+                      den_coeff=[1.0 1.414214 1.0] int_ic=[0.0 0.0]
27+                      denormalized_freq=1.0)
28*
29*
30*
31*** magnetic core & inductive coupling ***
32v40 45 46 0.0
33a4 40 45 core1
34.model core1 core (H_array=[-2.0 -1.0 1.0 2.0]
35+                  B_array=[-2.0 -1.0 1.0 2.0]
36+                  area=1.0 length=1.0 input_domain=1.0e-6
37+                  fraction=TRUE mode=1
38+                  in_low=-1.0 in_high=1.0 hyst=0.5
39+                  out_lower_limit=-1.0 out_upper_limit=1.0)
40*
41*
42r5 1 50 100.0
43a5 (50 0) (40 46) inductor1
44.model inductor1 lcouple (num_turns=10)
45*
46*
47*** resistors to ground ***
48r1 1 0 1k
49*
50r10 10 0 1e12
51r20 20 0 1e12
52r30 30 0 1e12
53r40 40 0 1e12
54r45 45 0 1e12
55r50 50 0 1e12
56*
57*
58.end
59
60
61
62
63
64
65