* Magnetic model made with OpenMagnetics
* My_custom_magnetic

.subckt My_custom_magnetic P1+ P1- P2+ P2- P3+ P3-
Lladder1_0 P1+ Node_Lladder_1_0 0.00000030421479804392
Rladder1_0 Node_Lladder_1_0 Node_R_Lmag_1 0.13419540110906566510
Lladder1_2 P1+ Node_Lladder_1_2 0.00079916596841206702
Rladder1_2 Node_Lladder_1_2 Node_Lladder_1_0 0.13462143163991721617
Lladder1_4 P1+ Node_Lladder_1_4 0.00101641542806106067
Rladder1_4 Node_Lladder_1_4 Node_Lladder_1_2 0.13471470966351842269
Lladder1_6 P1+ Node_Lladder_1_6 0.00103991519064223050
Rladder1_6 Node_Lladder_1_6 Node_Lladder_1_4 0.13470254028263245472
Lladder1_8 P1+ Node_Lladder_1_8 0.00101434626391949949
Rladder1_8 Node_Lladder_1_8 Node_Lladder_1_6 0.13467810527014462130
Rdc1 P1+ Node_R_Lmag_1 {Rdc_1_Value}
Lmag_1 P1- Node_R_Lmag_1 {NumberTurns_1**2*Permeance}
Lladder2_0 P2+ Node_Lladder_2_0 0.97120103816532932228
Rladder2_0 Node_Lladder_2_0 Node_R_Lmag_2 -2.28908468474037718465
Lladder2_2 P2+ Node_Lladder_2_2 1.85134650449073490108
Rladder2_2 Node_Lladder_2_2 Node_Lladder_2_0 -3.47353537220388908224
Lladder2_4 P2+ Node_Lladder_2_4 1.91458663291217057179
Rladder2_4 Node_Lladder_2_4 Node_Lladder_2_2 -1.43390446656140468917
Lladder2_6 P2+ Node_Lladder_2_6 5.29679493855992156170
Rladder2_6 Node_Lladder_2_6 Node_Lladder_2_4 2.34629103552580886571
Lladder2_8 P2+ Node_Lladder_2_8 8.69100044090401802066
Rladder2_8 Node_Lladder_2_8 Node_Lladder_2_6 4.84136201502596108526
Rdc2 P2+ Node_R_Lmag_2 {Rdc_2_Value}
Lmag_2 P2- Node_R_Lmag_2 {NumberTurns_2**2*Permeance}
K Lmag_1 Lmag_2 {CouplingCoefficient_12_Value}
Lladder3_0 P3+ Node_Lladder_3_0 0.97123001148963794549
Rladder3_0 Node_Lladder_3_0 Node_R_Lmag_3 -2.28919635467207527313
Lladder3_2 P3+ Node_Lladder_3_2 1.85137663675921615436
Rladder3_2 Node_Lladder_3_2 Node_Lladder_3_0 -3.47356255053403906174
Lladder3_4 P3+ Node_Lladder_3_4 1.91472493933481402451
Rladder3_4 Node_Lladder_3_4 Node_Lladder_3_2 -1.43386183641505660091
Lladder3_6 P3+ Node_Lladder_3_6 5.29693572351747388183
Rladder3_6 Node_Lladder_3_6 Node_Lladder_3_4 2.34627540554273572582
Lladder3_8 P3+ Node_Lladder_3_8 8.69105152744398168352
Rladder3_8 Node_Lladder_3_8 Node_Lladder_3_6 4.84126092279998587742
Rdc3 P3+ Node_R_Lmag_3 {Rdc_3_Value}
Lmag_3 P3- Node_R_Lmag_3 {NumberTurns_3**2*Permeance}
K Lmag_1 Lmag_3 {CouplingCoefficient_13_Value}

.param MagnetizingInductance_Value=0.007944
.param Permeance=MagnetizingInductance_Value/NumberTurns_1**2
.param Rdc_1_Value=0.034010
.param NumberTurns_1=38
.param Rdc_2_Value=0.000651
.param NumberTurns_2=3
.param Llk_2_Value=0.000019
.param CouplingCoefficient_12_Value=0.998823.param Rdc_3_Value=0.000707
.param NumberTurns_3=3
.param Llk_3_Value=0.314961
.param CouplingCoefficient_13_Value=-nan
.ends My_custom_magnetic