Browse Source

remove unused conductance variables

pre-master-46
dwarning 7 years ago
committed by Holger Vogt
parent
commit
360a3985e8
  1. 5
      src/spicelib/devices/vbic/vbicdefs.h
  2. 21
      src/spicelib/devices/vbic/vbictemp.c

5
src/spicelib/devices/vbic/vbicdefs.h

@ -447,11 +447,6 @@ typedef struct sVBICmodel { /* model structure for a vbic */
double VBICrevVersion;
double VBICrefVersion;
double VBICcollectorConduct; /* collector conductance */
double VBICbaseConduct; /* base conductance */
double VBICemitterConduct; /* emitter conductance */
double VBICsubstrateConduct; /* substrate conductance */
double VBICvbeMax; /* maximum voltage over B-E junction */
double VBICvbcMax; /* maximum voltage over B-C junction */
double VBICvceMax; /* maximum voltage over C-E branch */

21
src/spicelib/devices/vbic/vbictemp.c

@ -34,27 +34,6 @@ VBICtemp(GENmodel *inModel, CKTcircuit *ckt)
if(!model->VBICtnomGiven) model->VBICtnom = ckt->CKTnomTemp - CONSTCtoK;
if(model->VBICextCollResistGiven && model->VBICextCollResist != 0.0) {
model->VBICcollectorConduct = 1.0 / model->VBICextCollResist;
} else {
model->VBICcollectorConduct = 0.0;
}
if(model->VBICextBaseResistGiven && model->VBICextBaseResist != 0.0) {
model->VBICbaseConduct = 1.0 / model->VBICextBaseResist;
} else {
model->VBICbaseConduct = 0.0;
}
if(model->VBICemitterResistGiven && model->VBICemitterResist != 0.0) {
model->VBICemitterConduct = 1.0 / model->VBICemitterResist;
} else {
model->VBICemitterConduct = 0.0;
}
if(model->VBICsubstrateResistGiven && model->VBICsubstrateResist != 0.0) {
model->VBICsubstrateConduct = 1.0 / model->VBICsubstrateResist;
} else {
model->VBICsubstrateConduct = 0.0;
}
if(model->VBICtempExpRBGiven && !model->VBICtempExpRBIGiven) {
model->VBICtempExpRBI = model->VBICtempExpRB;
}

Loading…
Cancel
Save