From 51b4499cab4ae4faa83e5a5e468ee99ff18b41f5 Mon Sep 17 00:00:00 2001 From: jvech Date: Mon, 3 Jun 2024 07:23:35 -0500 Subject: init: ac2dc linear converter simulated --- lib/generic.lib | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lib/generic.lib (limited to 'lib/generic.lib') 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 -- cgit v1.2.3-70-g09d2