VDMOS rise minimal diode resistance for better convergence

This commit is contained in:
dwarning 2020-03-13 19:22:28 +01:00 committed by Holger Vogt
parent 5c5f43d122
commit 793c82d384
1 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ VDMOSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt,
model->VDMOSrds = 1.0e+15;
if (!model->VDIOresistanceGiven)
model->VDIOresistance = 1.0e-03;
model->VDIOresistance = 10e-03;
if (!model->VDMOSnGiven)
model->VDMOSn = 1.;
@ -242,10 +242,10 @@ VDMOSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt,
} else {
here->VDMOSdsConductance = 1e-15;
}
if (model->VDIOresistance != 0) {
if (model->VDIOresistance > 10e-03) {
here->VDIOconductance = here->VDMOSm / model->VDIOresistance;
} else {
here->VDIOconductance = here->VDMOSm / 1.0e-03;
here->VDIOconductance = here->VDMOSm / 10e-03;
}
if (model->VDMOSdrainResistance != 0) {