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