* SPICE netlist
B1 icg_irm_ss 0 V=V(k0)*V(iv0) + V(k1)*V(iv1) + fcg
B2 Ioo 0 V=(acg+bcg+ccg)*V(iv0)*V(iv0) + (dcg+ecg)*V(iv0) + fcg
B3 k0 0 V=2*acg*iv + ccg*iv +dcg
B4 k1 0 V=2*bcg*iv +ccg*iv + ecg
B6 icg_irm 0 V=acg*V(iv0)*V(iv0) + bcg*V(iv1)*V(iv1) + ccg*V(iv0)*V(iv1) + dcg*V(iv0) + ecg*V(iv1) + fcg
B7 <icgbasso> 0 V=V(Ioo) Laplace=(1 + s/wrhpz)
B10 IooChk 0 V=Iinf
B13 icg_izoh 0 V=V(icg_irm_ss) Laplace=s*Tsw/(1 - exp(-s*Tsw))
B8 idg_irm_ss 0 V=V(kdg0)*V(iv0) + V(kdg1)*V(iv1) + fdg
B9 Ioodg 0 V=(adg+bdg+cdg)*V(iv0)*V(iv0) + (ddg+edg)*V(iv0) + fdg
B11 kdg0 0 V=2*adg*iv + cdg*iv +ddg
B12 kdg1 0 V=2*bdg*iv +cdg*iv + edg
B15 idg_irm 0 V=adg*V(iv0)*V(iv0) + bdg*V(iv1)*V(iv1) + cdg*V(iv0)*V(iv1) + ddg*V(iv0) + edg*V(iv1) + fdg
B16 <idgbasso> 0 V=V(Ioodg) Laplace=(1 - s/wrhpzdg)
B18 idg_izoh 0 V=V(idg_irm_ss) Laplace=s*Tsw/(1 - exp(-s*Tsw))
V2 icn 0 {ic} AC 1
B14 iv0 0 V=alpha*V(icn) + (1-alpha)*V(iv1) - Tsw*md
B17 iv1 0 V=delay(V(iv0), Tsw)
B19 mcmp_v 0 V={mcmp*V(icn)}
B20 alpha_v 0 V={alpha*V(icn)}
B5 icg_rcf 0 V=V(icg_izoh)*gcg_rcf Laplace=(Iv)*(1 - exp(-s*Dc*Tsw))/(s) + (mc)*(1 - (1 + s*Dc*Tsw)*exp(-s*Dc*Tsw))/(s*s)
B21 idg_rcf 0 V=V(idg_izoh)*gdg_rcf Laplace=( ((Iv+md*Dpdg*Tsw))*(1 - exp(-s*Dpdg*Tsw))/(s) - md*(1 - (1 + s*Dpdg*Tsw)*exp(-s*Dpdg*Tsw))/(s*s) )*exp(-s*Dc*Tsw)
B22 mcmp 0 V={mcmp}
B23 Ioodgck 0 V=Iinfdg
B24 Ioodgck2 0 V=Fsw/gdg_rcf
.param Vin 18
.param Vout 5.25
.param N 4
.param Vcg {Vin}
.param Vdg {N*Vout}
.param iv 10
.param Lm 23u
.param Fsw 100k
.param Tsw {1/Fsw}
.param mc {Vcg/Lm}
.param md {Vdg/Lm}
.param dencom {(mc*mc + 2*mc*md + md*md)}
.param acg {(1/(2*Tsw))*((mc)/dencom)}
.param bcg {-(1/(2*Tsw))*((mc + 2*md)/dencom)}
.param ccg {(1/(Tsw))*((md)/dencom)}
.param dcg {(mc*md)/dencom}
.param ecg {md*md/dencom}
.param fcg {(Tsw/2)*mc*md*md/dencom}
.param Dc {Vdg/(Vdg+Vcg)}
.param Dp {1-Dc}
.param wrhpz ro*Dc*Dc/(Dp*Lm)
.param Iinf {(acg+bcg+ccg)*iv*iv + (dcg+ecg)*iv + fcg}
.param ro {Vcg/Iinf}
;.param mc {Vcg/Lm}
;.param md {Vdg/Lm}
;.param dencom {(mc*mc + 2*mc*md + md*md)}
.param adg {-(1/(2*Tsw))*((2*mc + md)/dencom)}
.param bdg {(1/(2*Tsw))*((md)/dencom)}
.param cdg {(1/(Tsw))*((mc)/dencom)}
.param ddg {(mc*mc)/dencom}
.param edg {mc*md/dencom}
.param fdg {(Tsw/2)*md*mc*mc/dencom}
.param Dcdg {Vdg/(Vdg+Vcg)}
.param Dpdg {1-Dcdg}
.param wrhpzdg rodg*Dpdg*Dpdg/(Dcdg*Lm)
.param Iinfdg {(adg+bdg+cdg)*iv*iv + (ddg+edg)*iv + fdg}
.param rodg {Vdg/Iinfdg}
.ac oct 500 100 {5*Fsw}
.param hvdb 3
.param hvmag {10**(hvdb/20)}
.param mcmp {(mc+md)*(1+hvmag)/(2*hvmag)-mc}
.param alpha {(mc+md)/(mc+mcmp)}
.param ic {iv+Tsw*md/alpha}
.param gdg_rcf {1/(Dpdg*Tsw*Iv+0.5*md*Dpdg*Tsw*Dpdg*Tsw)}
.param gcg_rcf {1/(Dc*Tsw*Iv+0.5*mc*Dc*Tsw*Dc*Tsw)}

* LTspice schematic (.asc)
Version 4
SHEET 1 7600 4848
WIRE -1656 -2424 -1736 -2424
WIRE -1736 -2360 -1736 -2424
WIRE -1736 -2216 -1736 -2280
WIRE -1656 -2120 -1736 -2120
WIRE -1736 -2056 -1736 -2120
WIRE -1736 -1912 -1736 -1976
WIRE -1656 -1864 -1736 -1864
WIRE -1736 -1800 -1736 -1864
WIRE -3032 -1720 -3112 -1720
WIRE -3112 -1656 -3112 -1720
WIRE -1736 -1656 -1736 -1720
WIRE -3112 -1512 -3112 -1576
WIRE -3032 -1064 -3112 -1064
WIRE -2312 -1064 -2392 -1064
WIRE -3112 -1000 -3112 -1064
WIRE -2392 -1000 -2392 -1064
WIRE -3112 -856 -3112 -920
WIRE -2392 -856 -2392 -920
WIRE 1688 472 1560 472
WIRE 1976 472 1848 472
WIRE -1416 488 -1544 488
WIRE -2712 504 -2888 504
WIRE -1880 504 -2008 504
WIRE 1688 584 1688 472
WIRE 1976 584 1976 472
WIRE -1416 600 -1416 488
WIRE -2712 616 -2712 504
WIRE -1880 616 -1880 504
WIRE 1688 728 1688 664
WIRE 1976 728 1976 664
WIRE -1416 744 -1416 680
WIRE -2712 760 -2712 696
WIRE -1880 760 -1880 696
WIRE 1064 1048 888 1048
WIRE 1368 1048 1224 1048
WIRE -3624 1080 -3800 1080
WIRE -3320 1080 -3464 1080
WIRE 1064 1160 1064 1048
WIRE 1368 1160 1368 1048
WIRE -3624 1192 -3624 1080
WIRE -3320 1192 -3320 1080
WIRE 1064 1304 1064 1240
WIRE 1368 1304 1368 1240
WIRE -3624 1336 -3624 1272
WIRE -3320 1336 -3320 1272
WIRE 1320 1496 1080 1496
WIRE 2008 1496 1816 1496
WIRE 2776 1496 2568 1496
WIRE 3800 1496 3720 1496
WIRE -3368 1528 -3608 1528
WIRE -2680 1528 -2872 1528
WIRE -1912 1528 -2120 1528
WIRE -888 1528 -968 1528
WIRE 1080 1608 1080 1496
WIRE 1816 1608 1816 1496
WIRE 2568 1608 2568 1496
WIRE 3720 1608 3720 1496
WIRE -3608 1640 -3608 1528
WIRE -2872 1640 -2872 1528
WIRE -2120 1640 -2120 1528
WIRE -968 1640 -968 1528
WIRE 1080 1752 1080 1688
WIRE 1816 1752 1816 1688
WIRE 2568 1752 2568 1688
WIRE 3720 1752 3720 1688
WIRE -3608 1784 -3608 1720
WIRE -2872 1784 -2872 1720
WIRE -2120 1784 -2120 1720
WIRE -968 1784 -968 1720
WIRE -904 2024 -984 2024
WIRE -984 2136 -984 2024
WIRE 3800 2168 3720 2168
WIRE -984 2280 -984 2216
WIRE 3720 2280 3720 2168
WIRE 3720 2424 3720 2360
FLAG 1320 1496 icg_irm_ss
FLAG 1080 1752 0
FLAG 1848 472 Ioo
FLAG 1976 728 0
FLAG 888 1048 k0
FLAG 1064 1304 0
FLAG 1224 1048 k1
FLAG 1368 1304 0
FLAG 2776 1496 icg_irm
FLAG 2568 1752 0
FLAG 2008 1496 <icgbasso>
FLAG 1816 1752 0
FLAG 1688 728 0
FLAG 1560 472 IooChk
FLAG 3720 1752 0
FLAG 3800 1496 icg_izoh
FLAG -3368 1528 idg_irm_ss
FLAG -3608 1784 0
FLAG -2888 504 Ioodg
FLAG -2712 760 0
FLAG -3800 1080 kdg0
FLAG -3624 1336 0
FLAG -3464 1080 kdg1
FLAG -3320 1336 0
FLAG -1912 1528 idg_irm
FLAG -2120 1784 0
FLAG -2680 1528 <idgbasso>
FLAG -2872 1784 0
FLAG -968 1784 0
FLAG -888 1528 idg_izoh
FLAG -3112 -1512 0
FLAG -3032 -1720 icn
FLAG -3112 -856 0
FLAG -3032 -1064 iv0
FLAG -1736 -1912 0
FLAG -1656 -2120 mcmp_v
FLAG -2392 -856 0
FLAG -2312 -1064 iv1
FLAG -1736 -1656 0
FLAG -1656 -1864 alpha_v
FLAG 3720 2424 0
FLAG 3800 2168 icg_rcf
FLAG -984 2280 0
FLAG -904 2024 idg_rcf
FLAG -1736 -2216 0
FLAG -1656 -2424 mcmp
FLAG -2008 504 Ioodgck
FLAG -1880 760 0
FLAG -1544 488 Ioodgck2
FLAG -1416 744 0
DATAFLAG 3792 3392 ""
DATAFLAG 3504 3392 ""
DATAFLAG 2832 3968 ""
DATAFLAG 3200 3968 ""
DATAFLAG 3008 4416 ""
DATAFLAG 3760 4416 ""
DATAFLAG 4448 4416 ""
DATAFLAG -896 3424 ""
DATAFLAG -1856 4000 ""
DATAFLAG -1488 4000 ""
DATAFLAG -1680 4448 ""
DATAFLAG -928 4448 ""
DATAFLAG -240 4448 ""
DATAFLAG 160 800 ""
DATAFLAG 192 1056 ""
DATAFLAG 160 496 ""
DATAFLAG -64 3424 ""
DATAFLAG -1216 1856 ""
DATAFLAG -496 1856 ""
DATAFLAG -1200 1200 ""
DATAFLAG 400 3408 ""
SYMBOL bv 1080 1592 R0
SYMATTR InstName B1
SYMATTR Value V=V(k0)*V(iv0) + V(k1)*V(iv1) + fcg
SYMBOL bv 1976 568 R0
SYMATTR InstName B2
SYMATTR Value V=(acg+bcg+ccg)*V(iv0)*V(iv0) + (dcg+ecg)*V(iv0) + fcg
SYMBOL bv 1064 1144 R0
SYMATTR Value V=2*acg*iv + ccg*iv +dcg
SYMATTR InstName B3
SYMBOL bv 1368 1144 R0
SYMATTR Value V=2*bcg*iv +ccg*iv + ecg
SYMATTR InstName B4
SYMBOL bv 2568 1592 R0
SYMATTR InstName B6
SYMATTR Value V=acg*V(iv0)*V(iv0) + bcg*V(iv1)*V(iv1) + ccg*V(iv0)*V(iv1) + dcg*V(iv0) + ecg*V(iv1) + fcg
SYMBOL bv 1816 1592 R0
SYMATTR InstName B7
SYMATTR Value V=V(Ioo) Laplace=(1 + s/wrhpz)
SYMBOL bv 1688 568 R0
SYMATTR InstName B10
SYMATTR Value V=Iinf
SYMBOL bv 3720 1592 R0
SYMATTR InstName B13
SYMATTR Value V=V(icg_irm_ss) Laplace=s*Tsw/(1 - exp(-s*Tsw))
SYMBOL bv -3608 1624 R0
SYMATTR InstName B8
SYMATTR Value V=V(kdg0)*V(iv0) + V(kdg1)*V(iv1) + fdg
SYMBOL bv -2712 600 R0
SYMATTR InstName B9
SYMATTR Value V=(adg+bdg+cdg)*V(iv0)*V(iv0) + (ddg+edg)*V(iv0) + fdg
SYMBOL bv -3624 1176 R0
SYMATTR Value V=2*adg*iv + cdg*iv +ddg
SYMATTR InstName B11
SYMBOL bv -3320 1176 R0
SYMATTR Value V=2*bdg*iv +cdg*iv + edg
SYMATTR InstName B12
SYMBOL bv -2120 1624 R0
SYMATTR InstName B15
SYMATTR Value V=adg*V(iv0)*V(iv0) + bdg*V(iv1)*V(iv1) + cdg*V(iv0)*V(iv1) + ddg*V(iv0) + edg*V(iv1) + fdg
SYMBOL bv -2872 1624 R0
SYMATTR InstName B16
SYMATTR Value V=V(Ioodg) Laplace=(1 - s/wrhpzdg)
SYMBOL bv -968 1624 R0
SYMATTR InstName B18
SYMATTR Value V=V(idg_irm_ss) Laplace=s*Tsw/(1 - exp(-s*Tsw))
SYMBOL voltage -3112 -1672 R0
SYMATTR Value2 AC 1
SYMATTR InstName V2
SYMATTR Value {ic}
SYMBOL bv -3112 -1016 R0
SYMATTR InstName B14
SYMATTR Value V=alpha*V(icn) + (1-alpha)*V(iv1) - Tsw*md
SYMBOL bv -2392 -1016 R0
SYMATTR InstName B17
SYMATTR Value V=delay(V(iv0), Tsw)
SYMBOL bv -1736 -2072 R0
SYMATTR InstName B19
SYMATTR Value V={mcmp*V(icn)}
SYMBOL bv -1736 -1816 R0
SYMATTR InstName B20
SYMATTR Value V={alpha*V(icn)}
SYMBOL bv 3720 2264 R0
SYMATTR InstName B5
SYMATTR Value V=V(icg_izoh)*gcg_rcf Laplace=(Iv)*(1 - exp(-s*Dc*Tsw))/(s) + (mc)*(1 - (1 + s*Dc*Tsw)*exp(-s*Dc*Tsw))/(s*s)
SYMBOL bv -984 2120 R0
SYMATTR InstName B21
SYMATTR Value V=V(idg_izoh)*gdg_rcf Laplace=( ((Iv+md*Dpdg*Tsw))*(1 - exp(-s*Dpdg*Tsw))/(s) - md*(1 - (1 + s*Dpdg*Tsw)*exp(-s*Dpdg*Tsw))/(s*s) )*exp(-s*Dc*Tsw)
SYMBOL bv -1736 -2376 R0
SYMATTR InstName B22
SYMATTR Value V={mcmp}
SYMBOL bv -1880 600 R0
SYMATTR InstName B23
SYMATTR Value V=Iinfdg
SYMBOL bv -1416 584 R0
SYMATTR InstName B24
SYMATTR Value V=Fsw/gdg_rcf