//+---------------------------------------------------+
//|  PExprt THERMAL MODEL FOR MAGNETIC COMPONENT      |
//|         SIMPLORER(R) V6 LANGUAGE VERSION          |
//|   GENERATED BY PExprt (C) UPM-Ansoft 1992-2004    |
//|                    Version 6.0.14                 |
//+---------------------------------------------------+


MODELDEF Interleaving2_9_th 
{
//----Electrical and Real Ports definition

PORT real out: TempMax = TempMax;

PORT real in : AvgCoreLosses = AvgCoreLosses;

PORT real in : AvgWireLosses = AvgWireLosses;

//--- 1D Thermal model description for SIMPLORER---

//---Power sources for different losses---

//---CoreLosses---

INTERN I GPcore N1:=GND,N2:=Pcore (IS:=AvgCoreLosses, PARTDERIV:=1);

INTERN R Rcore N1:=Pcore,N2:=GND (R:=1.0e+000);

//---Power sources for different windings---

//---Winding 1

INTERN I GPwind1 N1:=GND,N2:=Pwind1 (IS:=Pwind1, PARTDERIV:=1);

INTERN EQU {Pwind1:=AvgWireLosses*6.19008e-006/(6.19008e-006+7.88957e-006);}

INTERN R Rwind1  N1:=Pwind1, N2:=GND (R:=1.0e+000);

//---Winding 2

INTERN I GPwind2 N1:=GND,N2:=Pwind2 (IS:=Pwind2, PARTDERIV:=1);

INTERN EQU {Pwind2:=AvgWireLosses*7.88957e-006/(6.19008e-006+7.88957e-006);}

INTERN R Rwind2  N1:=Pwind2, N2:=GND (R:=1.0e+000);

//---Temperature node for magnetic component

INTERN I GTempMax N1:=GND, N2:=TempMaxprev (IS:=(AvgCoreLosses*4.79303+Pwind1*4.8741+Pwind2*4.21431), PARTDERIV:=1);

INTERN R RTempMax N1:=TempMaxprev, N2:=GND (R:=1.0e+006);

INTERN VM SensTmax N1:=TempMaxprev, N2:=GND;

INTERN EQU {SensT:=SensTmax.V/(t+1.0e-012);}

INTERN E ETempOut N1:=GND, N2:=TempMax (EMF:=SensT,PARTDERIV:=1);

INTERN R RTempMaxOut N1:= TempMax, N2:= GND (R:=1.0e+000);

INTERN C CavgTempMax N1:=TempMaxprev, N2:= GND (C:=1.0e+000, V0:=);

INTERN VM SensTmaxOut N1:= TempMax, N2:= GND;

INTERN EQU {TempMax:=SensTmaxOut.V;}

//---End of the Thermal Model of The Magnetic Component
}