* 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.00000059114069486398
Rladder1_0 Node_Lladder_1_0 Node_R_Lmag_1 4.66707896456149029518
Lladder1_2 P1+ Node_Lladder_1_2 1.32519224173765315378
Rladder1_2 Node_Lladder_1_2 Node_Lladder_1_0 4.71078615745042128538
Lladder1_4 P1+ Node_Lladder_1_4 1.25692319041441580296
Rladder1_4 Node_Lladder_1_4 Node_Lladder_1_2 4.58666519054944465950
Lladder1_6 P1+ Node_Lladder_1_6 0.74095390834172325523
Rladder1_6 Node_Lladder_1_6 Node_Lladder_1_4 4.45315927559595525764
Lladder1_8 P1+ Node_Lladder_1_8 0.00000000205455546206
Rladder1_8 Node_Lladder_1_8 Node_Lladder_1_6 0.03324894304252915683
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.97121844603239715354
Rladder2_0 Node_Lladder_2_0 Node_R_Lmag_2 -2.28915177870691799455
Lladder2_2 P2+ Node_Lladder_2_2 1.85136460867378715989
Rladder2_2 Node_Lladder_2_2 Node_Lladder_2_0 -3.47355170159003812103
Lladder2_4 P2+ Node_Lladder_2_4 1.91466973071238300008
Rladder2_4 Node_Lladder_2_4 Node_Lladder_2_2 -1.43387885333313214176
Lladder2_6 P2+ Node_Lladder_2_6 5.29687952552585272770
Rladder2_6 Node_Lladder_2_6 Node_Lladder_2_4 2.34628164465407973438
Lladder2_8 P2+ Node_Lladder_2_8 8.69103113491807377500
Rladder2_8 Node_Lladder_2_8 Node_Lladder_2_6 4.84130127638176688265
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.97123242766796202829
Rladder3_0 Node_Lladder_3_0 Node_R_Lmag_3 -2.28920566718598195166
Lladder3_2 P3+ Node_Lladder_3_2 1.85137914958015414868
Rladder3_2 Node_Lladder_3_2 Node_Lladder_3_0 -3.47356481701222108427
Lladder3_4 P3+ Node_Lladder_3_4 1.91473647315094552823
Rladder3_4 Node_Lladder_3_4 Node_Lladder_3_2 -1.43385828135297010988
Lladder3_6 P3+ Node_Lladder_3_6 5.29694746402894978132
Rladder3_6 Node_Lladder_3_6 Node_Lladder_3_4 2.34627410210733700069
Lladder3_8 P3+ Node_Lladder_3_8 8.69105578771541154026
Rladder3_8 Node_Lladder_3_8 Node_Lladder_3_6 4.84125249238391663908
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.009361
.param Permeance=MagnetizingInductance_Value/NumberTurns_1**2
.param Rdc_1_Value=0.035749
.param NumberTurns_1=38
.param Rdc_2_Value=0.000649
.param NumberTurns_2=3
.param Llk_2_Value=0.000009
.param CouplingCoefficient_12_Value=0.999507.param Rdc_3_Value=0.000706
.param NumberTurns_3=3
.param Llk_3_Value=180.000026
.param CouplingCoefficient_13_Value=-nan
.ends My_custom_magnetic