diff options
author | jvech <jmvalenciae@unal.edu.co> | 2024-06-03 07:23:35 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2024-06-03 07:23:35 -0500 |
commit | 51b4499cab4ae4faa83e5a5e468ee99ff18b41f5 (patch) | |
tree | 1f08457910a86d654d7a1e962a2f88f44eca4c11 /lib/generic.lib |
init: ac2dc linear converter simulated
Diffstat (limited to 'lib/generic.lib')
-rw-r--r-- | lib/generic.lib | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/generic.lib b/lib/generic.lib new file mode 100644 index 0000000..50d9446 --- /dev/null +++ b/lib/generic.lib @@ -0,0 +1,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 |