VDMOS correct thermal diode contribution in reverse operation

This commit is contained in:
dwarning 2020-04-01 16:43:59 +02:00 committed by Holger Vogt
parent b75791c87d
commit 8ca33bc8f5
1 changed files with 2 additions and 3 deletions

View File

@ -334,7 +334,6 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt)
*/
vgd = vgs - vds;
/* now to determine whether the user was able to correctly
* identify the source and drain of his device
*/
@ -856,7 +855,7 @@ bypass:
if (ckt->CKTmode & MODEINITSMSIG) {
*(ckt->CKTstate0 + here->VDIOcapCurrent) = capd;
continue;
goto load;
}
/*
@ -914,7 +913,7 @@ load:
if (selfheat) {
*(ckt->CKTrhs + here->VDMOSdNode) += dIdio_dT*delTemp;
*(ckt->CKTrhs + here->VDIOposPrimeNode) -= dIdio_dT*delTemp;
*(ckt->CKTrhs + here->VDMOStempNode) += Ith - dIth_dVdio*vd - dIth_dT*delTemp; /* Diode dissipated power */
*(ckt->CKTrhs + here->VDMOStempNode) += Ith - model->VDMOStype*dIth_dVdio*vd + dIth_dT*delTemp; /* Diode dissipated power */
}
/*
* load matrix