favor exponential temperatur equation if all parameters tc1, tc2 and tce are given

This commit is contained in:
dwarning 2015-11-22 10:43:42 +01:00
parent 6abb4311cf
commit 7fb8368133
1 changed files with 4 additions and 2 deletions

View File

@ -78,8 +78,10 @@ REStemp(GENmodel *inModel, CKTcircuit *ckt)
else
tce = model->REStempCoeffe;
factor = ((((tc2 * difference) + tc1) * difference) + 1.0) *
pow(1.01, tce * difference);
if ((here->REStceGiven)||(model->REStceGiven))
factor = pow(1.01, tce * difference);
else
factor = (((tc2 * difference) + tc1) * difference) + 1.0;
here -> RESconduct = (1.0/(here->RESresist * factor * here->RESscale));