aboutsummaryrefslogtreecommitdiff
path: root/lib/generic.lib
blob: 50d9446a85b802010a6b04ab4b180db288c21196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.subckt TRANSFORMER in1 in2 out1 out2 Lin=100 Lout=100 R1=1m R2=1m
* in1 .---x  x---. out1
*         )||(
*         )||(
* in2 .---x  x---. out2

* Inductances
Lin in1 intin {Lin}
Lout out1 intout {Lout}

* Resistances
R1 intin in2 {R1}
R2 intout out2 {R2}

* Coupled Factor
K1 Lin Lout 1

.ends TRANSFORMER

.subckt RECTIFIER ac1 ac2 out gnd
D1 ac1 out DI_ABS10A
D2 ac2 out DI_ABS10A
D3 gnd ac2 DI_ABS10A
D4 gnd ac1 DI_ABS10A
.MODEL DI_ABS10A D  ( IS=3.47n RS=42.6m BV=1000 IBV=5.00u
+ CJO=25.2p  M=0.333 N=1.70 TT=4.32u )
.ends RECTIFIER
Feel free to download, copy and edit any repo