mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
dio/diotemp.c, drop DIOgradingCoeff limit
Used to be limited to a maximum of 0.9 Varactors may need much larger values. Thanks to Wang You for hinting to this ancient relict.
This commit is contained in:
@@ -38,13 +38,6 @@ DIOtemp(GENmodel *inModel, CKTcircuit *ckt)
|
|||||||
model->DIOnomTemp = ckt->CKTnomTemp;
|
model->DIOnomTemp = ckt->CKTnomTemp;
|
||||||
}
|
}
|
||||||
vtnom = CONSTKoverQ * model->DIOnomTemp;
|
vtnom = CONSTKoverQ * model->DIOnomTemp;
|
||||||
/* limit grading coeff to max of .9 */
|
|
||||||
if(model->DIOgradingCoeff>.9) {
|
|
||||||
SPfrontEnd->IFerrorf (ERR_WARNING,
|
|
||||||
"%s: grading coefficient too large, limited to 0.9",
|
|
||||||
model->DIOmodName);
|
|
||||||
model->DIOgradingCoeff=.9;
|
|
||||||
}
|
|
||||||
/* limit activation energy to min of .1 */
|
/* limit activation energy to min of .1 */
|
||||||
if(model->DIOactivationEnergy<.1) {
|
if(model->DIOactivationEnergy<.1) {
|
||||||
SPfrontEnd->IFerrorf (ERR_WARNING,
|
SPfrontEnd->IFerrorf (ERR_WARNING,
|
||||||
@@ -94,16 +87,6 @@ DIOtemp(GENmodel *inModel, CKTcircuit *ckt)
|
|||||||
+ (model->DIOgradCoeffTemp2 * dt * dt);
|
+ (model->DIOgradCoeffTemp2 * dt * dt);
|
||||||
here->DIOtGradingCoeff = model->DIOgradingCoeff * factor;
|
here->DIOtGradingCoeff = model->DIOgradingCoeff * factor;
|
||||||
|
|
||||||
/* limit temperature adjusted grading coeff
|
|
||||||
* to max of .9
|
|
||||||
*/
|
|
||||||
if(here->DIOtGradingCoeff>.9) {
|
|
||||||
SPfrontEnd->IFerrorf (ERR_WARNING,
|
|
||||||
"%s: temperature adjusted grading coefficient too large, limited to 0.9",
|
|
||||||
here->DIOname);
|
|
||||||
here->DIOtGradingCoeff=.9;
|
|
||||||
}
|
|
||||||
|
|
||||||
vt = CONSTKoverQ * here->DIOtemp;
|
vt = CONSTKoverQ * here->DIOtemp;
|
||||||
/* this part gets really ugly - I won't even try to
|
/* this part gets really ugly - I won't even try to
|
||||||
* explain these equations */
|
* explain these equations */
|
||||||
|
|||||||
Reference in New Issue
Block a user